Browse Source

Added initial build script and configured project.json to publish appsettings.json and Views.

pull/81/head
Halil İbrahim Kalkan 9 years ago
parent
commit
ac05e0cc3a
  1. 3
      .gitignore
  2. 14
      build/build.ps1
  3. 5
      src/AbpDesk/AbpDesk.Web.Mvc/project.json

3
.gitignore

@ -250,3 +250,6 @@ paket-files/
# JetBrains Rider
.idea/
*.sln.iml
# ABP
build/outputs

14
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

5
src/AbpDesk/AbpDesk.Web.Mvc/project.json

@ -54,7 +54,10 @@
"publishOptions": {
"include": [
"wwwroot",
"web.config"
"Areas",
"Views",
"web.config",
"appsettings.json"
]
},

Loading…
Cancel
Save