forked from Advance-Technologies-Foundation/clio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ps1
32 lines (24 loc) · 2.24 KB
/
build.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
30
31
32
$cliogate_Version="2.0.0.28"
$clioPath=".\clio\bin\Release\net6.0\clio.dll"
dotnet build .\clio\clio.csproj -c Release --no-incremental
New-Item ".\cliogate\.temp" -ItemType Directory -Force
dotnet build .\cliogate\cliogate.csproj --output ".\cliogate\.temp" -p:CopyLocalLockFileAssemblies=true
dotnet restore .\cliogate\cliogate.csproj --force
dotnet build .\cliogate\cliogate.csproj -c Release -f net472 -p:TargetFrameworks=net472 --no-incremental -p:AssemblyName=cliogate_netcore
dotnet build .\cliogate\cliogate.csproj -c Release -f netstandard2.0 -p:TargetFrameworks=netstandard2.0 --no-incremental -p:AssemblyName=cliogate_netcore
Copy-Item -Path ".\cliogate\.temp\ATF.Repository.dll" -Destination ".\cliogate\Files\Bin" -Force
Copy-Item -Path ".\cliogate\.temp\ATF.Repository.dll" -Destination ".\cliogate\Files\Bin\netstandard" -Force
dotnet $clioPath set-pkg-version ".\cliogate" --PackageVersion $cliogate_Version
(Get-Content ".\cliogate\descriptor.json") | Foreach-Object { $_ -replace '"Name": "cliogate",', '"Name": "cliogate_netcore",' } | Out-File -encoding ASCII (".\cliogate\descriptor.json")
dotnet $clioPath compress .\cliogate -d .\clio\cliogate\cliogate_netcore.gz
dotnet build .\cliogate\cliogate.csproj -c Release -f net472 -p:TargetFrameworks=net472 --no-incremental -p:AssemblyName=cliogate
dotnet build .\cliogate\cliogate.csproj -c Release -f netstandard2.0 -p:TargetFrameworks=netstandard2.0 --no-incremental -p:AssemblyName=cliogate
Copy-Item -Path ".\cliogate\.temp\ATF.Repository.dll" -Destination ".\cliogate\Files\Bin" -Force
Copy-Item -Path ".\cliogate\.temp\ATF.Repository.dll" -Destination ".\cliogate\Files\Bin\netstandard" -Force
dotnet $clioPath set-pkg-version ".\cliogate" --PackageVersion $cliogate_Version
(Get-Content ".\cliogate\descriptor.json") | Foreach-Object { $_ -replace '"Name": "cliogate_netcore",', '"Name": "cliogate",' } | Out-File -encoding ASCII (".\cliogate\descriptor.json")
dotnet $clioPath compress .\cliogate -d .\clio\cliogate\cliogate.gz
Remove-Item -LiteralPath ".\cliogate\.temp" -Force -Recurse
Get-ChildItem .\cliogate\Files\Bin | Remove-Item -Force -Recurse
dotnet build .\clio\clio.csproj -c Release --no-incremental
dotnet build .\clio\clio.csproj -c Debug --no-incremental