I noticed that when I set the output path of an assembly, the views no longer load.
Steps to reproduce:
- Download the ready to use sample at http://extcore.net/files/ExtCore-Sample-1.0.0-alpha16.zip
- Change line 3 in ExtCore-Sample\src\WebApplication.ExtensionA\project.json from
"buildOptions": { "embed": [ "Styles/**", "Views/**" ],
To:
"buildOptions": { "embed": [ "Styles/**", "Views/**" ], "outputName": "Something.ExtensionA"},
- Remove WebApplication.ExtensionA.dll from the Extensions folder of WebApplication
- 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
I noticed that when I set the output path of an assembly, the views no longer load.
Steps to reproduce:
"buildOptions": { "embed": [ "Styles/**", "Views/**" ],To:
"buildOptions": { "embed": [ "Styles/**", "Views/**" ], "outputName": "Something.ExtensionA"},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