If you use cmake, of course you don’t need sln/prj, cmake will generate the project file.
If there are no other management tools, projects using vs require sln/prj, etc.
According to the description of the questioner, it seems that this sln file will not change (well, I admit that I am not engaged in related development...). If this is the case, wouldn't it be enough to copy it to another computer after initialization? .
Let’s not talk about git first. The project created by vs must contain .sln文件,即解决方案文件,在vs中才可以打开。不用使用什么cmake,这么麻烦,把.sln文件加入git版本控制中就ok了,这样即使别人fork你的代码,仍旧可以直接使用,岂不是更好? 如果的确有需要忽略,不希望加入版本控制的文件,那么使用.gitignore files to solve the problem.
If you use cmake, of course you don’t need sln/prj, cmake will generate the project file.
If there are no other management tools, projects using vs require sln/prj, etc.
According to the description of the questioner, it seems that this sln file will not change (well, I admit that I am not engaged in related development...). If this is the case, wouldn't it be enough to copy it to another computer after initialization? .
Let’s not talk about git first. The project created by vs must contain
.sln
文件,即解决方案文件,在vs中才可以打开。不用使用什么cmake
,这么麻烦,把.sln
文件加入git版本控制中就ok了,这样即使别人fork你的代码,仍旧可以直接使用,岂不是更好? 如果的确有需要忽略,不希望加入版本控制的文件,那么使用.gitignore
files to solve the problem.