-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented custom caching of obfuscated dlls and disabling Blazor's …
…default
- Loading branch information
1 parent
81bbbc7
commit c10e15f
Showing
8 changed files
with
208 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Push-Location $PSScriptRoot | ||
|
||
function Write-Message{ | ||
param([string]$message) | ||
Write-Host | ||
Write-Host $message | ||
Write-Host | ||
} | ||
function Confirm-PreviousCommand { | ||
param([string]$errorMessage) | ||
if ( $LASTEXITCODE -ne 0) { | ||
if( $errorMessage) { | ||
Write-Message $errorMessage | ||
} | ||
exit $LASTEXITCODE | ||
} | ||
} | ||
|
||
function Confirm-Process { | ||
param ([System.Diagnostics.Process]$process,[string]$errorMessage) | ||
$process.WaitForExit() | ||
if($process.ExitCode -ne 0){ | ||
Write-Host $process.ExitCode | ||
if( $errorMessage) { | ||
Write-Message $errorMessage | ||
} | ||
exit $process.ExitCode | ||
} | ||
} | ||
|
||
Write-Message "Removing existing package from nuget cache ..." | ||
Remove-Item -Recurse -Force $env:USERPROFILE/.nuget/packages/BlazorWasmAntivirusProtection -ErrorAction SilentlyContinue; | ||
|
||
Write-Message "Kill running dotnet processes" | ||
Get-Process "dotnet" | Stop-Process | ||
|
||
|
||
Write-Message "Building ..." | ||
dotnet build ../src/BlazorWasmAntivirusProtection.Tasks/BlazorWasmAntivirusProtection.Tasks.csproj -c Debug | ||
dotnet build ../src/BlazorWasmAntivirusProtection/BlazorWasmAntivirusProtection.csproj -c Debug /p:VersionSuffix="test" | ||
Confirm-PreviousCommand | ||
|
||
Write-Message "Creating nuget package ..." | ||
dotnet pack ../src/BlazorWasmAntivirusProtection/BlazorWasmAntivirusProtection.csproj -c Debug /p:VersionSuffix="test" -o ../artifacts/nuget | ||
Confirm-PreviousCommand | ||
|
||
Write-Message "Build completed successfully" | ||
|
||
dotnet clean ../sampleapps/BlazorHostedSampleApp/Server/BlazorHostedSampleApp.Server.csproj -c Release | ||
dotnet publish ../sampleapps/BlazorHostedSampleApp/Server/BlazorHostedSampleApp.Server.csproj -c Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters