Skip to content
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

Pin compiler version to workaround package validation loading missmatching roslyn versions #60026

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

safern
Copy link
Member

@safern safern commented Oct 5, 2021

This mitigates: #59908

There was a breaking change in between these 2 versions where an abstract and an interface member were added and unfortunately there is a race condition (I haven't found where), that sometimes Microsoft.CodeAnalysis is loaded from the SDK before we call the package validation task, and then in the package validation task we load Microsoft.CodeAnalysis.CSharp from the compiler package, which depends on these new members defined on Microsoft.CodeAnalysis but since we are loading it from the SDK for some reason, those members are not found and hence the crash.

PackageValidationError

Pinning the compiler version to unblock CI while I make more progress on the investigation

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@safern
Copy link
Member Author

safern commented Oct 5, 2021

All configurations is green. Merging to unblock CI and official build.

@safern safern merged commit eed2e5e into dotnet:main Oct 5, 2021
@safern safern deleted the PinCompilerPackageValidation branch October 5, 2021 22:23
@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants