-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update Roslyn package versions #23630
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
60dd508 to
daf56af
Compare
|
Hello human! Please make sure you've included the Shiproom Template in a comment or (preferably) the PR description. Also, make sure this PR is not marked as a draft and is ready-to-merge. |
|
Thanks @ajaybhargavb. |
5ab942a to
836c857
Compare
| { | ||
| public partial class StartupAnalyzer : DiagnosticAnalyzer | ||
| { | ||
| [System.Diagnostics.CodeAnalysis.SuppressMessage("MicrosoftCodeAnalysisReleaseTracking", "RS2008:Enable analyzer release tracking")] |
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.
FYI @Pilchie. This seems onerous to do during ask mode hence suppressed. That said, it's not very clear what the benefit of doing the release tracking is. Would you be able to find out? https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
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.
@mavasani - can you describe the customer benefit of enabling this analyzer? The page linked above talks a lot about the what and the how, but very little about why we would want to do this as analyzer authors.
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.
Ah, sorry, I'll add this info to the doc. Analyzer release tracking is analogous to public API tracking, but for analyzer packages. It allows the analyzer authors to track which analyzers were part of each analyzer release, with their default severity + enabled by default state. For example, see https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/Core/AnalyzerReleases.Shipped.md and https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/Core/AnalyzerReleases.Unshipped.md. It basically tracks the how an analyzer package has evolved over time.
Additionally, this should eventually allow analyzers that ship as part of an SDK to enable warning waves support, wherein the end user can choose a specific analyzer release version in the project file, and the tooling will automatically disable all rules shipped for the first time after that release. We are using this mechanism to enable warning waves support for .NET analyzers that will ship with .NET5 SDK, though right now the tooling is very specific to this SDK.
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.
|
Given that this is only a package version update, this should go through tell-mode, rather than ask-mode. |
- from 3.7.0-2.20257.6 to 3.7.0-4.20351.7 - matches dotnet/aspnetcore#23630 / dotnet/aspnetcore@7412976b4c8d - left `$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)` alone - at latest shipped version (3.0.0)
* Update dependencies from https://github.com/dotnet/aspnetcore build 20200706.10 Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.8.20356.8 -> To Version 5.0.0-preview.8.20356.10 * Update dependencies from https://github.com/dotnet/aspnetcore build 20200706.11 Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.8.20356.8 -> To Version 5.0.0-preview.8.20356.11 * Update dependencies from https://github.com/dotnet/aspnetcore build 20200706.12 Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.8.20356.8 -> To Version 5.0.0-preview.8.20356.12 Dependency coherency updates Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms,Microsoft.Net.Compilers.Toolset From Version 5.0.0-preview.8.20352.6 -> To Version 5.0.0-preview.8.20354.5 (parent: Microsoft.CodeAnalysis.Razor * Update dependencies from https://github.com/dotnet/aspnetcore build 20200707.1 Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.8.20356.8 -> To Version 5.0.0-preview.8.20357.1 Dependency coherency updates Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms,Microsoft.Net.Compilers.Toolset From Version 5.0.0-preview.8.20352.6 -> To Version 5.0.0-preview.8.20354.5 (parent: Microsoft.CodeAnalysis.Razor * Update dependencies from https://github.com/dotnet/aspnetcore build 20200707.2 Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.8.20356.8 -> To Version 5.0.0-preview.8.20357.2 Dependency coherency updates Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms,Microsoft.Net.Compilers.Toolset From Version 5.0.0-preview.8.20352.6 -> To Version 5.0.0-preview.8.20354.5 (parent: Microsoft.CodeAnalysis.Razor * Update dependencies from https://github.com/dotnet/aspnetcore build 20200707.6 Microsoft.NET.Sdk.Razor , Microsoft.CodeAnalysis.Razor , Microsoft.AspNetCore.Razor.Language , Microsoft.AspNetCore.Razor.Internal.Transport , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X , Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X , Microsoft.AspNetCore.Mvc.Razor.Extensions From Version 5.0.0-preview.8.20356.8 -> To Version 5.0.0-preview.8.20357.6 Dependency coherency updates Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Logging,System.Diagnostics.DiagnosticSource,System.Resources.Extensions,System.Text.Encodings.Web,Microsoft.Extensions.DependencyModel,Microsoft.NETCore.App.Ref,Microsoft.NETCore.App.Internal,Microsoft.NETCore.App.Runtime.win-x64,Microsoft.NETCore.Platforms,Microsoft.Net.Compilers.Toolset From Version 5.0.0-preview.8.20352.6 -> To Version 5.0.0-preview.8.20354.5 (parent: Microsoft.CodeAnalysis.Razor * Bump most `$(Tooling_MicrosoftCodeAnalysis*PackageVersion)` values - from 3.7.0-2.20257.6 to 3.7.0-4.20351.7 - matches dotnet/aspnetcore#23630 / dotnet/aspnetcore@7412976b4c8d - left `$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)` alone - at latest shipped version (3.0.0) Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Doug Bunting <[email protected]>
Description
Bug: AspNetCore templates fail to build in the latest VS.
Context: This was because Roslyn updated their MaxSupportedLangVersion in VS to 9.0 but Razor's Roslyn dependencies are out of date and don't support 9.0
Fix: Update Razor's Roslyn dependencies to a version that supports C# LangVersion 9.0.
Customer Impact
Regression?
No
Risk
Low (Package upgrades only)