Created
February 16, 2016 14:28
-
-
Save tonyjoanes/e074310db748fde03b84 to your computer and use it in GitHub Desktop.
Build file that points to Nuget.exe and performs a restore
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 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)</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