tob*_*303 7 xml msbuild documentation solution
我有很多项目的解决方案.每个项目都配置为在调试模式下构建时生成XML文档文件(默认情况下).当我在Visual Studio 2008中构建时,这是有效的.在我的集成服务器上的构建脚本中,我建议MSBuild构建整个解决方案,但它不会生成文档文件.我能做什么?
我已经尝试将Debug-Condition明确地赋予构建过程,但它没有任何区别.
<Target Name="BuilSolution">
<MSBuild Projects="C:\Path\To\MySolution.sln" targets="Build" Properties="SolutionConfigurationPlatforms='Debug|Any CPU'"/>
</Target>
Run Code Online (Sandbox Code Playgroud)
在构建单个项目时似乎有一些想法可以解决这个问题,但是我做不起,所以我需要提示这样做.
提前致谢!
在VS 2010中,您可以在C#项目属性中执行此操作,也可以DocumentationFile在.csproj文件中定义属性.例如:
<PropertyGroup>
...
<DocumentationFile>$(OutputPath)MyAssembly.xml</DocumentationFile>
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)
MSBuild代码$(MSBuildToolsPath)\Microsoft.CSharp.targets将在定义的属性上进行条件化 - 如果是,则将创建XML注释文件.
| 归档时间: |
|
| 查看次数: |
4985 次 |
| 最近记录: |