-
Notifications
You must be signed in to change notification settings - Fork 142
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
Build fails on VS2022 due to IDE0044 and similar errors #687
Comments
@LucaBlackDragon, I can't repro this. Here are the steps I did:
Everything worked as expected. I explicitly changed line 1007 of the .editorconfig file from
to
and then I got the failure that you're seeing. The warning behavior seems to be local to your config, although I honestly have no idea what would cause that. Please don't add any pragmas to the code to address this. Making IDE0044 error permanently would touch about 6 files and only take a few minutes to create. If you wanted to open a PR to that effect, that would be a far better option than dropping in pragmas that are not needed on other systems. I'll ask a couple of my colleagues to try to build with the latest VS release. We'll close it out if we can't repro. |
I'm closing this as the problem looks to be due to Visual Studio issues with Today I made some more research and I've found a ton of comments and issues like this:
EDIT: @DaveTryon if you need the issue reopened for some reason let me know! And thanks for your interest in this matter |
SMALL UPDATE:
honestly I don't know what to think 🥲 |
I am trying to make a PR for #584 but the build fails on Visual Studio 2022 (17.11.1).
It looks like it is ignoring the
.editorconfig
rules, e.g.:sbom-tool/.editorconfig
Line 1007 in 5e1b579
This is the full build output.
I'm on a Windows 11 PC with .NET 8 SDK, everything is updated to the latest available stable release (and I've deactivated the SonarLint extension which caused further errors).
I can work around these issues by adding a suppression file or
#pragma
comments, but I don't think this would be correct, am I right?The text was updated successfully, but these errors were encountered: