Skip to content

Commit 4980efa

Browse files
jpnurmiclaude
andcommitted
test(aot): build with MSBuildTreatWarningsAsErrors
Projects using MSBuildTreatWarningsAsErrors=true would fail to publish with Native AOT due to warnings. Add a test to prevent such warnings slipping in. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 39ea4d8 commit 4980efa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

integration-test/aot.Tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ Console.WriteLine("Hello, Sentry!");
7272
$LASTEXITCODE | Should -Be 0
7373
}
7474

75+
It 'MSBuildTreatWarningsAsErrors' -Skip:(!$IsWindows) {
76+
dotnet publish -c Release -p:MSBuildTreatWarningsAsErrors=true | Write-Host
77+
$LASTEXITCODE | Should -Be 0
78+
}
79+
7580
It 'Container' -Skip:(!$IsLinux -or !(Get-Command docker -ErrorAction SilentlyContinue)) {
7681
dotnet publish -p:EnableSdkContainerSupport=true -t:PublishContainer | Write-Host
7782
$LASTEXITCODE | Should -Be 0

0 commit comments

Comments
 (0)