Hey There
I have an MVC Application the views was embedded in the compiled dll, how can i get a list of all the views?
I am using reflection to get all the controller info, however, i do not know the view info.
Hey There
I have an MVC Application the views was embedded in the compiled dll, how can i get a list of all the views?
I am using reflection to get all the controller info, however, i do not know the view info.
When you embed a view file into a project (mark the .aspx
file as embedded resource) it is included into the resulting assembly. To obtain a list of all embedded resources you could use the GetManifestResourceStream method to obtain the file as is but I don't really see the usefulness of this technique.
If on the other hand you want to have views embedded into an assembly and instruct the runtime to use those views instead of the file system you might need to implement a custom VirtualPathProvider.