Problem with Sandcastle MSBUILD script

Topics: Developer Forum
May 24, 2007 at 4:39 PM
Hello, friends. I am trying to add automated documentation to my MSBUILD process. I've added the following to my project file:

CODE
<Import Project="$(MSBuildBinPath)\Sandcastle.targets"/>
<Target Name="DocumentWPP">
<CallTarget Targets="SandcastleDocument" ContinueOnError="false" />
<MakeDir Condition="!Exists('$(BinariesRoot)\Documentation')" Directories="$(BinariesRoot)\Documentation" ContinueOnError="false" />
<Copy SourceFiles="$(SandcastleWorkingDirectory)\Output\$(SandcastleDocumentationName).chm" DestinationFiles="$(BinariesRoot)\Documentation\$(SandcastleDocumentationName).chm" ContinueOnError="false"/>
</Target>
/CODE

When I run MSBUILD by the command line, I get the following error:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Sandcastle.targets(43,51): error MSB4023: Cannot evaluate the item meta-data "%(Filename)". The item meta-data "%(Filename)" cannot be applied to the path ""C:\development\Web Publisher Portal\Visual Studio Solution\Advertising.Core\bin\Debug"\%2a.xml". Illegal characters in path.

I have two .xml files in the dir; one for the project assembly, the other for the namespaces. They are named project.core.xml and namespaces.project.core.xml. Why might I be getting this error? Thanks!