environment:
- VS 2013
- Christoctemplate V3.0
-
Installed MSBuildTasks 1.4.0.74 (that ‘s what NuGet Package Manager shows)
First error:
In the file MSBuild.Community.Tasks.Targets this line :
<MSBuildCommunityTasksLib>$(SolutionDir)\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib>
resulted in a double escape in front of packages – I had to change that line to this:
<MSBuildCommunityTasksLib>$(SolutionDir)packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib>
Second error:
Build in release mode on a project with no files open:
Error 1 The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly \\server\d%24\myDNN\DesktopModules\DNNModule4\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file://\\server\d%24\myDNN\DesktopModules\DNNModule4\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll' or one of its dependencies. The network name cannot be found. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. DNNModule4
Since I could see the dll was in the right place, I then looked for the XmlRead task, it seems to be defined in BuildScripts\ModulePackage.targets so I open that file. And found that if I leave that file open in VS and rebuild the project then the error message changes:
Warning 1 The element 'Target' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'XmlRead' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Task, AL, AspNetCompiler, AssignCulture, AssignProjectConfiguration, AssignTargetPath, AxImp, CallTarget, CombinePath, ConvertToAbsolutePath, Copy, CreateCSharpManifestResourceName, CreateItem, CreateProperty, CreateVisualBasicManifestResourceName, Csc, Delete, Error, Exec, FindAppConfigFile, FindInList, FindUnderPath, FormatUrl, FormatVersion, GenerateApplicationManifest, GenerateBootstrapper, GenerateDeploymentManifest, GenerateResource, GenerateTrustInfo, GetAssemblyIdentity, GetFrameworkPath, GetFrameworkSdkPath, GetReferenceAssemblyPaths, LC, MakeDir, Message, Move, MSBuild, ReadLinesFromFile, RegisterAssembly, RemoveDir, RemoveDuplicates, RequiresFramework35SP1Assembly, ResolveAssemblyReference, ResolveComReference, ResolveKeySource, ResolveManifestFiles, ResolveNativeReference, ResolveNonMSBuildProjectOutput, SGen, SignFile, TlbImp, Touch, UnregisterAssembly, UpdateManifest, Vbc, VCBuild, Warning, WriteCodeFragment, WriteLinesToFile, XslTransformation, CodeAnalysis, CL, Link, BSCMake, CPPClean, Get.... \\sddnnd-01\h$\AB\ABdarpaDotMil\DesktopModules\DNNModule4\BuildScripts\ModulePackage.targets 10 5 DNNModule4
Error 2 The "XmlRead" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin" directory. DNNModule4
So could the warning about the invalid child element be the reason for the error?
-- Allen