-
Notifications
You must be signed in to change notification settings - Fork 334
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
WindowsAppSDK-VersionInfo.cs and MddBootstrapAutoInitializer.cs cause warnings in analyzers #2032
Comments
This bug still exists in v1.0.1 |
In version 1.1.0-preview2 I don't get warnings but I do get several messages. I think this is caused by me having many of my VS code style settings set to "Suggestion" instead of "Refactoring Only". Is there a way to exclude this file from being checked against the VS code style settings (ie. Tools | options | Text Editor | C# | Code Style) |
Still not fixed in v1.1.0 |
Should these classes be internal? |
@DrusTheAxe It appears that there are additional StyleCop warnings that aren't covered by #2533; is that expected? |
Still not fixed in v1.1.2 |
I'll be looking at it next week |
Still not fixed in v1.1.3 |
I did some digging... Workaround here => dotnet/roslyn#53729 (comment) Official word is it's a feature => dotnet/roslyn#53729 (comment)
Another discussion with the full menu of options => https://stackoverflow.com/questions/7982525/visual-studio-disabling-missing-xml-comment-warning
and a little later in that thread a C# specific answer which looks most promising
... 1591 ... @DefaultRyan is it possible to declare that |
How about you just document the stuff... |
This isn't about documenting our stuff, but a matter of how, or more precisely, where. Is it just the warning noise that's an issue? Does having doccomments in source bring any additional value (or issues)? Just for files like |
Imho it is noise. Noise that should not be there as i as developer have no control over those files. I should not have to do anything to work around those warnings. |
Gotcha. Thanks for the input.
No disagreement, just trying to figure out the needs and best ways to squash the issue. I have a simple fix for the surface issue and we're discussing if a bigger change is warranted for the larger picture. I've teed up a patch for main and will bring it for 1.1-servicing consideration for our next servicing update. |
Developing .NET MAUI app with .NET 7.0, I can still see some warnings from |
I can see it too, also on MAUI. This file really needs to start with:
Also, I'm not sure, but I suspect that it is related to setting the property GenerateDocumentationFile to true, and could likely be fixed by setting it to false. Setting it to true probably isn't really necessary unless you are building a library for public consumption. But this is clearly a bug. |
That's generated out of another repo so I'll cook a fix over there. Thanks for reporting this. |
I'm still seeing this. Maybe because Tagging it with the GeneratedCodeAttribute may also fix it |
Not fixed for me as well. |
Describe the bug
Setting
<GenerateDocumentationFile>True</GenerateDocumentationFile>
in the project causes the following warnings to appear:Another issue is reported here:
DotNetAnalyzers/StyleCopAnalyzers/#3441
Steps to reproduce the bug
1.) Create a new WinUI 3 app with the template: Blank App, Packaged (WinUI 3 in Desktop)
2.) Enable documentation generation
3.) Build the app
Expected behavior
Warnings from nuget packages should not appear in any project that uses them.
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 10 version 2004 (19041, May 2020 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: