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?
A:
I'm not 100% sure about the build scenarios around this file. I think that it's likely Studio, or more appropriately msbuild, will re-generate the file every time you build your application but not sure.
Either way, I would still check this file in for a couple of reasons
- It's the default for most source control providers in Visual Studio. They've thought a lot harder about this problem than I have and likely have good reasons for doing this
- Debugging: It's unlikely there would ever be a issue in the Resource.Designer.cs but if there was you'd be forced to build before you could attach / debug
- Source Control should be a history of your sources. What good is it doing if you can't see all of the sources related to your application.
The first reason being the most important
JaredPar
2010-02-04 16:40:19