Should Resources.Designer.cs be under source control?

前端 未结 3 1287
执笔经年
执笔经年 2020-12-16 09:56

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 require

3条回答
  •  遥遥无期
    2020-12-16 10:38

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

    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.

提交回复
热议问题