You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
Running latest version of VS 2017, have Docker for Windows installed on Windows 10 with host set to linux
Running application via VS in debug all works fine, when running in Release mode I get compiler exceptions of the views, cant find namespace or reference. My razors views are retried from database and are compiled at runtime. Why is this issue happening in Release mode and not in Debug. Tried adding references in RazorViewOptions and still not working. Looked at this post and didnt see a resolution.
The issue is related to my views in the database and during compilation the ViewImports isnt used to add to the namespaces. It works fine in debug mode, but not in Release mode via docker with linux as host.
Is there a way to indicate to the razor view engine options to use the applications _ViewImports file that is in the project when it does a runtime compilation of razor view that is retrieved from the database??
From @joetherod on January 27, 2018 16:35
Running latest version of VS 2017, have Docker for Windows installed on Windows 10 with host set to linux
Running application via VS in debug all works fine, when running in Release mode I get compiler exceptions of the views, cant find namespace or reference. My razors views are retried from database and are compiled at runtime. Why is this issue happening in Release mode and not in Debug. Tried adding references in RazorViewOptions and still not working. Looked at this post and didnt see a resolution.
#715 (comment)
Please help.
Copied from original issue: aspnet/Hosting#1319
The text was updated successfully, but these errors were encountered: