Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Addon with zipped content folder and razor views

$
0
0

I have an addon that consists of a couple razor views.

When I zip the views folder up and place it in the modules directory I get the following error on my views:

Compiler Error Message: CS0103: The name 'model' does not exist int he current context

However, if I extract the zip file, my views work.

It would appear that the view engine is not able to read the web.config in the views directory when the files are zipped.  Has anyone else encountered this problem and come up with a solution?

Thanks in advanced!


Viewing all articles
Browse latest Browse all 9076

Trending Articles