From ac05e0cc3a350709b47a97d71806bd7e2ea8ecc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 20 Feb 2017 22:03:54 +0300 Subject: [PATCH] Added initial build script and configured project.json to publish appsettings.json and Views. --- .gitignore | 3 +++ build/build.ps1 | 14 ++++++++++++++ src/AbpDesk/AbpDesk.Web.Mvc/project.json | 5 ++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 build/build.ps1 diff --git a/.gitignore b/.gitignore index f1e3d20e05..e091af4b1c 100644 --- a/.gitignore +++ b/.gitignore @@ -250,3 +250,6 @@ paket-files/ # JetBrains Rider .idea/ *.sln.iml + +# ABP +build/outputs \ No newline at end of file diff --git a/build/build.ps1 b/build/build.ps1 new file mode 100644 index 0000000000..47309dec9c --- /dev/null +++ b/build/build.ps1 @@ -0,0 +1,14 @@ +$buildFolder = (Get-Item -Path ".\" -Verbose).FullName +$outputFolder = Join-Path $buildFolder "outputs" + +$slnFolder = Join-Path $buildFolder "..\" +$abpDeskFolder = Join-Path $slnFolder "src/AbpDesk" +$abpDeskWebFolder = Join-Path $abpDeskFolder "AbpDesk.Web.Mvc" + +Set-Location $slnFolder +dotnet restore + +Set-Location $abpDeskWebFolder +dotnet publish --output (Join-Path $outputFolder "AbpDesk/Web") + +Set-Location $buildFolder diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/project.json b/src/AbpDesk/AbpDesk.Web.Mvc/project.json index 9b1c6a996c..91fdd2d4d4 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/project.json +++ b/src/AbpDesk/AbpDesk.Web.Mvc/project.json @@ -54,7 +54,10 @@ "publishOptions": { "include": [ "wwwroot", - "web.config" + "Areas", + "Views", + "web.config", + "appsettings.json" ] },