Last active
August 29, 2015 13:57
-
-
Save sayedihashimi/9496514 to your computer and use it in GitHub Desktop.
This is a proposed update to the build.proj sample at http://docs.nuget.org/docs/reference/package-restore-with-team-build
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"> | |
| <PropertyGroup> | |
| <OutDir Condition=" '$(OutDir)'=='' ">$(MSBuildThisFileDirectory)bin\</OutDir> | |
| <Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration> | |
| <SourceHome Condition=" '$(SourceHome)'=='' ">$(MSBuildThisFileDirectory)src\</SourceHome> | |
| <ToolsHome Condition=" '$(ToolsHome)'=='' ">$(MSBuildThisFileDirectory)tools\</ToolsHome> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <Solution Include="$(SourceHome)*.sln"> | |
| <AdditionalProperties>OutDir=$(OutDir);Configuration=$(Configuration)</AdditionalProperties> | |
| </Solution> | |
| </ItemGroup> | |
| <Target Name="RestorePackages"> | |
| <Exec Command=""$(ToolsHome)NuGet\NuGet.exe" restore "%(Solution.Identity)"" /> | |
| </Target> | |
| <Target Name="Clean"> | |
| <MSBuild Targets="Clean" | |
| Projects="@(Solution)" /> | |
| </Target> | |
| <Target Name="Build" DependsOnTargets="RestorePackages"> | |
| <MSBuild Targets="Build" | |
| Projects="@(Solution)" /> | |
| </Target> | |
| <Target Name="Rebuild" DependsOnTargets="RestorePackages"> | |
| <MSBuild Targets="Rebuild" | |
| Projects="@(Solution)" /> | |
| </Target> | |
| </Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment