Closed ViralPatel007 closed 10 years ago
Is this on a 64-bit machine? I took a look at the C:\Program Files\MSBuild\ExtensionPack\MSBuild.ExtensionPack.tasks file and the ExtensionTasksPath property is set to:
The C:\Program Files\MSBuild\ExtensionPack\MSBuild.ExtensionPack.tasks file is set to:
It seems the 64-bit version is pointing to the 4.0 assemblies? As a work-around, you could remove the '4.0' from the path and try.
Thanks Drohm, for your quick response.
Yes I am using 64 bit machine.
I had changed it and again executed it. this time i got below error.
The "ReadChildrenToMetadata" parameter is not supported by the "MSBuild.ExtensionPack.Xml.XmlFile" task. Verify the parameter exists on the task,
I am using latest version of MsBuild.ExtensionPack 3.5.14.0 and i found below link in which it mentioned that "ReadChildrenToMetadata" is added with this version.
http://mikefourie.wordpress.com/2013/10/19/msbuild-extension-pack-october-2013/
Is it seems that we can not use "ReadChildrenToMetadata" property with MsBuild.ExtensionPack 3.5.14.0? Could you please suggest?
I don't see that property on the 3.5 version in source. Looks like that addition didn't make it into the 3.5 source? Mike F. would need to give more information on this.
then, is it mean to use this property we must have to use 4.0 version with .net 4.0 or higher ? is there any way to use this property with .net 3.5 ?
You can't run .NET 4.0 assemblies with the 3.5 version of the .NET tools.
Ok, Thanks drohm for your time, it saved many time for us.
drohm thanks for helping out here. Viral, the ReadChildrenToMetadata was only added to 4.0 and is not available on 3.5.
Mike
I had mentioned my issue as in below link also https://msbuildextensionpack.codeplex.com/discussions/546757
MSBuild.ExtensionPack.Xml.XmlFile command gives an error like below. Target: Simple Test The "MSBuild.ExtensionPack.Xml.XmlFile" task could not be loaded from the assembly \ExtensionPack\4.0\Msbuild.ExtensionPack.dll. Could not load file or assembly 'file:///C:\ExtensionPack\4.0\MSBuild.ExtensionPack.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, and that the assembly and all its dependencies are available.
MSBUILD : error MSB4017: The build was aborted because of an unexpected logger failure.
As i need this command with .net 3.5, so i had installed MSBuild ExtensionPack 3.5.15.0 in my SharePoint 2010 machine. However this commands works fine with MSbuild ExtensionPack 4.0.9.0 in SharePoint 2013 machine at where i had .net framework 4.0.
But my goal is to run this command in .net framework 3.5. Could you please suggest ?