-
Notifications
You must be signed in to change notification settings - Fork 37
/
Build-FabricObserverWebApi.ps1
29 lines (22 loc) · 2.53 KB
/
Build-FabricObserverWebApi.ps1
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
$ErrorActionPreference = "Stop"
$Configuration="Release"
[string] $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
try {
Push-Location $scriptPath
Remove-Item $scriptPath\bin\release\FabricObserverWeb\ -Recurse -Force -EA SilentlyContinue
dotnet publish FabricObserverWeb\FabricObserverWeb.csproj -o bin\release\FabricObserverWeb\linux-x64\self-contained\FabricObserverWebApiType\FabricObserverWebPkg\Code -c $Configuration -r linux-x64 --self-contained true
dotnet publish FabricObserverWeb\FabricObserverWeb.csproj -o bin\release\FabricObserverWeb\linux-x64\framework-dependent\FabricObserverWebApiType\FabricObserverWebPkg\Code -c $Configuration -r linux-x64 --self-contained false
dotnet publish FabricObserverWeb\FabricObserverWeb.csproj -o bin\release\FabricObserverWeb\win-x64\self-contained\FabricObserverWebApiType\FabricObserverWebPkg\Code -c $Configuration -r win-x64 --self-contained true
dotnet publish FabricObserverWeb\FabricObserverWeb.csproj -o bin\release\FabricObserverWeb\win-x64\framework-dependent\FabricObserverWebApiType\FabricObserverWebPkg\Code -c $Configuration -r win-x64 --self-contained false
Copy-Item FabricObserverWeb\PackageRoot\* bin\release\FabricObserverWeb\linux-x64\self-contained\FabricObserverWebApiType\FabricObserverWebPkg\ -Recurse
Copy-Item FabricObserverWeb\PackageRoot\* bin\release\FabricObserverWeb\linux-x64\framework-dependent\FabricObserverWebApiType\FabricObserverWebPkg\ -Recurse
Copy-Item FabricObserverWeb\PackageRoot\* bin\release\FabricObserverWeb\win-x64\self-contained\FabricObserverWebApiType\FabricObserverWebPkg\ -Recurse
Copy-Item FabricObserverWeb\PackageRoot\* bin\release\FabricObserverWeb\win-x64\framework-dependent\FabricObserverWebApiType\FabricObserverWebPkg\ -Recurse
Copy-Item FabricObserverWebApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\FabricObserverWeb\linux-x64\self-contained\FabricObserverWebApiType\ApplicationManifest.xml
Copy-Item FabricObserverWebApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\FabricObserverWeb\linux-x64\framework-dependent\FabricObserverWebApiType\ApplicationManifest.xml
Copy-Item FabricObserverWebApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\FabricObserverWeb\win-x64\self-contained\FabricObserverWebApiType\ApplicationManifest.xml
Copy-Item FabricObserverWebApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\FabricObserverWeb\win-x64\framework-dependent\FabricObserverWebApiType\ApplicationManifest.xml
}
finally {
Pop-Location
}