You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ngs) on build
Due to dotnet#41640, enabling IDE0005 on build requires users to enable generation of XML documentation comments. Even though this is documented with a note on IDE0005's [doc page](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0005), we have had numerous reports of users not figuring this out and spending lot of cycles fighting with this, especially given other IDE diagnostics work just fine on build. We have had many user reports of the same: dotnet#58103, dotnet#53720, dotnet#57539, OpenRA/OpenRA#19747 and numerous other offline queries.
This change enhances the IDE0005 analyzer to now detect the case when IDE0005 is being reported as a warning or an error in the IDE, but `GenerateDocumentationFile` is `false` for the project, which would mean IDE0005 wouldn't be reported on build. The analyzer reports a special helper diagnostic for this case, which recommends the user to set this property to `true` in their project file to enable IDE0005 on build. This should reduce the pain for customers who try to enforce IDE0005 on build and get hit by this issue.
Hi! Hope you are doing great!
I faced a problem with my project where I wanted all analyzers warnings to be errors. I simply can't make all warnings into errors.
To reproduce an issue I created a simple project: https://github.com/hasrthur/DotNetCoreWarningsTest.
Version Used: 6.0.100-rc.2.21505.57
Steps to Reproduce:
.editorconfig
has a settings to treat all analyzers violations as errors.*.csproj
file has the same setting setProgram.cs
contains redundantusing
statementRider shows that line as error.
But when I build a project either via rider or console the build succeeds.
Even if I add
to
.editorconfig
it has no effect at build time but when I addthe warning/error disappears in rider
Expected Behavior:
Build fails with error
Actual Behavior:
Build is successful without any warning
The text was updated successfully, but these errors were encountered: