开发者

How to change language of designer files in Visual Studio

Does anybody know how to change the language of the (automatically generated) designer files in Visual Studio without changing the language of the UI?

Background: the members of my team use german and english Visual Studios. The problem is (svn-) merging the designer files with comments 开发者_StackOverflow中文版in two different languages. Whenever a member changes a web form, the designer file is re-generated and the comments are changed to the member's language.


I don't know a straightforward way to do this, but in the following folder (this is for Visual Studio 2010) you'll find a lot of .zip files:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\1033

For example WebForm.zip contains the following files:

  • Default.aspx
  • Default.aspx.cs
  • Default.aspx.designer.cs (this is your bad guy)
  • WebForm.vstemplate

These are your Visual Studio template files. You could change them manually to be the same on all developer workstations. Or in your case, you might just want to copy and override the entire folder from an English Visual Studio installation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜