Kevin P.
Kevin P.

Reputation: 1452

Can you recommend a .cvsignore file for a Visual C#.NET solution?

I've developed a Visual C#.NET 2008 Express Edition solution containing three projects. I am cleaning it up to commit it into a CVS repository.

There are several files that are created during the build process that are not necessary to be placed in the repository since they will be regenerated automatically.

The question: Can anyone suggest a list of patterns to be placed into a .cvsignore file so that these generated files and folders are ignored?

Upvotes: 1

Views: 678

Answers (2)

Kevin P.
Kevin P.

Reputation: 1452

Thanks! This is what I have created:

bin
obj
*.cache
*.suo
*.csproj.user

Upvotes: 2

Jon Limjap
Jon Limjap

Reputation: 95462

Typically these are the only things that you have to commit:

  • .sln files
  • .cs files
  • .csproj files
  • .config files
  • External DLLs and corresponding XML/config files that you are referencing
  • other non-generated files that your application uses

All the rest are to be ignored, including:

  • .suo files
  • .csproj.user files
  • /bin folder and contents
  • /obj folder and contents
  • practically everything else

Upvotes: 5

Related Questions