dotnet format
emits a warning for unsupported projects even if the project's directory is excluded
#46242
Labels
dotnet format
emits a warning for unsupported projects even if the project's directory is excluded
#46242
Describe the bug
dotnet format
emits a warning when the solution contains a project without a language (e.g.modelproj
) that can't be suppressed even when the folder containing the project is excluded from the analysis.To Reproduce
dotnet format --verify-no-changes --exclude "DependencyValidation"
Expected: The project is ignored, no warning is emitted.
Actual: Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.
When you add
-v diag
, you get this warning:Exceptions (if any)
None, only warnings.
Further technical details
Visual Studio 17.12.4 on Windows 11
The text was updated successfully, but these errors were encountered: