1

Generally designers design static cshtml files after slicing PSDs before developers can use them to create dynamic pages. How these static html files should be structured in an application, such that:

  • They have their repository versions
  • Can share common JQuery/CSS/Images in solution used by other actual coded pages
  • Doesn't goes to production upon deployments

One good approach is:

Project
|_Area
   |_Design
     |_Controllers
       |_ ModuleA Controller (Has 1 controller with viewname argument and renders it)
       |_ ModuleB Controller (Has 1 controller with viewname argument and renders it)
     |_Views
       |_ModuleA
         |_StaticScreen1.cshtml
         |_StaticScreen2.cshtml
         |_StaticScreen3.cshtml
       |_ModuleB
         |_StaticScreenA.cshtml

This approach works good for 1st 2 points and is easy for designer too as they just need to keep adding screens in respective view folder. On a downside, this gets deployed to production too. Please suggest a better approach.

4

1 回答 1

0

单击您不想要的每个文件并查看属性。

将“构建操作”更改为“无”

发布时,将不包含具有 Build Action:None 的项目。

于 2012-04-18T08:07:45.337 回答