In Visual Studio (2008) is there a way to have a custom dependent file on another custom file?

前端 未结 6 843
我在风中等你
我在风中等你 2020-12-01 11:33

Instead of a *.cs code behind or beside I\'d like to have a *.js file. I\'m developing a MVC application an have no need for a code beside because I have controllers, but i

6条回答
  •  情深已故
    2020-12-01 12:12

    Whilst the other solutions here (editing the project file) work for individual files, we've done the same thing, but want it to work automagically for all *.conv and *.conv.js files rather than having to edit the project file for each one.

    When we add a new .conv file to our app, if we have a *.conv.js file it automatically nests under it as you'd expect with .aspx and *.aspx.cs.

    I can't find the original tutorial I used to set this up (it does involved registry hacking) but here is one I found from a Google search just now that describes the same thing:

    http://blog.dotnetwise.com/2009/09/visual-studio-2008-custom-nested-files.html

提交回复
热议问题