Commit 111ebca
authored
[Java.Interop] Treat warnings as errors. (#925)
Turn on `$(TreatWarningsAsErrors)` for `Release` builds only.
Also, Mono's `net6.0` (MSBuild 16) support causes warnings so we
aren't going to enable it there.
warning NETSDK1182: Targeting .NET 6.0 in Visual Studio 2019 is not supported.
warning CS8032: An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator
cannot be created from…/System.Text.Json.SourceGeneration.dll :
Could not resolve type with token 01000027 from typeref
(expected class 'Microsoft.CodeAnalysis.IIncrementalGenerator' in assembly 'Microsoft.CodeAnalysis, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35')
assembly:Microsoft.CodeAnalysis, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:Microsoft.CodeAnalysis.IIncrementalGenerator member:(null).
[…/src/Xamarin.Android.Tools.Bytecode/Xamarin.Android.Tools.Bytecode.csproj]
We also saw these warnings on Windows before we moved to
Visual Studio 2022 agents.1 parent 7a32bb9 commit 111ebca
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments