简体   繁体   中英

What are the files you should not check into source control for a new ASP.net project?

There is a new ASP.Net project in your company/team, be it web form or MVC. Someone have to create it first. So John Doe created it.

  1. What are the files that John should not check into version control? sln? proj? Anything else?
  2. If John do not check in sln or proj, how should the rest of the team open the project after they check out from version control for the first time?

You should check in .sln and .proj files.

Some of the files/folders which you typically do not check in are:

  • *.suo
  • *.user
  • packages folder
  • bin and obj folders
  • typically, any folder starting with a dot, eg .vs
  • node_modules

Depending on the project type, there will certainly be more files/folders which are typically not kept under version control.

BTW: see also this question: Should I add the Visual Studio .suo and .user files to source control?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM