1

In my project, while cloning existing repository, there is immediately added one new file. What is that? Am I allowed to push it or should I ignore it in .gitignore?

screenshot

There already exists .suo file... Could the reason be that I have installed the newest Visual Studio version?

Skar
  • 333
  • 2
  • 11
  • 1
    `.vs` itself should be in your `.gitignore`... you shouldn't need to worry about anything within it. – Jon Skeet Nov 29 '22 at 12:36
  • 1
    ignore the .vs-folder. that folger contains solution and project settings generated by visualstudio. this folder saves what files you upened last and where you posititioned your windows. – D.J. Nov 29 '22 at 12:37

1 Answers1

2

From official MS Docs:

The solution user options (.suo) file contains per-user solution options. This file should not be checked in to source code control.

The solution user options file is used to store user preference settings, and is created automatically when Visual Studio saves a solution. So need to worry. Even if you delete this, it will be auto generated on the very next build.

Moreover, it should not be checked into source code. So in your .gitignore file, you should its reference as well:

.wsuo
Abhishek Dutt
  • 1,308
  • 7
  • 14
  • 24
  • OK thanks, I was confused because I knew that .suo exists, but never saw .wsuo and why it shows when I didn't change a thing – Skar Nov 29 '22 at 13:15
  • I am not sure.Could be due to the latest update maybe. Which version of VS you're using btw? – Abhishek Dutt Nov 29 '22 at 14:48
  • I am using 17.4.1 on desktop, where is .wsuo file when cloned. But on my laptop, with some older version, is .suo when I clone the same repository. That's why I think that the problem is in VS version – Skar Nov 29 '22 at 14:53
  • Yeah seems like it can be a issue/bug with the VS version. If this answer helped, you can mark it as accepted. – Abhishek Dutt Nov 30 '22 at 04:09