In general Razor tooling uses OS-dependent case sensitivity for file paths (ie, case sensitive on Mac and Linux, insensitive on Windows). The compiler generally uses case sensitivity always. This is explained here: #12196 (comment)
Once cohosting is exclusive, and we don't risk breaking something in the old Razor tooling project system etc. we should review and see if we should align tooling and compiler.