Should Resources.Designer.cs be under source control?

Roger Lipscombe picture Roger Lipscombe · Feb 4, 2010 · Viewed 9.1k times · Source

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?

Answer

QuinnG picture QuinnG · Apr 19, 2011

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.