-
Notifications
You must be signed in to change notification settings - Fork 5.3k
RegularExpressions.Tests: match MicrosoftCodeAnalysisVersion used by RegularExpressions.Generator when DotNetBuildFromSource. #82036
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
Conversation
…RegularExpressions.Generator when DotNetBuildFromSource.
|
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions Issue DetailsWhen DotNetBuildFromSource is set, RegularExpressions.Generator uses MicrosoftCodeAnalysis 4.6, and this test project references that project, and uses MicrosoftCodeAnalysis 4.4. The project fails to compile with:
|
The version changed from 4.4 to 4.6 due to #81561. @ViktorHofer I've just added #81480 and it already failed with this. I think/hope that is an unlucky coincidence. I plan to change our (Red Hat) internal CI to build with |
|
|
||
| <!-- Remove once the repo moves to a sufficiently high-enough version for file-scoped types --> | ||
| <MicrosoftCodeAnalysisVersion>4.4.0-1.22356.23</MicrosoftCodeAnalysisVersion> | ||
| <MicrosoftCodeAnalysisVersion Condition="'$(DotNetBuildFromSource)' != 'true'">4.4.0-1.22356.23</MicrosoftCodeAnalysisVersion> |
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.
We got file-scoped types with .NET 7. Is this property still needed?
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.
cc @stephentoub
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.
It shouldn't be needed anymore.
When DotNetBuildFromSource is set, RegularExpressions.Generator uses MicrosoftCodeAnalysis 4.6, and this test project references that project, and uses MicrosoftCodeAnalysis 4.4. The project fails to compile with:
cc @ViktorHofer @jkoritzinsky