开发者

Controllers in a separate project, but when I try to add a view via "right click", it creates a new Views folder within my Controllers project..?

开发者 https://www.devze.com 2023-02-07 05:47 出处:网络
I\'ve got my Controllers in its own project, my Models in their own projects, and the Main App in ITS own project, which contains the Views folder.

I've got my Controllers in its own project, my Models in their own projects, and the Main App in ITS own project, which contains the Views folder.

So when I open up my controller cs file and right click on, say for example, the Details action and choose "Add View", it creates a Views folder within my Controllers project, and adds the view there. I want it to add the view into the Views folder in my Main App project. How in the world do I do this????? Thanks so much in advance for a开发者_Go百科nyone's help and advice!!

Mike


Right click in your project that has the views to add the view. Views don't care which controller calls them, so there is no reason to click in your controllers project.

0

精彩评论

暂无评论...
验证码 换一张
取 消