.sln文件在Visual Studio崩溃后丢失 [英] .sln file went missing after Visual Studio crashed

查看:464
本文介绍了.sln文件在Visual Studio崩溃后丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在visual studio中设置一个github仓库,我在团队资源管理器中搞了个分支。当Visual Studio崩溃时,我从当前的分支更改了分支。我尝试再次打开该项目,Visual Studio告诉我它的缺失...我进入项目根文件夹并没有.sln文件在那里,只有一个.SUO文件可以找到。



我尝试创建一个空白项目,并尝试使用.csproj文件添加现有项目,但visual studio没有看到.csproj文件,即使有一个在项目的根文件夹中。在检查.csproj文件时,它说它是一个Visual Studio项目用户选项文件(.user)。



以前我确实设法在我的机器上创建一个本地git存储库...
请帮助,我该如何检索我的解决方案?

谢谢

解决方案

所以我能够通过将主分支推送到GitHub来获得我的原始分支。在GitHub中,我看到了两个分支(Master和我之前的分支)。上一个有我的所有文件!



不确定这是否符合答案或者我应该删除帖子?


I was trying to setup a github repository in visual studio, I was messing with the branches in team explorer. I changed the branch from my current one to master, when Visual Studio crashed. I try to open the project again and visual studio tells me its missing...I go into the project root folder and no .sln file is there, only an .SUO file can be found.

I try to create a blank project and try to add an existing project with the .csproj file, but visual studio does not see the .csproj file even though there is one in the root folder of the project. Upon inspecting the .csproj file, it says its an Visual Studio Project User Options file (.user).

Previously I did manage to create a local git repository on my machine... Please help, How can I retrieve my solution?

Thanks

解决方案

So I was able to get my original branch by pushing the master branch to GitHub. In GitHub I saw two branches (Master and my previous one). Previous one had all my files!

Unsure if this qualifies as an answer or not, or should I delete the post?

这篇关于.sln文件在Visual Studio崩溃后丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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