Created
October 4, 2012 04:16
-
-
Save sayedihashimi/3831438 to your computer and use it in GitHub Desktop.
How to get the
This file contains hidden or 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 ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
This shows how you can get the name of the generated assembly when building a project | |
using the MSBuild task. | |
Note: the result of this is shown at https://dl.dropbox.com/u/40134810/twitter/msbuild-target-outputs.png | |
--> | |
<!-- The .csproj/.vbproj files to build, this can be named whatever you want --> | |
<ItemGroup> | |
<Projects Include="TargetOut01.csproj"/> | |
</ItemGroup> | |
<Target Name="Build"> | |
<!-- Call the MSBuild target to build the project(s) --> | |
<MSBuild Projects="@(Projects)" > | |
<!-- | |
Capture the value of the TargetOutputs into an item named | |
TheOutput | |
--> | |
<Output ItemName="TheOutputs" TaskParameter="TargetOutputs"/> | |
</MSBuild> | |
<!-- | |
Print out the value for TheOutputs | |
--> | |
<Message Text="TargetOutputs: @(TheOutputs)" Importance="high"/> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment