Pin analyzers that ship in the SDK (#36690) (#36747)
* Pin analyzers that ship in the SDK ASP.NET Core produces a few analyzer assemblies that are shipped as part of the .NET SDK. These analyzers are added to web projects targeting 3.1 and newer. In 6.0, we (unintentionally) bumped the version of Microsoft.CodeAnalysis that these projects referenced to a 4.0 version. This causes warnings when opening a 3.1 or 5.0 app in VS 2019 as it does not support these versions. Additionally update the version of Microsoft.CodeAnalysis.* packages used in tests, Razor, and framework analyzers that are only expected to run with VS 2020 to a more recent build. This is largely book-keeping, but allows us to write a test for file scoped namespaces. Fixes https://github.com/dotnet/aspnetcore/issues/36552
显示
- eng/Versions.props 10 个添加, 3 个删除eng/Versions.props
- src/Analyzers/Analyzers/src/Microsoft.AspNetCore.Analyzers.csproj 2 个添加, 1 个删除...yzers/Analyzers/src/Microsoft.AspNetCore.Analyzers.csproj
- src/Analyzers/Analyzers/test/MinimalStartupTest.cs 3 个添加, 0 个删除src/Analyzers/Analyzers/test/MinimalStartupTest.cs
- src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj 2 个添加, 1 个删除...zers/src/Microsoft.AspNetCore.Components.Analyzers.csproj
- src/Mvc/Mvc.Analyzers/src/Microsoft.AspNetCore.Mvc.Analyzers.csproj 2 个添加, 1 个删除...c.Analyzers/src/Microsoft.AspNetCore.Mvc.Analyzers.csproj
- src/Mvc/Mvc.Api.Analyzers/src/Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj 2 个添加, 1 个删除...alyzers/src/Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj
加载中
想要评论请 注册 或 登录