不再使用Visual Studio打开* .sln文件

我当时在进行xamarin.forms项目

System.MissingMethodException:找不到默认构造函数

came up on a constructor. According to the xamarin forums this is a VS bug, which I tried to fix with

%ProgramFiles(x86)%\ Microsoft Visual   Studio \ Installer \ resources \ app \ layout \ InstallCleanup.exe -i

While this did not solve my constructor problem, I found another way to achieve my goal and I worked out a solution without interfaces. Netherless, after restarting my PC, it seems like Visual Studio wont open sln files anymore. When I doubleclick them, a window which tells me to select an application to open the file appears

I also cant use the VS installer anymore. There is no repair or uninstall option and if I click install it fails because the Visual Studio directory isnt empty.

目前使用VS的唯一选择是找到VS的exe文件并以管理员身份打开(如果没有管理员,它也会失败)。从那里我可以浏览我的项目并打开sln文件。

有什么办法解决这个问题?如何在没有安装程序的情况下清除VS?

评论