Skip to content

Commit 99a30f7

Browse files
committed
Append variable suffix to package version
1 parent 2219367 commit 99a30f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Elmah.SqlServer.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
44
<id>elmah.sqlserver</id>
5-
<version>2.0.0-alpha001</version>
5+
<version>2.0.0$VersionSuffix$</version>
66
<title>Microsoft SQL Server Error Log for ELMAH</title>
77
<authors>Atif Aziz</authors>
88
<owners>Atif Aziz, James Driscoll</owners>

pack.cmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ setlocal
99
for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i
1010
if "%nuget%"=="" goto :nonuget
1111
if not exist dist md dist || exit /b 1
12-
call build && for %%i in (*.nuspec) do (NuGet pack %%i -Symbols -OutputDirectory dist || exit /b 1)
12+
set VERSION_SUFFIX=
13+
if not "%~1"=="" set VERSION_SUFFIX=-Properties "VersionSuffix=-%~1"
14+
call build && for %%i in (*.nuspec) do (NuGet pack %%i %VERSION_SUFFIX% -Symbols -OutputDirectory dist || exit /b 1)
1315
goto :EOF
1416

1517
:nonuget

0 commit comments

Comments
 (0)