Skip to content

Commit

Permalink
Added -Version argument to NuGet build commands to ensure feature bra…
Browse files Browse the repository at this point in the history
…nch names are appended as pre-release tags
  • Loading branch information
sweetlandj committed Jan 1, 2017
1 parent 4e20593 commit 8644303
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/.nuget/NuGet.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>

<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>

<!-- Enable the restore command to run before builds -->
Expand Down Expand Up @@ -103,10 +104,10 @@
</Target>

<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
<Exec Command="$(BuildCommand) -Version $(GitVersion_NuGetVersion)"
Condition=" '$(OS)' != 'Windows_NT' " />

<Exec Command="$(BuildCommand)"
<Exec Command="$(BuildCommand) -Version $(GitVersion_NuGetVersion)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>
Expand Down

0 comments on commit 8644303

Please sign in to comment.