简体   繁体   English

Visual Studio无法打开项目

[英]Visual Studio can't open project

I am having a problem that I have never encountered with visual studio. 我遇到了Visual Studio从未遇到过的问题。 I can open the window to the project choosing screen, but that is about it. 我可以打开项目选择屏幕的窗口,仅此而已。 Next, I try and open one of my normal project folders, (that I work on daily) but it just doesn't. 接下来,我尝试打开我的一个普通项目文件夹(我每天都在工作),但事实并非如此。 The editor is blank, and I can't click anything (meaning when I hover over a button and click nothing happens). 编辑器为空白,我无法单击任何东西(这意味着当我将鼠标悬停在按钮上并单击时没有任何反应)。 In the bottom left corner, all it says is 'Initializing...' 在左下角,它说的是“正在初始化...”

I look up the problem and delete my '.vs' folder, but that does nothing. 我查找了问题并删除了'.vs'文件夹,但这无济于事。 After finding nothing else, I decide to repair my installation with the installer. 一无所获后,我决定使用安装程序修复我的安装。 After that, I still couldn't open my file, so I tried to create a new project. 此后,我仍然无法打开文件,因此尝试创建一个新项目。 Even this didn't work. 即使这样也不起作用。 I assume it was stuck on initializing, but it just said 'created project successfully' with the normal non-responsive window. 我认为它停留在初始化上,但是它只是用正常的非响应窗口说“成功创建了项目”。

I decide to completely uninstall and reinstall visual studio, since I don't know what else to do. 我决定完全卸载并重新安装Visual Studio,因为我不知道该怎么办。 Once the installation completes, I get stuck on the same 'initializing...' as usual. 安装完成后,我将像往常一样停留在相同的“正在初始化...”上。 I even try opening other projects that I have made and get the same initializing in the corner of the screen. 我什至尝试打开我所做的其他项目,并在屏幕角落进行相同的初始化。

The only thing that I think could have caused this was when I pulled from github. 我认为可能造成此问题的唯一原因是当我从github上撤出时。 I tried to use visual studio's built-in github interface, and had an extremely hard time getting it working. 我试图使用Visual Studio的内置github界面,但很难使它正常工作。 My friend and I are working on a C++ SFML game, and his reference to it is different then mine. 我和我的朋友正在开发C ++ SFML游戏,他对它的引用与我的不同。 (I know, it is dumb but I am new to c++ and don't know how all of these references work, so I let it be.) I thought visual studio's built in github thing would deal with all of the referencing on different computers, but I was wrong. (我知道这很愚蠢,但是我对C ++还是陌生的,不知道所有这些引用是如何工作的,所以就顺其自然了。)我认为Visual Studio内置的github东西可以处理不同计算机上的所有引用。 , 但是我错了。 I had to go back into the project properties and change all the reference locations. 我必须回到项目属性并更改所有参考位置。

Keep in mind that visual studio works completely fine for my friend, for some reason. 请记住,出于某些原因,Visual Studio对于我的朋友来说完全可以正常工作。 Also, I have been using visual studio for years and had no problems opening a file. 另外,我已经使用Visual Studio多年了,打开文件没有问题。 I just used C# instead of C++. 我只是使用C#而不是C ++。

Any help would be appreciated, if I don't fix this in time I will probably be forced to switch to CodeBlocks or CLion. 任何帮助将不胜感激,如果我不及时解决这个问题,我可能会被迫切换到CodeBlocks或CLion。 (I want to use VS) (我想使用VS)

Thanks a lot! 非常感谢!

EDIT: I tried uninstalling git for windows and restarting, but that didn't do anything. 编辑:我尝试为Windows卸载git并重新启动,但是那没有做任何事情。 (Thanks for the suggestion) I also tried uninstalling and reinstalling one last time, but nothing happened. (感谢您的建议)我上次也尝试了卸载并重新安装,但是没有任何反应。 I found this page: https://developercommunity.visualstudio.com/content/problem/94904/vs-2017-153-crashes-opening-any-new-or-existing-pr.html It is similar to my issue, except there is no message, I just can't do anything. 我找到了此页面: https : //developercommunity.visualstudio.com/content/problem/94904/vs-2017-153-crashes-opening-any-new-or-existing-pr.html与我的问题类似,除了没有消息,我什么也做不了。 I followed the instructions and made a dump file, so if anyone understands it and needs it, here you go: http://www.mediafire.com/file/6fm76bfk8782t50/devenv.DMP/file 我按照说明进行了操作,并制作了转储文件,因此,如果有人理解它并需要它,请转到这里: http : //www.mediafire.com/file/6fm76bfk8782t50/devenv.DMP/file

Also, I am using my local SSD and even when I try browsing my files for the solution to open it, it does the same thing. 另外,我正在使用本地SSD,即使尝试浏览文件以打开该解决方案时,它也会执行相同的操作。

OK. 好。 I tried everything. 我尝试了一切。 It was unfix able. 这是无法修复的。 I feel bad for anyone else who has this problem, I don't know what the cause is or how you fix it (easily). 对于任何其他遇到此问题的人,我感到不舒服,我不知道原因是什么,如何解决(轻松)。 I tried sysinternals, and that was the last straw. 我尝试了sysinternals,那是最后一根稻草。

My solution: literally reinstall windows. 我的解决方案:重新安装Windows。

It works after that, but it is a bit time consuming. 此后它可以工作,但是有点耗时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM