-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ILLInk fix the usage of treatWarningsAsErrors #45134
Comments
@dotnet/illink a new issue has been filed in the ILLink area, please triage |
Could you please describe in more details what changed and what part is incompatible with the ILLink handling? The PR on MSBuild is not saying the details either. Maybe there's some doc which I didn't find? |
We've moved the TreatWarningsAsErrors etc. to be handled via MSBuild engine directly. Not yet merged into the sdk, the PR for the update is here: . Before this change, this was an internal inconsistency within build that we were partially solving elsewhere. |
I'm not sure I understand. Should the trimmer produce the warnings as warnings regardless of |
Even if that's the case, how would ILLink task know what to do - would it have to act differently based on the MSBuild version? Do we have cases like that, where tasks change their behavior based on MSBuild version? Side note - the ILLink task behavior has been modeled by the Roslyn's behavior in this area, are we making changes to Roslyn or the Csc task related to this? Would be interesting how that was done. |
Also - |
Describe the bug
The PR 10942 in msbuild has changed the way WarningsAsErrors are treated. Unfortunately this is incompatible with the way ILLink currenctly uses them.
We need to decide how to handle this case since the MSBuild team wants this change for the sake of consistency even though it is more breaking than expected.
To Reproduce
Enable the ILLink_can_treat_warnings_not_as_errors, ILLink_can_treat_warnings_as_errors tests within the GivenThatWeWantToRunILLink.cs test file.
The text was updated successfully, but these errors were encountered: