-
Notifications
You must be signed in to change notification settings - Fork 4.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
VS 15.5 Preview: VerificationException in otherwise valid function #22707
Comments
This seems to be similar to #22485, except here it's not just PEVerify complaining, it's also the runtime, due to the presence of |
We could also check for things like |
logged #22712 At least for APTCA, it seems possible and reasonable to sniff for the attribute and enable compat mode automatically. Same might be true for SecurityTransparent |
@VSadov Good to close? |
Yes. we have short term a solution that we believe is the right balance between desire to use new features and produce code compatible with old verification rules: #22772 We are also working on extending verification rules: |
Version Used:
Microsoft Visual Studio Enterprise 2017 Preview
Version 15.5.0 Preview 1.0
Steps to Reproduce:
Expected Behavior:
The program prints "Comparison: 0"
Actual Behavior:
The program crashes with a
VerificationException
inStructyMcStructFace.CompareTo
.Code:
IL of
CompareTo
with Visual Studio 2017 v15.4.0:IL of
CompareTo
with Visual Studio 2017 v15.5.0 Preview:The text was updated successfully, but these errors were encountered: