We have graphic/interface designer who is developing html/css for our websites. How can I let him work on cshtml and css files without giving him access to controllers and models? Greetings
Asked
Active
Viewed 395 times
0
-
Do you mean give access in source control? Or give access in your IDE? – Charles Prakash Dasari Aug 27 '12 at 17:51
1 Answers
2
Why not separate the Controller and Models into separate Class Library projects, referenced by the MVC project? That way, you can expose the MVC project, including the views, styles and scripts, but keep the infrastructure private.
So long as you keep the naming convention correct, you shouldn't have any issue with controllers being separate.
-
then graphic designer will gain access to the project with views only and won't see controllers in models.. this is what I wanted, but will he be able to compile the project having only views? Sorry if I didn't understand something... – Bart Aug 28 '12 at 13:13
-
You might also want to enable compilation of views, so issues are caught at compile time rather than runtime. http://stackoverflow.com/questions/383192/compile-views-in-asp-net-mvc – Aug 28 '12 at 14:38
-
Thanks, I'll take a look at it. How should I share these projects with him? Through SVN/GIT or using VS Team Foundation (which afair is not free)? – Bart Aug 28 '12 at 18:32