Skip to content

Commit ee49a58

Browse files
jpnurmiclaude
andcommitted
test(aot): try building with MSBuildTreatWarningsAsErrors
Projects using MSBuildTreatWarningsAsErrors=true fail to publish with Native AOT due to LNK4099 warnings from sentry-native.lib missing its PDB. This is caused by CMP0141 NEW in sentry-native 0.13.5 switching the build from /Z7 (embedded debug info) to /Zi (external PDB). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 39ea4d8 commit ee49a58

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)