mcintyre321 / EmbeddedResourceVirtualPathProvider

A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies
http://www.adverseconditionals.com/2011/07/portable-aspnet-code-using.html
MIT License
63 stars 42 forks source link

during development workflow? #8

Closed devmondo closed 10 years ago

devmondo commented 10 years ago

hi, great work, you have mentioned in the readme the following "You can also map assemblies to their location on disk, so they can be refreshed when you edit the files during development."

currently i am using this http://virtualtemplates.codeplex.com/

the est part about it is while i am in development, i can work with files on desk, in this way if i update any images, or any files, i don't have to recompile the referenced project, so all what i have to do is just to reference the project library and once i am done i just upload the dll to the website.

i think this is the same as your statement above, if i am correct, could you please tell me what lines of code should i add to have the above functionality, as it is not mentioned in the Readme.

thanks in adavaced

mcintyre321 commented 10 years ago

In the RegisterVirtualPathProvider.cs you can see a file path specified after the assembly object. It uses that path for finding the original source files.

Thanks for linking to the virtualtemplates project, I hadn't heard of it. It looks like it does the same thing - how come you are looking for alternatives?

devmondo commented 10 years ago

thanks a lot for reply now i understand it.

well Virtualtemplates project is really great, but when i came to your project, i saw it is much much smaller in code, so i thought i might use it instead :)