Skip to content

Commit

Permalink
Merge pull request #62 from Pilchie/nuget-versioning
Browse files Browse the repository at this point in the history
Use the appveyor version for the nupkg if present.
  • Loading branch information
Pilchie committed May 28, 2016
2 parents fcff523 + c7c33af commit 5de08e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions xunit.runner.wpf/xunit.runner.wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
<NuPkgVersion Condition="'$(appveyor_build_version)' != ''">$(appveyor_build_version)</NuPkgVersion>
<NuPkgVersion Condition="'$(NuPkgVersion)' == ''">1.0.0-local</NuPkgVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -192,8 +194,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterBuild">
<Exec Command="&quot;$(SolutionDir)packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe&quot; pack xunit.runner.wpf.nuspec -NoPackageAnalysis -OutputDirectory ." WorkingDirectory="$(OutDir)" LogStandardErrorAsError="true" ConsoleToMSBuild="true">
<Exec Command="&quot;$(SolutionDir)packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe&quot; pack xunit.runner.wpf.nuspec -Version $(NuPkgVersion) -OutputDirectory ." WorkingDirectory="$(OutDir)" LogStandardErrorAsError="true" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
</Target>
</Project>
</Project>
4 changes: 2 additions & 2 deletions xunit.runner.wpf/xunit.runner.wpf.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>xunit.runner.wpf</id>
<version>1.0.0</version>
<version>$version$</version>
<title>xUnit.Runner.WPF</title>
<authors>Pilchie</authors>
<owners>Pilchie</owners>
Expand All @@ -16,4 +16,4 @@
<file src="*.exe" target="tools\" exclude="*vshost*"/>
<file src="*.config" target="tools\" exclude="*vshost*"/>
</files>
</package>
</package>

0 comments on commit 5de08e1

Please sign in to comment.