I want to build documentation xml files for my C# projects. How can I do that?
This is my CommonBase.props
file, imported by about a hundred csproj
files. The point of it is to save editing the same information in different places.
I want to build the documentation to the OutputPath below.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Common properties for projects. This project can't be built by itself, but is imported by several projects. Be careful to prepend $(MSBuildThisFileDirectory) before any paths relative to this file.
If you import this project from a csproj file, you should still define at least ProjectGuid, AssemblyName, RootNamespace and OutputType in the csproj.
-->
<PropertyGroup>
<!-- If configuration not specified, default to debug. If platform not specified, default to x64. Necessary for London continuous integration server. -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<PlatformTarget>$(Platform)</PlatformTarget>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<DebugSymbols>true</DebugSymbols>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x86'">
<OutputPath>$(MSBuildThisFileDirectory)..\..\bin32\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x64'">
<OutputPath>$(MSBuildThisFileDirectory)..\..\bin\</OutputPath>
</PropertyGroup>
</Project>
This is what a csproj looks like
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="..\Build\CommonBase.props" />