Skip to content

Instantly share code, notes, and snippets.

@sayedihashimi
Created October 4, 2012 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sayedihashimi/3831438 to your computer and use it in GitHub Desktop.
Save sayedihashimi/3831438 to your computer and use it in GitHub Desktop.
How to get the
<?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