Reputation: 1455
I have a .cshtml file in my App_Templates folders that builds but I have heaps of errors.
I get it saying things like:
It is strange because other cshtml files in other directories are fine and have no red line errors. I have restarted VS, restarted my PC, tried adding a few assembly lines from other questions and rebuilding. I have tried for the past day but can't fix this annoying thing.
Any helpful hints or tips would be great. If you require any specific information please let me know and i'll edit this post.
Upvotes: 0
Views: 1089
Reputation: 1455
Just wanted to close this thread for good.
The issue was as @Georg Patschieder suggested in the comments on the initial questions. The wrong folder was used and once I moved the *.cshtml files to App_Code and changed the respective references everything worked great.
Upvotes: 1