简体   繁体   中英

Visual studio 2017 load project failed

Yesterday, I have finished working on my Android project (c# and Xamarin) on Visual Studio 2017, I closed it. Today, I re-opened the project in order to continue my work but the project is not loading, plus, I am getting an error in the output window saying:

There is a missing project subtype. Subtype: '{EFBA0AD7-5A72-4C68-AF49-83D382785DCF}' is unsupported by this installation.

I have searched up and tried every solution online but nothing worked for me. I tried to delete .suo file , repairing vs.. I do not know what to do.. please help me to solve my problem.

Here's a screenshot of the error

在此处输入图片说明

UPDATE I enabled Xamarin for Visual Studio, now the error in the output window is (and the project is still failing to load):

[I:]:                     Found Xamarin.Android 8.0.0.33
[I:sdk]:                  Runtime path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android
[I:sdk]:                  Framework path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0
[I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.0_6c165955\Android\AndroidSdkDirectory found:
    Path contains adb in \platform-tools (C:\Program Files (x86)\Android\android-sdk).
[I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.0_6c165955\Android\AndroidNdkDirectory found:
    Path contains ndk-stack in \. (C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b).
[I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.0_6c165955\Android\JavaSdkDirectory found:
    Path contains jarsigner.exe in \bin (C:\Program Files\Java\jdk1.8.0_131).
[I:]:                     Found Android SDK. API levels: 22, 23, 24, 25

Never worked with XAMARIN before but faced somewhat similar situations with other projects. Here's what you can do :

1. Create a new project

2. Right click on project > Add > Existing Item

3. Browse to the previous projects directory and add all the project files(i mean code files such as .cs)

**4. In winforms, if you add back a form's .cs file, it should automatically load the .designer.cs as well. **

After doing so, you can get back the entire project. There might be a few errors but they are easily fixable. Hope this helps :)

I had a global.json with and sdk for dotnet core that wasn't installed.

Either install the targeted version or update your global.json to fit what you have installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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