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
Version Used: C#12
Visual studio 2022 17.12.3 Steps to Reproduce:
Create a new console application solution + console application csproj
Add a new class library to solution, lets call it classLib
Right click on console application, generate new editorconfig (intellicode)
Copy the generated .editorconfig from console application proj to the root directory of the classLib
Verify both csproj files have their "own" .editorconfig, by right clicking project in visual studio 2022, and click edit project.
Ensure both projects HAS this in their .csproj:
Add a project reference to classLibfrom console application. Create a simple class in classLib and use it to just console.writeline a property in console application.
Compile and run the project.
Observe Error:
A minimal repro, with source-code provided, is ideal. Most compiler/language issues can be distilled into a snippet that can be pasted into sharplab.
Diagnostic Id:
CS8700 Multiple analyzer config files cannot be in the same directory ('C:\Users\XXXX\source\repos\ConsoleApp1\ClassLibrary1').
CS8700 Multiple analyzer config files cannot be in the same directory ('C:\Users\XXXX\source\repos\ConsoleApp1\ConsoleApp1').
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g. "IDE0030: Use coalesce expression").
Expected Behavior:
Expected to be able to compile and run the solution.
Version Used: C#12
Visual studio 2022 17.12.3
Steps to Reproduce:
classLib
classLib
Ensure both projects HAS this in their .csproj:
Add a project reference to
classLib
from console application. Create a simple class inclassLib
and use it to just console.writeline a property in console application.Compile and run the project.
Observe Error:
A minimal repro, with source-code provided, is ideal. Most compiler/language issues can be distilled into a snippet that can be pasted into sharplab.
Diagnostic Id:
CS8700 Multiple analyzer config files cannot be in the same directory ('C:\Users\XXXX\source\repos\ConsoleApp1\ClassLibrary1').
CS8700 Multiple analyzer config files cannot be in the same directory ('C:\Users\XXXX\source\repos\ConsoleApp1\ConsoleApp1').
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g.
"IDE0030: Use coalesce expression"
).Expected Behavior:
Expected to be able to compile and run the solution.
Actual Behavior:
CS8700 Diagnostic error prevents compilation
Sample repository zipped:
ConsoleApp1.zip
Note: I've also tried this solution from stackoverflow, to no avail:
https://stackoverflow.com/questions/62274932/cs8700-multiple-analyzer-config-files-cannot-be-in-the-same-directory-but-onl
The text was updated successfully, but these errors were encountered: