-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.cmd
33 lines (25 loc) · 901 Bytes
/
package.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@ECHO OFF
set MSBuildExe="%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
IF NOT EXIST %MSBuildExe% GOTO MSBuildNotFound
:: Prompt for product version
:: --------------------------------------------------
set /p Configuration=Configuration: %=%
set /p MajorVersion=Major Version: %=%
set /p MinorVersion=Minor Version: %=%
set /p RevisionNumber=Revision Number: %=%
:: Run MSBuild
:: --------------------------------------------------
cd src
%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /target:Package /property:Configuration=%Configuration% /property:MajorVersion=%MajorVersion% /property:MinorVersion=%MinorVersion% /property:RevisionNumber=%RevisionNumber% /property:Commit=%Commit%
if errorlevel 1 pause
cd..
GOTO Exit
:MSBuildNotFound
ECHO MSBuild Not Found: %MSBuildExe%
PAUSE
GOTO Exit
:GitNotFound
ECHO GIT Not Found: %GitExe%
PAUSE
GOTO Exit
:Exit