C# Visual Studio 2012 files for version control

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.