Completely removed GDI
This commit is contained in:
parent
ddf47ad51b
commit
d76e133f18
31 changed files with 236 additions and 2592 deletions
|
|
@ -88,6 +88,13 @@ build_windows:
|
|||
# Produce a single-file, ready-to-run publish so downstream jobs only need the EXE.
|
||||
try {
|
||||
& $dotnetExe publish "imagecatalog\ImageCatalog 2.csproj" -c $env:BUILD_CONFIG -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=false -p:PublishReadyToRun=true -o "imagecatalog\bin\$env:BUILD_CONFIG\net10.0-windows\publish" -v minimal
|
||||
$publishDir = "imagecatalog\bin\$env:BUILD_CONFIG\net10.0-windows\publish"
|
||||
$legacyRendererFiles = Get-ChildItem $publishDir -File | Where-Object { $_.Name -in @('Microsoft.Windows.Compatibility.dll', 'System.Private.Windows.GdiPlus.dll') }
|
||||
if ($legacyRendererFiles) {
|
||||
Write-Host 'Legacy GDI compatibility assemblies must not be published:'
|
||||
$legacyRendererFiles | ForEach-Object { Write-Host $_.FullName }
|
||||
exit 1
|
||||
}
|
||||
} catch {
|
||||
Write-Host "dotnet publish failed: $_"
|
||||
throw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue