如何在 Visual Studio 中更改设计器文件的语言

发布于 2024-08-22 14:43:16 字数 168 浏览 2 评论 0原文

有谁知道如何在 Visual Studio 中更改(自动生成的)设计器文件的语言而不更改 UI 的语言?

背景:我的团队成员使用德语和英语 Visual Studio。问题是(svn-)将设计器文件与两种不同语言的注释合并。每当成员更改 Web 表单时,都会重新生成设计器文件,并将注释更改为该成员的语言。

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 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必了 2024-08-29 14:43:16

我不知道执行此操作的简单方法,但在以下文件夹(适用于 Visual Studio 2010)中,您会发现很多 .zip 文件:

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

例如 WebForm.zip 包含以下文件:

  • Default.aspx
  • Default.aspx.cs
  • Default.aspx.designer.cs (这是你的坏人)
  • WebForm.vstemplate

这些是你的 Visual Studio 模板文件。您可以手动将它们更改为所有开发人员工作站上的相同。或者在您的情况下,您可能只想从英语 Visual Studio 安装中复制并覆盖整个文件夹。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文