macOS: wrongly-cased working directory silently disables .editorconfig, build fails with MEF006#3992
On macOS the filesystem is case-insensitive but case-preserving, so cd /Users/me/gitworkspace/ILSpy works even when the directory is really named GitWorkspace. The shell keeps the spelling you typed as its logical $PWD, and that mismatch silently disables the repo .editorconfig for the whole build.
Symptom
./build.ps1 --no-restore fails with five MEF006 errors that CI never reports:
ILSpy/Languages/CSharpLanguage.cs(55,30): error MEF006: Exported classes should have one constructor marked with the ImportingConstructor attribute.
ILSpy/Options/DecompilerSettingsViewModel.cs(47,30): error MEF006: ...
ILSpy/TreeNodes/ImageResourceEntryNode.cs(37,15): error MEF006: ...
ILSpy/TreeNodes/XmlResourceEntryNode.cs(34,15): error MEF006: ...
ILSpy/Bookmarks/BookmarkManager.cs(55,22): error MEF006: ...
A tell-tale sign: in the very same log line, the source path and the project path disagree in case.
/Users/me/GitWorkspace/ILSpy/ILSpy/Bookmarks/BookmarkManager.cs(55,22): error MEF006: ... [/Users/me/gitworkspace/ILSpy/ILSpy/ILSpy.csproj]
Cause
MSBuild builds the .editorconfig item from the project directory string it was given (the shell's logical, wrongly-cased $PWD), while the Csc task turns the relative Compile items into absolute paths via getcwd(), which returns the real, correctly-cased path. So csc is handed: