-
Notifications
You must be signed in to change notification settings - Fork 0
/
NuGetPack.cmd
39 lines (31 loc) · 985 Bytes
/
NuGetPack.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
34
35
36
37
38
39
@echo off
setlocal EnableDelayedExpansion
set _build=
IF NOT "%APPVEYOR_BUILD_NUMBER%"=="" (
set _build=%APPVEYOR_BUILD_NUMBER%
)
IF NOT "%1"=="" (
set _build=%1
)
set _suffix=
set _version=1.8.1%_build%%_suffix%
set _configuration=Release
IF NOT "%CONFIGURATION%"=="" (
set _configuration=%CONFIGURATION%
)
set _branch=releases/netoffice_v1.8.1
set _commit=b204361c864063e184dd15456b0e360c77f2f470
set PATH=%~dp0.build;%PATH%
mkdir out
set libs=(Core Access Excel MSFormsApi MSProject Outlook PowerPoint Publisher Visio Word)
for %%I in %libs% do (
set library=%%I
set file=NetOfficeFw.!library!.nuspec
echo Packing NetOffice.!library!
nuget.exe pack src\!file! -OutputDirectory out -Version "!_version!" -Symbols -SymbolPackageFormat snupkg ^
-Properties Configuration=!_configuration!;GitBranch="!_branch!";GitCommit=!_commit! ^
-NonInteractive -ForceEnglishOutput
if ERRORLEVEL 1 (
echo Failed to create package and symbols from !file!.
)
)