c# - Load view from bin folder? -


In an effort to keep many sites with a central set of ideas, I have created an external library with my thoughts. Is marked as always and is always copied.
This view is referenced in my websites and thus the library is referred to with a "view" folder in their bin folder.
Then I created a quick custom viewer like this:

  public class Commonwealthkiters: WebFormVienEngine {public CommonwealthOktter () {Master lectionformats = New [] {"~ / bin / views / {1 } / {0} .masters "," ~ / bin / views / share / {0} .master "}; ViewLocationFormats = new [] {"~ / bin / views / {1} / {0} .aspx", "~ / bin / views / {1} / {0} .ascx", "~ / bin / view / share /{0}.aspx "," ~ / bin / views / shared / {0} .ascx "}; Partial view location formats = sub-resolution formatting; }}  

I get this screen after running:

  The view 'index' or its master was not found. Searched at the following places: ~ / views / home / index.aspx ~ / view / home / index Cassax / /view / share / index.aspx ~ / view / share / index.csx ~ / bin / view / home / index.aspx ~ / bin / views / home / index.ascx ~ / bin / views / shared / index .aspx ~ / bin / view / share / index.ascx  

What's going wrong? Apart from this, it seems a little awkward that the bin folder has views, any other suggestions are welcome.

Post-build action on projects to move files into / bin / views / views Why not? Then you do not have to do anything special in the code.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -