forked from sjkp/letsencrypt-siteextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
29 lines (18 loc) · 1.27 KB
/
build.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
WHERE msbuild
IF %ERRORLEVEL% NEQ 0 SET PATH=%PATH%;"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\"
WHERE msbuild
IF %ERRORLEVEL% NEQ 0 SET PATH=%PATH%;"C:\Program Files (x86)\MSBuild\14.0\bin\"
msbuild /version
nuget restore LetsEncrypt-SiteExtension.sln
RMDIR /S /Q artifacts
md artifacts
msbuild LetsEncrypt-SiteExtension\LetsEncrypt.SiteExtension.csproj /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="..\artifacts";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;SolutionDir="."
msbuild LetsEncrypt.SiteExtension.Core\LetsEncrypt.Azure.Core.csproj /p:Configuration=Release;SolutionDir="."
msbuild LetsEncrypt.SiteExtension.WebJob\LetsEncrypt.SiteExtension.WebJob.csproj /p:Configuration=Release;SolutionDir="."
xcopy LetsEncrypt.SiteExtension.Core\bin\Release\*.* artifacts\bin\ /sy
md artifacts\app_data\jobs\continuous\letsencrypt.siteextension.job
xcopy LetsEncrypt.SiteExtension.Core\bin\Release\*.* artifacts\app_data\jobs\continuous\letsencrypt.siteextension.job\ /sy
xcopy LetsEncrypt.SiteExtension.WebJob\bin\Release\*.* artifacts\app_data\jobs\continuous\letsencrypt.siteextension.job\ /sy
nuget pack letsencrypt.nuspec
RMDIR /S /Q artifacts\app_data\jobs
nuget pack LetsEncrypt.WebAppOnly.nuspec