且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更改默认" Default.aspx的"到" Index.aspx的"在Visual Studio 2010中

更新时间:2022-12-08 21:48:45

您可以通过修改相关.vstemplate的 defaultName中元素。例如,你可能会发现你需要类似于以下的目录修改网络表单模板:C:\ Program Files文件\微软的Visual Studio 10.0 \ Common7 \ IDE \的ItemTemplate \ CSHARP \网络\ 1033。每个模板文件中像WebForm.zip一个zip文件管理。解压缩的内容,修改.vstemplate defaultName中的元素,并重新应用更改到相同的模板文件夹。你的更新应该反映在Visual Studio中。 (您可能需要重新启动VS。)

You can by modifying the associated .vstemplate DefaultName element. For example, you might find the webform template you need to modify in a directory similar to the following: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\1033. Each template file is managed within a zip file like WebForm.zip. Unzip the contents, modify the .vstemplate DefaultName element and reapply the changes to the same templates folder. Your updates should be reflected in Visual Studio. (You might need to restart VS.)

作为一种替代方法,您应考虑创建自己的模板(以关原),而不是修改默认模板。

As an alternative, you should consider creating your own template (based off the original) instead of modifying the default template.