-
Notifications
You must be signed in to change notification settings - Fork 392
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
Suppressing warnings through project properties UI adds tfm condition in csproj file for multi targeting project #2804
Comments
We need to design how this is going to work - whether we add a TFM switcher these pages, or we just make sure we don't persist it when we write the condition out. |
IMO, the ideal solution would be the first one that means implementing the TFM switcher with the default to all/any TFM. This should be followed by any NuGet work required. I also see this is marked for 15.6. Can this be considered for 15.5? I am okay with either approach - whichever is faster. |
We're not going to be able to fit this in for 15.5. Does NuGet respect suppressing warnings per TFM? |
I am not positive. @mishra14 can confirm. If not, how difficult is it to remove TFM filter for NuGet warning suppression (2nd option)? For 15.5? |
It needs investigation - we don't own that code. It lives in CPS and we'll need to add an extension point to override the behavior, |
NuGet currently considers the project wide warning properties to be framework independent. This can be changed if needed. But we need to consider if having no warn or warn as error per framework, make sense from a user point of view. It would be great to have the framework condition removed as the first step! |
@davkean, Is this on track for 15.6? |
No, given current priorities this is not on track for 15.6. @Pilchie When are we moving bugs to the "holding" pen that Matt was talking about? |
Hopefully next week I'll get our 15.6 bugs sorted out. |
sigh A bit longer than a week... |
Any idea then some progress could happens ? |
Bump? This is blocking the ability to suppress warnings per specific TFM in multi-targeting projects. |
Repro steps:
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
The issue here is that the user did not select
netcoreapp2.0
while suppressing the warning but the csproj hasnetcoreapp2.0
in the condition.Other Info:
if you try the same steps in a project that does not multi-target then the condition is fine -
VS Version: 15.4.0 Preview 2 | d15rel/16828.0
cc: @natidea @emgarten
The text was updated successfully, but these errors were encountered: