-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBuild-Portable.ps1
More file actions
8 lines (6 loc) · 851 Bytes
/
Build-Portable.ps1
File metadata and controls
8 lines (6 loc) · 851 Bytes
1
2
3
4
5
6
7
8
dotnet publish .\BlockchainSQL.Server\BlockchainSQL.Server.csproj -c Release /p:PublishProfile=BlockchainSQL.Server/Properties/PublishProfiles/portable.pubxml --output "Z:/Builds/BlockchainSQL/latest/portable"
dotnet publish .\BlockchainSQL.Web\BlockchainSQL.Web.csproj -c Release /p:PublishProfile=BlockchainSQL.Web/Properties/PublishProfiles/portable.pubxml --output "Z:/Builds/BlockchainSQL/latest/portable/web"
# Delete .pdb and .json files from the specified directory
$keepFiles = "appsettings.json", "web.config"
#Get-ChildItem -Path "Z:/Builds/BlockchainSQL/latest/portable" -Include *.pdb, *.json, *.xml, *.config -Recurse | Where-Object { $_.Name -notin $keepFiles } | Remove-Item -Force
Get-ChildItem -Path "Z:/Builds/BlockchainSQL/latest/portable" -Include *.pdb -Recurse | Where-Object { $_.Name -notin $keepFiles } | Remove-Item -Force