-
Notifications
You must be signed in to change notification settings - Fork 803
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
Fix #nowarn "2003" not working - #3139 #4480
Conversation
- Make sure the warning is triggered always (not only when AssemblyVersionAttribute is present) - Make sure warning can be disabled via #nowarn 2003 - Include the correct range of the problematic string
Seems like Should we fix that here? |
the ubuntu failure is not related, seems like nuget is on vacation this weekend |
@dotnet-bot Test Ubuntu16.04 Release_default Build please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes requested
@dsyme should be use a |
@dsyme OK I got it working again with the new message :) |
@dsyme Is there still something blocked on my side? At least initially it looked simple enough |
@matthid Thank you for this |
Fixes #3139, by moving the warning emit of the warning into the type-checking phase. In detail the behavior changes are:
AssemblyVersionAttribute
is present)#nowarn "2003"
This means now warnings are emitted as:
AssemblyInfo.fs(5,38): warning FS2003: An System.Reflection.AssemblyVersionAttribute specified version '5.0.0asdas', but this value is invalid and has been ignored
while previously they did not contain any range information
warning FS2003: An System.Reflection.AssemblyVersionAttribute specified version '5.0.0asdas', but this value is invalid and has been ignored
Also the ordering of the warnings might have changed. In order to compensate for the changed tests in
ProductVersion.fs
I added now ones intests/fsharp/tests.fs
.