Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with pulling in Visual studio 2015

We just started to use github in school, and my team's issue is that when I do a pull the new files(classes, etc) are not shown in Visual studio only if I press the show all files button in Solution Explorer, but then I have to include every file manually into the project. Is there a way to make it automatic? Because it should do it automatically.

like image 909
benonymus Avatar asked Nov 17 '25 15:11

benonymus


1 Answers

The problem is that when your teammate commited the files, they weren't added to the project (no entry in the .csproj-file).

The .csproj-file is an XML-file which indicates which files are in the project. If he didn't commit the changes to this file, you'll not see them in your project.

Before he commits the changes, he needs to:

  • Make sure all the files are included in the project
  • Make sure the project is saved to disk (File => Save All) (If he doesn't do this, he'll see the project correctly in solution explorer because it's loading the csproj in memory, but on your end you'll get the old version)

Then he needs to make sure that he commits all files, as well as the .csproj.

If you pull then, it will pull down the newly added files, and the updated project-file

like image 143
Kenneth Avatar answered Nov 20 '25 03:11

Kenneth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!