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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you embed a view file into a project (mark the
.aspxfile 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.