visual-studioresx

Should Resources.Designer.cs be under source control?


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


Solution

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