forked from Azure/azure-relay-aspnetserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.cmd
More file actions
22 lines (17 loc) · 747 Bytes
/
package.cmd
File metadata and controls
22 lines (17 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@ECHO OFF
PUSHD "%~dp0"
rem CDP_PACKAGE_VERSION_SEMANTIC set by internal
if not defined CDP_PACKAGE_VERSION_SEMANTIC set CDP_PACKAGE_VERSION_SEMANTIC=1.0.0.0-dev
if defined TF_BUILD (
set BuildConfiguration=Release
) else (
set BuildConfiguration=Debug
)
echo dotnet pack "%~dp0AzureRelayServer.sln" --no-build --no-dependencies --no-restore /p:Version=%CDP_PACKAGE_VERSION_SEMANTIC% --configuration %BuildConfiguration%
call dotnet pack "%~dp0AzureRelayServer.sln" --no-build --no-dependencies --no-restore /p:Version=%CDP_PACKAGE_VERSION_SEMANTIC% --configuration %BuildConfiguration% || (
echo ERROR: failed to create nuget packages
exit /B 1
)
REM ------------------------------------------------------------
POPD
EXIT /B 0