[msbuild] Ignore CS1685 in Xamarin.MacDev.Tasks tests.#25130
Conversation
Also treat all warnings as errors, since this project is now warning-free. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the Xamarin.MacDev.Tasks MSBuild test project configuration to suppress a known compiler warning from ILMerged task assemblies and to enforce a warning-free build by promoting warnings to errors.
Changes:
- Add
CS1685toNoWarnto ignore the duplicateImmutableArray<T>warning. - Enable
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>(replacing the previousWarningsAsErrors=Nullablebehavior).
✅ [CI Build #c5304fe] Build passed (Build packages) ✅Pipeline on Agent |
✅ [PR Build #c5304fe] Build passed (Detect API changes) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [CI Build #c5304fe] Build passed (Build macOS tests) ✅Pipeline on Agent |
🚀 [CI Build #c5304fe] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 156 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Also treat all warnings as errors, since this project is now warning-free.