Skip to content

Commit d3d7361

Browse files
author
gfs
committed
Version in build script now a variable
1 parent 6d31c41 commit d3d7361

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

buildReleaseNuGetPackages.cmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
set ENETVER=5.22.12
12
echo "Start building Electron.NET dev stack..."
23
echo "Restore & Build API"
34
cd ElectronNet.API
45
dotnet restore
5-
dotnet build --configuration Release --force /property:Version=5.22.12
6-
dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts"
6+
dotnet build --configuration Release --force /property:Version=%ENETVER%
7+
dotnet pack /p:Version=%ENETVER% --configuration Release --force --output "%~dp0artifacts"
78
cd ..
89
echo "Restore & Build CLI"
910
cd ElectronNet.CLI
1011
dotnet restore
11-
dotnet build --configuration Release --force /property:Version=5.22.12
12-
dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts"
12+
dotnet build --configuration Release --force /property:Version=%ENETVER%
13+
dotnet pack /p:Version=%ENETVER% --configuration Release --force --output "%~dp0artifacts"
1314
cd ..

0 commit comments

Comments
 (0)