Skip to content

Commit e2d53d2

Browse files
committed
Added custom NuGet packaging command
1 parent 730c94e commit e2d53d2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

pack.cmd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@echo Off
2+
3+
SET config=%1
4+
5+
IF ["%1"] == [""] (
6+
SET config=Release
7+
)
8+
9+
call "%~dp0build.cmd" %config%
10+
11+
@echo "%~dp0src\.nuget\NuGet.exe" pack "%~dp0src\AutoTest.ArgumentNullException\AutoTest.ArgumentNullException.csproj" -Properties Configuration=%config% -NonInteractive -Symbols -OutputDirectory "%~dp0src\AutoTest.ArgumentNullException\bin\%config%"
12+
"%~dp0src\.nuget\NuGet.exe" pack "%~dp0src\AutoTest.ArgumentNullException\AutoTest.ArgumentNullException.csproj" -Properties Configuration=%config% -NonInteractive -Symbols -OutputDirectory "%~dp0src\AutoTest.ArgumentNullException\bin\%config%"
13+
14+
@echo "%~dp0src\.nuget\NuGet.exe" pack "%~dp0src\AutoTest.ArgumentNullException.Xunit\AutoTest.ArgumentNullException.Xunit.csproj" -Properties Configuration=%config% -NonInteractive -Symbols -OutputDirectory "%~dp0src\AutoTest.ArgumentNullException.Xunit\bin\%config%"
15+
"%~dp0src\.nuget\NuGet.exe" pack "%~dp0src\AutoTest.ArgumentNullException.Xunit\AutoTest.ArgumentNullException.Xunit.csproj" -Properties Configuration=%config% -NonInteractive -Symbols -OutputDirectory "%~dp0src\AutoTest.ArgumentNullException.Xunit\bin\%config%"

push.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
SET msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
44

5-
if "%1" == "" (
6-
call "%~dp0build.cmd"
5+
IF ["%1"] == [""] (
6+
call "%~dp0pack.cmd"
77
)
88

99
echo %msbuild% "%~dp0src\Build\NuGetPush.proj" /nologo /verbosity:m

0 commit comments

Comments
 (0)