Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which files in a Visual C# Studio project don't need to be versioned?

I'm new to Visual C# Studio (actually using the Express edition, but another developer is using the full version), and we are using version control (svn).

It's acceptable to me to add the project files to the repository, since this repo is just for the two of us using Visual C# Studio. But it feels like there are some irrelevant files in there. Can someone familiar with Visual C# Studio project files tell me which files can safely be svn:ignored?

Some suspect files:

  • project.csproj
  • project.csproj.Debug.cachefile
  • project.csproj.user
  • project.sln
  • project.suo
  • Content\Content.contentproj

I'm sure the .sln is required, but what's this .suo? and the .csproj? Can/should any of these be generated by Visual C# Studio on loading a project?

like image 932
Kai Avatar asked Oct 29 '09 15:10

Kai


People also ask

Which files contain Visual Basic code?

A VB file is a source code file created in Visual Basic language that was created by Microsoft for development of . NET applications. Another similar language with different syntax is C# whose files are saved with . CS file extension.

What are Microsoft Visual C++ files?

The Visual C++ Redistributable is a DLL (Dynamic Link Library) file required by programs or games built using Microsoft's Visual Studio software development environment. When a program requires a DLL or some other supporting file to run, this is called a dependency. The MSVCR. DLL stands for: MS – Microsoft.

Where are Visual C++ files located?

In Visual Studio 2015, they're found in Program Files [(x86)]\Common Files\Merge Modules .


1 Answers

Dont include
bin
obj
*.suo
*.user
_Resharper* (if you have Resharper)

Include
*.sln
*.csproj

You can also check the .gitignore file for visual studio projects on github.

like image 72
Carl Bergquist Avatar answered Oct 04 '22 08:10

Carl Bergquist