-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Most of the Blazor rules do not work against App on .net 8.0 #703
Comments
|
Can you try with the latest SDK (Version: 8.0.201)? I think it contains some fixes related to analyzers. I'll try to reproduce the bug on my side later, maybe this weekend. |
Note that some rules such as MA0116 and MA0122 are not reported on .NET 8 as the attributes are now useless. More info: https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-8-preview-6/?WT.mc_id=DT-MVP-5003978#cascade-query-string-values-to-blazor-components On my machine the analyzer seems to work correctly on .NET 8 with the latest SDK. Could you provide a repro if you still have the issue? |
Unfortunately after installing new SDK situation do not changes. Repro steps:
λ dotnet --list-sdks λ dotnet --version |
MA0115 should be reported. In ASP.NET 8, Blazor introduced a new method |
I have updated to newest version and MA0115 works fine. Thank you very much for your feedback and fast fix!!! |
Version of the Meziantou.Analyzer NuGet package
2.0.145
Rule Identifier
MA0115
Target Framework
net8.0
C# Language version
C#12
Description
Hi,
I'm trying to setup Meziantou.Analyzer for Blazor project on .net 8.0. It seems that some of the rules (MA0115, MA0116, MA0122, MA0119, MA0120) do not work. When I check them against project on .net 7.0 at least MA0115 works fine.
PS: I downloaded your code on my machine and assure that it compiles and all UnitTests (also for MA0115) passes.
Reproduction Steps
Minimal code:
Other information
No response
The text was updated successfully, but these errors were encountered: