-
Notifications
You must be signed in to change notification settings - Fork 15
Views names are Case-Sensitive when precompiled but not at development time. #42
Comments
/cc @pranavkm |
Dup of #37 which we decided was by design. |
Yes this is a dup in a sense of the issue, but have you considered having the FileProvider being case-sensitive by default ? So we can fail fast and avoid pitfall of errors. I'm confident that will be a good thing. cc @pranavkm |
@Bartmax we've had some discussions about this in the past (for instance aspnet/FileSystem#16 (comment)), and we don't want to enforce this behavior using the default |
I see, I think docs will be explicit about the file casing when using precompilation. That will solve most of the problems. (i think). One more last question: Is there any OTB FileProvider that is case-sensitive (or can be configured as such) that I can use to replace for the ContentRootFileProvider ? |
Not that I know of. There's a stackoverflow post about verifying paths on Windows using P/Invoke: http://stackoverflow.com/questions/16183788/case-sensitive-directory-exists-file-exists |
I see this is a very hard problem and understand why it wasn't addressed. We must have to live with good documentation and that's it. Thank you @pranavkm very insightful |
From @Bartmax on December 8, 2016 8:49
with a file called
Myview.cshtml
will work with no problem on Windows in development.it will fail on publish.
Maybe it would be good to enforce case-sensitive when loading views from disk ?
Copied from original issue: aspnet/RazorTooling#115
The text was updated successfully, but these errors were encountered: