-
Notifications
You must be signed in to change notification settings - Fork 790
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
Fixes: #4822 --- Support for arbitrary value in AssemblyInformationalVersionAttribute #5336
Fixes: #4822 --- Support for arbitrary value in AssemblyInformationalVersionAttribute #5336
Conversation
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.
In our own code we've suppressed this warning, can you update this line?
@brettfo can you take another look. |
…tionalVersionAttribute (dotnet#5336) * remove TypeChecker validation * update testcase baselines * Update fsharpqa tests * Feedback * Update nowarn test
…yInformationalVersionAttribute (dotnet#5336)" This reverts commit b5ab862.
…tionalVersionAttribute (dotnet#5336) * remove TypeChecker validation * update testcase baselines * Update fsharpqa tests * Feedback * Update nowarn test
I need this fix in dotnet-sdk and I'm not sure I understand the above messages; is it already released? In which sdk version? |
This should be in the latest .NET SDK as per: dotnet/cli#10199 If it is not, then @KevinRansom can speak more towards this fix. |
I get this warning, but the functionality works fine and I get my whole version string in the AssemblyInformationalVersion attribute. warning FS2003: The attribute System.Reflection.AssemblyInformationalVersionAttribute specified version '0.5.1.1-WIP', but this value is invalid and has been ignored [/home/vincenzo/data/jesus/repos/imgql/src/VoxLogicA.fsproj] |
This fix will appear in VS2019 preview 1. VS2017.9 does not have the fix. VS2017.9 was intended to be a stabilizing build, with a very high bar for and a very low number of bug fixes. |
@KevinRansom It's in the latest .NET SDK and @vincenzoml was able to confirm it works for him. Since this doesn't have VS bits, I'm not sure if a particular VS releases matters in this case... |
@cartermp, I am now a little confused: This is the dev15.9 branch source code: https://github.com/Microsoft/visualfsharp/blob/dev15.9/src/fsharp/TypeChecker.fs#L17350 This is the source code for the dev15.8 branch: As you can in both see it warns on invalid AssemblyInformationalVersionAttribute. This source was used to build the distributed VS2017.8 desktop and coreclr compilers, VS2017.9 desktop compiler, and the associated release of the dotnet cli. Master branch and dev16.0 and dev16.0 preview 1 all contain the fix. So to the best of my understanding no release or preview has yet shipped with this fix. Kevin |
I'm confused as well, as it's not clear why a fix that is in the .NET SDK 2.1.5xx is not available in .NET SDK 2.1.5xx .. I suppose we'll learn one way or another when dev16 preview 1 is out. |
This is a decompilation of the compiler dll from : It seems to have the check for AssemblyInformationalVersionAttribute
|
Fix: #4822, #5052
The F# compiler erroneously validated that the AssemblyInformationalVersionAttribute started with a Version number.
This changes relaxes that requirement.