-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.bat
22 lines (18 loc) · 1 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
tools\nuget.exe restore "src\Extension\NuGet.PackageSourceDiscovery.sln" -OutputDirectory %cd%\src\Extension\packages -NonInteractive
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild "src\Extension\NuGet.PackageSourceDiscovery.sln" /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
mkdir Build
mkdir Build\Extension
tools\nuget.exe pack "src\Extension\NuGet.PackageSourceDiscovery.Extension\NuGet.PackageSourceDiscovery.Extension.csproj" -symbols -o Build\Extension -p Configuration="%config%" %version%
copy src\Extension\NuGet.PackageSourceDiscovery.Extension\bin\%config%\*.dll Build\Extension
copy src\Extension\NuGet.PackageSourceDiscovery.Extension\bin\%config%\*.pdb Build\Extension
mkdir Build\CmdLet
tools\nuget.exe pack "src\CmdLet\DiscoverPackageSources.nuspec" -o Build\CmdLet -p SolutionDir=%cd% %version%