Skip to content

Commit 92f30d9

Browse files
committed
Build.cmd corrections
1 parent eb85319 commit 92f30d9

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

build.cmd

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
SET SemVer="1.0.0.0-local"
2-
3-
pushd %~dp0%..\
4-
dotnet restore .\src\
5-
dotnet build .\src\ -c=Release /p:Version=%SemVer%
6-
dotnet test .\src\HdrHistogram.UnitTests\HdrHistogram.UnitTests.csproj /p:Configuration=Release
7-
dotnet pack .\src\HdrHistogram\HdrHistogram.csproj -c=Release --include-symbols /p:Version=%SemVer%
8-
popd
1+
@ECHO OFF
2+
3+
if [%1]==[] (
4+
SET SemVer="1.0.0.0-local"
5+
) ELSE (
6+
SET SemVer=%1
7+
)
8+
9+
dotnet restore -v=q
10+
11+
dotnet build -v=q -c=Release /p:Version=%SemVer%
12+
13+
dotnet test .\HdrHistogram.UnitTests\HdrHistogram.UnitTests.csproj -v=q --no-build -c=Release
14+
15+
dotnet pack .\HdrHistogram\HdrHistogram.csproj --no-build --include-symbols -c=Release /p:Version=%SemVer%

0 commit comments

Comments
 (0)