Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Case sensitive filesystems and Razor view searches #1736

@callumj

Description

@callumj

Title

When using a case sensitive file system the Razor View Engine will be unable to find the controller's view folder unless the path matches case in the directory structure.

Functional impact

Marginal, just requires that developers ensure the use of controller names in paths matches the same case as the directory structure.

Minimal repro steps

  1. Deploy a MVC application on a case sensitive file system (Mono on Linux) Example app used: https://github.com/callumj/vnext-mvc-sample
  2. Create a controller with a view such as HomeController#Create, this should have a view Home/Create.cshtml
  3. Navigate to /home/Create
  4. MVC will be unable to locate Home/Create.cshtml because it has been told to try home/Create.cshtml.

Expected result

It should locate the view irregardless of the case.

Actual result

View not found

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions