意外删除.sln文件 [英] accidently deleted .sln file

查看:112
本文介绍了意外删除.sln文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的C ++项目中,我发现我的 .sln 文件(解决方案文件)缺少了
。但是有一些.vcxproj文件。我使用VS IDE打开了项目的.vcxproj

文件,然后单击编译。当我关闭IDE时,它要求我保存或不保存.sln文件。

现在,我已经有了.sln文件。

我认为一切都很好吗?

谢谢。

Hi, in my C++ project I discovered my .sln file (solution file) was
missing. However there was some .vcxproj file. I opened the .vcxproj
file of my project using VS IDE and clicked compile. When I was closing
the IDE it asked me to save or not an .sln file.
Now, I already have the .sln file.
I think everything went fine right?
Thanks.

推荐答案

你可以创建一个新的解决方案文件,然后添加项目( s)或打开项目文件(就像你一样)并让它为你创建一个匹配的解决方案文件。



使用第一个选项可以设置解决方案选项并指定.sln文件的位置。使用第二个选项是懒惰的方式,但应该工作正常。如果您的解决方案有多个项目,第一个选项会更好一点。
You can either create a new solution file, then add the project(s) to it or open the project file (as you did) and let it create a matching solution file for you.

Using the first option allows you to set solution options and specify the location of the .sln file. Using the second option is the lazy way but should work fine. If your solution has more than one project, the first option will work a little better.


这篇关于意外删除.sln文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆