本文介绍了Resources.Designer.cs是否应受源代码控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Resources.resx,用于生成Resources.designer.cs.应该将Resources.designer.cs签入,还是在需要时依靠Visual Studio生成它?

I have Resources.resx, which is used to generate Resources.designer.cs. Should Resources.designer.cs be checked in, or can I rely on Visual Studio generating it when required?

推荐答案

我的偏好是:如果构建系统对它进行了修改,请确保构建过程将创建它并且不将其检入.

My preference is: If it's modified by the build system, ensure the build process will create it and don't check it in.

对于诸如"designer"之类的自动生成的文件,我将它们检入.它们仅在其他组件发生更改时才被修改(由我执行).它是由VS生成的,而不是由构建系统修改的.

For autogenerated files like 'designer', I check them in. They only get modified when other components get changed (by me). It's generated by VS and not modified by the build system.

这篇关于Resources.Designer.cs是否应受源代码控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 06:21