dotnet format does not understand disabled projects

If you disable a project in the solution (by removing it from the configuration), dotnet format will be confused and treat all the code of the disabled project as unused.