Skip to content

Commit b4221c0

Browse files
Update AppVeyor build script to use repo tag name for nupkg version.
1 parent 2b7fe20 commit b4221c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Take2/AppVeyor.proj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</ItemGroup>
77
<PropertyGroup>
88
<APPVEYOR_BUILD_VERSION Condition="'$(APPVEYOR_BUILD_VERSION)' == ''">0.0.0-rc0</APPVEYOR_BUILD_VERSION>
9+
<APPVEYOR_REPO_TAG_NAME Condition="'$(APPVEYOR_REPO_TAG_NAME)' == ''">$(APPVEYOR_BUILD_VERSION)</APPVEYOR_REPO_TAG_NAME>
910

1011
<TESTS_DLL Condition="'$(TESTS_DLL)' == ''">NuLog.Tests\bin\Debug\NuLog.Tests.dll</TESTS_DLL>
1112

@@ -52,8 +53,8 @@
5253
</Target>
5354
<Target Name="AppVeyorBuild">
5455
<MSBuild Projects="@(ProjectToBuild)" />
55-
<Exec Command="nuget pack NuGet\NuLog.nuspec -version $(APPVEYOR_BUILD_VERSION)" />
56-
<Exec Command="nuget pack NuGet\NuLog.Configuration\NuLog.Configuration.nuspec -version $(APPVEYOR_BUILD_VERSION)" />
56+
<Exec Command="nuget pack NuGet\NuLog.nuspec -version $(APPVEYOR_REPO_TAG_NAME)" />
57+
<Exec Command="nuget pack NuGet\NuLog.Configuration\NuLog.Configuration.nuspec -version $(APPVEYOR_REPO_TAG_NAME)" />
5758

5859
<ItemGroup>
5960
<FilesToDelete Include="**\NuLog*0.0.0-rc0.nupkg" />

0 commit comments

Comments
 (0)