Skip to content

The view 'Index' was not found #22

Description

@Genbox

I noticed that when I set the output path of an assembly, the views no longer load.

Steps to reproduce:

  1. Download the ready to use sample at http://extcore.net/files/ExtCore-Sample-1.0.0-alpha16.zip
  2. Change line 3 in ExtCore-Sample\src\WebApplication.ExtensionA\project.json from
    "buildOptions": { "embed": [ "Styles/**", "Views/**" ],
    To:
    "buildOptions": { "embed": [ "Styles/**", "Views/**" ], "outputName": "Something.ExtensionA"},
  3. Remove WebApplication.ExtensionA.dll from the Extensions folder of WebApplication
  4. Move Something.ExtensionA.dll from the output folder of the WebApplication.ExtensionA project into the Extensions folder in WebApplication

You should receive an error like this:
InvalidOperationException: The view 'Index' was not found. The following locations were searched:
/Views/ExtensionA/Index.cshtml
/Views/Shared/Index.cshtml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions