-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Roslyn version for generators in .NET 7 ref pack #67599
Changes from 3 commits
c3fac8d
c761f8e
e972004
09bb5a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -27,22 +27,30 @@ | |||||||||
We pin these versions as we need to match them exactly for any scenarios that run Roslyn on .NET Framework, like Visual Studio. | ||||||||||
--> | ||||||||||
<PropertyGroup> | ||||||||||
<!-- Compatibility with VS 16.11/.NET SDK 5.0.4xx --> | ||||||||||
<MicrosoftCodeAnalysisVersion_3_11>3.11.0</MicrosoftCodeAnalysisVersion_3_11> | ||||||||||
<!-- Compatibility with VS 17.0/.NET SDK 6.0.1xx --> | ||||||||||
<MicrosoftCodeAnalysisVersion_4_0>4.0.1</MicrosoftCodeAnalysisVersion_4_0> | ||||||||||
<!-- Compatibility with VS 17.X/.NET SDK 7.0.1xx --> | ||||||||||
<!-- | ||||||||||
This version is a moving target until we ship. | ||||||||||
It should never go ahead of the Roslyn version included in the SDK version in dotnet/arcade's global.json to avoid causing breaks in product construction. | ||||||||||
--> | ||||||||||
<MicrosoftCodeAnalysisVersion_4_X>4.2.0-2.final</MicrosoftCodeAnalysisVersion_4_X> | ||||||||||
</PropertyGroup> | ||||||||||
<PropertyGroup> | ||||||||||
<!-- Code analysis dependencies --> | ||||||||||
<MicrosoftCodeAnalysisAnalyzersVersion>3.3.3</MicrosoftCodeAnalysisAnalyzersVersion> | ||||||||||
<MicrosoftCodeAnalysisCSharpCodeStyleVersion>4.2.0-2.22128.1</MicrosoftCodeAnalysisCSharpCodeStyleVersion> | ||||||||||
<MicrosoftCodeAnalysisCSharpWorkspacesVersion>4.2.0-2.22128.1</MicrosoftCodeAnalysisCSharpWorkspacesVersion> | ||||||||||
<MicrosoftCodeAnalysisCSharpVersion>4.2.0-2.22128.1</MicrosoftCodeAnalysisCSharpVersion> | ||||||||||
<MicrosoftCodeAnalysisCSharpCodeStyleVersion>4.2.0-2.final</MicrosoftCodeAnalysisCSharpCodeStyleVersion> | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 This should be tied to the same value we use for Microsoft.Net.Compilers.Toolset |
||||||||||
<MicrosoftCodeAnalysisCSharpWorkspacesVersion>4.2.0-2.final</MicrosoftCodeAnalysisCSharpWorkspacesVersion> | ||||||||||
<MicrosoftCodeAnalysisCSharpVersion>4.2.0-2.final</MicrosoftCodeAnalysisCSharpVersion> | ||||||||||
Comment on lines
+45
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These property values will float separately from MicrosoftCodeAnalysisVersion_4_X very soon (I'm picking up a Roslyn fix for another PR), so I don't want to tie these together just to break the connection. The non-versioned properties are meant for internal-repo usage, so we don't need them to be locked down to particular versions of Roslyn. |
||||||||||
<MicrosoftCodeAnalysisNetAnalyzersVersion>7.0.0-preview1.22180.6</MicrosoftCodeAnalysisNetAnalyzersVersion> | ||||||||||
<MicrosoftCodeAnalysisVersion>4.2.0-2.22128.1</MicrosoftCodeAnalysisVersion> | ||||||||||
<MicrosoftCodeAnalysisVersion>4.2.0-2.final</MicrosoftCodeAnalysisVersion> | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
<!-- | ||||||||||
TODO: Remove pinned compiler version once arcade supplies runtime with a compiler capable of handling !! | ||||||||||
and has https://github.com/dotnet/roslyn/pull/59776 | ||||||||||
--> | ||||||||||
<MicrosoftNetCompilersToolsetVersion>4.2.0-2.22128.1</MicrosoftNetCompilersToolsetVersion> | ||||||||||
<MicrosoftNetCompilersToolsetVersion>4.2.0-2.final</MicrosoftNetCompilersToolsetVersion> | ||||||||||
<!-- SDK dependencies --> | ||||||||||
<MicrosoftDotNetCompatibilityVersion>2.0.0-alpha.1.21525.11</MicrosoftDotNetCompatibilityVersion> | ||||||||||
<!-- Arcade dependencies --> | ||||||||||
|
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.
❔ Did we ever resolve the issue where these are getting loaded in 16.11?