git - What files for a C# program created by Visual Studio 2015 are worth to be committed into repositories? -


this question has answer here:

what files c# program created visual studio 2015 worth committed repositories?

i guess

  • .cs files
  • .proj files
  • .sln files? heard when firstly creating anew c# program, .sln file committed repository, later on needed to, because don't intentionally change .sln files changing projects inside them, still visual studio 2015 changes .sln files. can ide change in files?
  • properties/assembly.cs
  • anything else?

thanks.

typically recommended use github's visual studio .gitignore file.

https://github.com/github/gitignore/blob/master/visualstudio.gitignore

the current file of post looks this:

## ignore visual studio temporary files, build results, , ## files generated popular visual studio add-ons. ## ## latest https://github.com/github/gitignore/blob/master/visualstudio.gitignore  # user-specific files *.suo *.user *.userosscache *.sln.docstates  # user-specific files (monodevelop/xamarin studio) *.userprefs  # build results [dd]ebug/ [dd]ebugpublic/ [rr]elease/ [rr]eleases/ x64/ x86/ bld/ [bb]in/ [oo]bj/ [ll]og/  # visual studio 2015 cache/options directory .vs/ # uncomment if have tasks create project's static files in wwwroot #wwwroot/  # mstest test results [tt]est[rr]esult*/ [bb]uild[ll]og.*  # nunit *.visualstate.xml testresult.xml  # build results of atl project [dd]ebugps/ [rr]eleaseps/ dlldata.c  # .net core project.lock.json project.fragment.lock.json artifacts/ **/properties/launchsettings.json  *_i.c *_p.c *_i.h *.ilk *.meta *.obj *.pch *.pdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.tmp_proj *.log *.vspscc *.vssscc .builds *.pidb *.svclog *.scc  # chutzpah test files _chutzpah*  # visual c++ cache files ipch/ *.aps *.ncb *.opendb *.opensdf *.sdf *.cachefile *.vc.db *.vc.vc.opendb  # visual studio profiler *.psess *.vsp *.vspx *.sap  # tfs 2012 local workspace $tf/  # guidance automation toolkit *.gpstate  # resharper .net coding add-in _resharper*/ *.[rr]e[ss]harper *.dotsettings.user  # justcode .net coding add-in .justcode  # teamcity build add-in _teamcity*  # dotcover code coverage tool *.dotcover  # visual studio code coverage results *.coverage *.coveragexml  # ncrunch _ncrunch_* .*crunch*.local.xml ncrunchtemp_*  # mightymoose *.mm.* autotest.net/  # web workbench (sass) .sass-cache/  # installshield output folder [ee]xpress/  # docproject documentation generator add-in docproject/buildhelp/ docproject/help/*.hxt docproject/help/*.hxc docproject/help/*.hhc docproject/help/*.hhk docproject/help/*.hhp docproject/help/html2 docproject/help/html  # click-once directory publish/  # publish web output *.[pp]ublish.xml *.azurepubxml # todo: comment next line if want checkin web deploy settings # database connection strings (with potential passwords) unencrypted *.pubxml *.publishproj  # microsoft azure web app publish settings. comment next line if want # checkin azure web app publish settings, sensitive information contained # in these scripts unencrypted publishscripts/  # nuget packages *.nupkg # packages folder can ignored because of package restore **/packages/* # except build/, used msbuild target. !**/packages/build/ # uncomment if necessary regenerated when needed #!**/packages/repositories.config # nuget v3's project.json files produces more ignorable files *.nuget.props *.nuget.targets  # microsoft azure build output csx/ *.build.csdef  # microsoft azure emulator ecf/ rcf/  # windows store app package directories , files apppackages/ bundleartifacts/ package.storeassociation.xml _pkginfo.txt  # visual studio cache files # files ending in .cache can ignored *.[cc]ache # keep track of directories ending in .cache !*.[cc]ache/  # others clientbin/ ~$* *~ *.dbmdl *.dbproj.schemaview *.jfm *.pfx *.publishsettings orleans.codegen.cs  # since there multiple workflows, uncomment next line ignore bower_components # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) #bower_components/  # ria/silverlight projects generated_code/  # backup & report files converting old project file # newer visual studio version. backup files not needed, # because have git ;-) _upgradereport_files/ backup*/ upgradelog*.xml upgradelog*.htm  # sql server files *.mdf *.ldf *.ndf  # business intelligence projects *.rdl.data *.bim.layout *.bim_*.settings  # microsoft fakes fakesassemblies/  # ghostdoc plugin setting file *.ghostdoc.xml  # node.js tools visual studio .ntvs_analysis.dat node_modules/  # typescript v1 declaration files typings/  # visual studio 6 build log *.plg  # visual studio 6 workspace options file *.opt  # visual studio 6 auto-generated workspace file (contains files open etc.) *.vbw  # visual studio lightswitch build output **/*.htmlclient/generatedartifacts **/*.desktopclient/generatedartifacts **/*.desktopclient/modelmanifest.xml **/*.server/generatedartifacts **/*.server/modelmanifest.xml _pvt_extensions  # paket dependency manager .paket/paket.exe paket-files/  # fake - f# make .fake/  # jetbrains rider .idea/ *.sln.iml  # coderush .cr/  # python tools visual studio (ptvs) __pycache__/ *.pyc  # cake - uncomment if using # tools/** # !tools/packages.config  # telerik's justmock configuration file *.jmconfig  # biztalk build output *.btp.cs *.btm.cs *.odx.cs *.xsd.cs 

this gitignore file has community's standards microsoft visual studio repository.

you want include .sln file. way if other developers start work on project, able open in visual studio right away. .sln file typically changed if add new project solution.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -