Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
479 stars 79 forks source link

Checkup had Error status: vswin #37

Open gilesrpa opened 3 years ago

gilesrpa commented 3 years ago

On running the program, it completed with the following error: Checkup had Error status: vswin Please find below the log displayed.

`
¤ .NET MAUI Check ¤ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── This tool will attempt to evaluate your .NET MAUI development environment. If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them yourself.

Thanks for choosing .NET MAUI! ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── » Synchronizing configuration...Loading Manifest from: https://aka.ms/dotnet-maui-check-manifest-dev Required Version: 0.4.1 Current Version: 1.0.0.0 ok » Scheduling appointments...SetEnvironmentVariable: DOTNET_ROOT=C:\Program Files\dotnet SetEnvironmentVariable: DOTNET_ROOT=C:\Program Files\dotnet SetEnvironmentVariable: DOTNET_ROOT=C:\Program Files\dotnet ok

OpenJDK 11.0 Checkup... ValidateAndroidSdkLocation: , result=False ValidateAndroidSdkLocation:, result=False Looking for Android SDK... ValidateAndroidSdkLocation: C:\Program Files (x86)\Android\android-sdk, result=True ValidateJavaSdkLocation: , result=False ValidateJavaSdkLocation:, result=False ValidateJavaSdkLocation: C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot, result=True ValidateAndroidNdkLocation: , result=False ValidateAndroidNdkLocation:, result=False Looking for Android NDK... Looking for Android SDK... javac 11.0.10 javac 1.8.0-25 javac 11.0.10

  • 11.0.10 (C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot\bin..) SetEnvironmentVariable: JAVA_HOME=C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot
  • 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)

Visual Studio 16.10.0-pre.2.1 Checkup... [ { "instanceId": "b107c66f", "installDate": "2020-02-09T17:56:18Z", "installationName": "VisualStudio/16.9.6+31313.79", "installationPath": "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise", "installationVersion": "16.9.31313.79", "productId": "Microsoft.VisualStudio.Product.Enterprise", "productPath": "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe", "state": 4294967295, "isComplete": true, "isLaunchable": true, "isPrerelease": false, "isRebootRequired": false, "displayName": "Visual Studio Enterprise 2019", "description": "Scalable, end-to-end solution for teams of any size", "channelId": "VisualStudio.16.Release", "channelUri": "https://aka.ms/vs/16/release/channel", "enginePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service", "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.9#16.9.6", "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909", "updateDate": "2021-05-21T09:37:55.6693764Z", "catalog": { "buildBranch": "d16.9", "buildVersion": "16.9.31313.79", "id": "VisualStudio/16.9.6+31313.79", "localBuild": "build-lab", "manifestName": "VisualStudio", "manifestType": "installer", "productDisplayVersion": "16.9.6", "productLine": "Dev16", "productLineVersion": "2019", "productMilestone": "RTW", "productMilestoneIsPreRelease": "False", "productName": "Visual Studio", "productPatchVersion": "6", "productPreReleaseMilestoneSuffix": "1.0", "productSemanticVersion": "16.9.6+31313.79", "requiredEngineVersion": "2.9.3365.38425" }, "properties": { "campaignId": "1149335147.1581270415", "channelManifestId": "VisualStudio.16.Release/16.9.6+31313.79", "nickname": "", "setupEngineFilePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe" } } ]

  • 16.9.6

Android SDK Checkup... ValidateAndroidSdkLocation: , result=False ValidateAndroidSdkLocation:, result=False Looking for Android SDK... ValidateAndroidSdkLocation: C:\Program Files (x86)\Android\android-sdk, result=True ValidateJavaSdkLocation: C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot, result=True ValidateAndroidNdkLocation: , result=False ValidateAndroidNdkLocation:, result=False Looking for Android NDK... Looking for Android SDK... SetEnvironmentVariable: ANDROID_SDK_ROOT=C:\Program Files (x86)\Android\android-sdk SetEnvironmentVariable: ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk

  • emulator (30.6.5)
  • build-tools;30.0.2 (30.0.2)
  • platforms;android-30 (3)
  • system-images;android-30;google_apis;x86 (9)
  • platform-tools (31.0.2)

Android Emulator Checkup...

  • Emulator: pixel_2_nougat_70-_api_24 found.

.NET SDK Checkup... SetEnvironmentVariable: DOTNET_ROOT=C:\Program Files\dotnet 5.0.203 [C:\Program Files\dotnet\sdk] 6.0.100-preview.4.21255.9 [C:\Program Files\dotnet\sdk]

  • 5.0.203 - C:\Program Files\dotnet\sdk\5.0.203
  • 6.0.100-preview.4.21255.9 - C:\Program Files\dotnet\sdk\6.0.100-preview.4.21255.9 SetEnvironmentVariable: DOTNET_SDK=C:\Program Files\dotnet\sdk\6.0.100-preview.4.21255.9 SetEnvironmentVariable: DOTNET_SDK_VERSION=6.0.100-preview.4.21255.9

.NET SDK - EnableWorkloadResolver.sentinel Checkup...

  • C:\Program Files\dotnet\sdk\6.0.100-preview.4.21255.9\EnableWorkloadResolver.sentinel exists.

.NET SDK - Workloads (6.0.100-preview.4.21255.9) Checkup...

  • microsoft-android-sdk-full (Microsoft.NET.Workload.Android : 11.0.200-preview.4.245) installed.
  • microsoft-ios-sdk-full (Microsoft.NET.Workload.iOS : 14.5.100-preview.4.638) installed.
  • microsoft-maccatalyst-sdk-full (Microsoft.NET.Workload.MacCatalyst : 14.5.100-preview.4.638) installed.
  • microsoft-tvos-sdk-full (Microsoft.NET.Workload.tvOS : 14.5.100-preview.4.638) installed.
  • microsoft-macos-sdk-full (Microsoft.NET.Workload.macOS : 11.3.100-preview.4.638) installed.

.NET SDK - Packs (6.0.100-preview.4.21255.9) Checkup... Looking for pack: Microsoft.Maui.Templates (6.0.100-preview.4.634) Looking for template pack on disk: C:\Program Files\dotnet\template-packs Newest dotnet sdk version to look for templates in: C:\Users\pgr_h.templateengine\dotnetcli\v6.0.100-preview.4.21255.9\packages Found pack on disk: C:\Users\pgr_h.templateengine\packages

  • Microsoft.Maui.Templates (6.0.100-preview.4.634) installed. Looking for pack: Microsoft.iOS.Windows.Sdk (14.5.100-preview.4.638) Looking for template pack on disk: C:\Program Files\dotnet\template-packs Newest dotnet sdk version to look for templates in: C:\Users\pgr_h.templateengine\dotnetcli\v6.0.100-preview.4.21255.9\packages
  • Microsoft.iOS.Windows.Sdk (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.Android.Sdk (11.0.200-preview.4.245)
  • Microsoft.Android.Sdk (11.0.200-preview.4.245) installed. Looking for pack: Microsoft.Android.Sdk.BundleTool (11.0.200-preview.4.245)
  • Microsoft.Android.Sdk.BundleTool (11.0.200-preview.4.245) installed. Looking for pack: Microsoft.Android.Ref (11.0.200-preview.4.245)
  • Microsoft.Android.Ref (11.0.200-preview.4.245) installed. Looking for pack: Microsoft.Android.Templates (11.0.200-preview.4.245)
  • Microsoft.Android.Templates (11.0.200-preview.4.245) installed. Looking for pack: Microsoft.iOS.Sdk (14.5.100-preview.4.638)
  • Microsoft.iOS.Sdk (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.iOS.Ref (14.5.100-preview.4.638)
  • Microsoft.iOS.Ref (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.iOS.Templates (14.5.100-preview.4.638)
  • Microsoft.iOS.Templates (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.MacCatalyst.Sdk (14.5.100-preview.4.638)
  • Microsoft.MacCatalyst.Sdk (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.MacCatalyst.Ref (14.5.100-preview.4.638)
  • Microsoft.MacCatalyst.Ref (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.MacCatalyst.Templates (14.5.100-preview.4.638)
  • Microsoft.MacCatalyst.Templates (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.tvOS.Sdk (14.5.100-preview.4.638)
  • Microsoft.tvOS.Sdk (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.tvOS.Ref (14.5.100-preview.4.638)
  • Microsoft.tvOS.Ref (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.tvOS.Templates (14.5.100-preview.4.638)
  • Microsoft.tvOS.Templates (14.5.100-preview.4.638) installed. Looking for pack: Microsoft.macOS.Sdk (11.3.100-preview.4.638)
  • Microsoft.macOS.Sdk (11.3.100-preview.4.638) installed. Looking for pack: Microsoft.macOS.Ref (11.3.100-preview.4.638)
  • Microsoft.macOS.Ref (11.3.100-preview.4.638) installed. Looking for pack: Microsoft.macOS.Templates (11.3.100-preview.4.638)
  • Microsoft.macOS.Templates (11.3.100-preview.4.638) installed. ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Checkup had Error status: vswin vswin: ! There were one or more problems detected. Please review the errors and correct them and run maui-check again.

Press enter to exit...`

What is VSWin and what can be done to rectify this?

tomaswesterlund commented 3 years ago

I experienced the same thing and my issue was that I was using Visual Studio 16.9.

After upgrading to 16.10 the maui-check executed without any problem, however, I was not seeing the MAUI templates in Visual Studio.

I then followed up and installed 16.11 Preview (https://visualstudio.microsoft.com/vs/preview/) but there was still no templates available. After uninstalling 16.10, running maui-check again (so it installed the templates into the 16.11 folder) I could see the MAUI templated correctly in Visual Studio.