-
Notifications
You must be signed in to change notification settings - Fork 772
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
Unstable mvid when using signature file #14091
Comments
Could we do something with the fsharp/src/Compiler/AbstractIL/il.fsi Line 1098 in 9d9c6c1
to generate the mvid value? Or figure out on the |
Mvid depends on signature and optimization data, there's no "easy" fix for it. This issue is pretty much a duplicate of #13222 |
Thinking out loud but if you know a file was backed by a signature, could you not trim fsharp/src/Compiler/AbstractIL/ilwrite.fs Lines 4135 to 4141 in 8cd8973
Well, I wouldn't trim the existing stuff, just collect less when you can, purely for the mvid value. |
Tricky, we might want to experiment with it, however sigdata now has all members - internal and private. I am unsure what will consequences of this be - how it is used by existing tooling (if at all). |
When I have a project with a paired file (impl + sig), my reference assembly mvid should not change when I modify the implementation file where the signature did not change.
I think there are multiple situations where this happens.
Provide the steps required to reproduce the problem:
See https://github.com/nojaf/InstableMvid
Expected behaviour
The mvid should remain the same when the implementation was touched but the signature was not.
Actual behaviour
Adding a new class to the implementation only leads to another mvid value.
Known workarounds
I knew this could happen when you don't have signature files, so that was my whole reasoning for betting on them.
Related information
Provide any related information (optional):
I'm very interested to contribute to this.
@TIHan could you point me in the right direction?
The text was updated successfully, but these errors were encountered: