Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

C# Visual Studio 2012 files for version control

📅 2013-Sep-03 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ csharp, version control, visual studio 2012 ⬩ 📚 Archive

Assuming a simple C# console solution named Foo created using Visual Studio 2012, the following files should be kept in version control:

Foo
|-- Foo
|   |-- App.config
|   |-- Foo.csproj
|   |-- Program.cs
|   `-- Properties
|       `-- AssemblyInfo.cs
`-- Foo.sln

It is obvious that you should keep the C# source files (.cs) under version control. In addition, you also need to add the solution file (.sln), the project files (*.csproj), assembly information (AssemblyInfo.cs) and the application configuration (App.config).