Created
March 20, 2010 12:12
-
-
Save esfand/338639 to your computer and use it in GitHub Desktop.
MSBuild Target Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- This uses a .targets file to offload performing the build --> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration> | |
<OutputPath Condition=" '$(OutputPath)'=='' ">$(MSBuildProjectDirectory)\BuildArtifacts\bin\</OutputPath> | |
</PropertyGroup> | |
<ItemGroup> | |
<Projects Include="$(MSBuildProjectDirectory)\..\ClassLibrary1\ClassLibrary1.csproj"/> | |
<Projects Include="$(MSBuildProjectDirectory)\..\ClassLibrary2\ClassLibrary2.csproj"/> | |
<Projects Include="$(MSBuildProjectDirectory)\..\ClassLibrary3\ClassLibrary3.csproj"/> | |
<Projects Include="$(MSBuildProjectDirectory)\..\WindowsFormsApplication1\WindowsFormsApplication1.csproj"/> | |
</ItemGroup> | |
<Import Project="SharedBuild.targets"/> | |
<PropertyGroup> | |
<BuildDependsOn> | |
$(BuildDependsOn); | |
CustomAfterBuild | |
</BuildDependsOn> | |
</PropertyGroup> | |
<Target Name="CustomAfterBuild"> | |
<!-- Insert stuff here --> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment