GithubHelp home page GithubHelp logo

dotnet-maui-check's Introduction

dotnet-maui-check

.NET MAUI Check tool

.NET MAUI Check

To install:

dotnet tool install -g Redth.Net.Maui.Check

To run:

maui-check

Troubleshooting

If you run into problems with maui-check, you should generally try the following:

  1. Update the tool to the latest version: dotnet tool update -g redth.net.maui.check --source https://api.nuget.org/v3/index.json
  2. Run with maui-check --force-dotnet to ensure the workload repair/update/install commands run regardless of if maui-check thinks the workload versions look good
  3. If you have errors still, it may help to run the Clean-Old-DotNet6-Previews.ps1 script to remove old SDK Packs, templates, or otherwise old cached preview files that might be causing the problem. Try running maui-check --force-dotnet again after this step.
  4. Finally, if you have problems, run with --verbose flag and capture the output and add it to a new issue.

Command line arguments

-m <FILE_OR_URL>, --manifest <FILE_OR_URL> Manifest File or Url

Manifest files are currently used by the doctor to fetch the latest versions and requirements. The manifest is hosted by default at: https://aka.ms/dotnet-maui-check-manifest Use this option to specify an alternative file path or URL to use.

maui-check --manifest /some/other/file

-f, --fix Fix without prompt

You can try using the --fix argument to automatically enable solutions to run without being prompted.

maui-check --fix

-n, --non-interactive Non-Interactive

If you're running on CI you may want to run without any required input with the --non-interactive argument. You can combine this with --fix to automatically fix without prompting.

maui-check --non-interactive

--preview Preview Manifest feed

This uses a more frequently updated manifest with newer versions of things more often. The manifest is hosted by default at: https://aka.ms/dotnet-maui-check-manifest-dev

maui-check --preview

--ci Continuous Integration

Uses the dotnet-install powershell / bash scripts for installing the dotnet SDK version from the manifest instead of the global installer.

maui-check --ci

-s <ID_OR_NAME>, --skip <ID_OR_NAME> Skip Checkup

Skips a checkup by name or id as listed in maui-check list. NOTE: If there are any other checkups which depend on a skipped checkup, they will be skipped too.

maui-check --skip openjdk --skip androidsdk

list List Checkups

Lists possible checkups in the format: checkup_id (checkup_name). These can be used to specify --skip checkup_id, -s checkup_name arguments.

config Configure global.json and NuGet.config in Working Dir

This allows you to quickly synchronize your global.json and/or NuGet.config in the current working directory to utilize the values specified in the manifest.

Arguments:

  • --dotnet or --dotnet-version: Use the SDK version in the manifest in global.json.
  • --dotnet-pre true|false: Change the allowPrerelease value in the global.json.
  • --dotnet-rollForward <OPTION>: Change the rollForward value in global.json to one of the allowed values specified.
  • --nuget or --nuget-sources: Adds the nuget sources specified in the manifest to the NuGet.config and creates the file if needed.

Example:

maui-check config --dev --nuget-sources --dotnet-version --dotnet-pre true

dotnet-maui-check's People

Contributors

davidortinau avatar eilon avatar hartez avatar jfversluis avatar jonathanpeppers avatar mattleibow avatar redth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-maui-check's Issues

Breaks coming for .NET workloads

I thought I'd just file an issue here, so you'll have an example of what's coming:

https://github.com/dotnet/designs/pull/188/files#diff-8fcaa29d8e6f00b34b3cb1830d93f33e75f04424780a66a3c658c7021048e74fR125

/data/ folder

The workload .nupkg files will now contain:

  • /data/WorkloadManifest.json
  • /data/WorkloadManifest.targets

While while the directory contents on disk will be unchanged.

This was in: dotnet/android#5843, xamarin/xamarin-macios#11221

Workload pack rename

Our pack names will become:

  • Microsoft.NET.Sdk.Android.Manifest-6.0.100
  • Microsoft.NET.Sdk.iOS.Manifest-6.0.100

The "version" of the .nupkg will remain our current versions.

The path on disk would be:

dotnet\sdk-manifests\6.0.100\Microsoft.NET.Sdk.Android\
    WorkloadManifest.json
    WorkloadManifest.targets

Drop the .Manifest-6.0.100 from the path on disk.

We will also be able to make the version value in WorkloadManifest.json a string that matches our other versions. Support for this was added in: dotnet/sdk#16746

This is still WIP, we need these bumps to land first:

What I got working so far: dotnet/android@d8b2da4

Error occurred while executing "maui-check --dev"

C:\WINDOWS\system32>maui-check --dev
_ _ _____ _____ __ __ _ _ _ ___
| \ | | | | | | | / | / \ | | | | | |
| | | | | | | | |/| | / _ \ | | | | | |
_ | |\ | | |
| | | | | | / ___ \ | |
| | | |
(
) || _| |_____| || || || // _\ _/ ||

¤ .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...
Error: 请求的名称有效,但是找不到请求的类型的数据。

Incorrect template validation

When checking for the .NET MAUI templates it always tells me they don't exist. I'm not sure if they are uninstalling and reinstalling, but I did confirm the new ones were installed after I manually uninstalled them.

Further checks also confirm the templates are not detected. Maybe a version fail?

Error while dotnet restore the project

Description

I have created a maui project using .NET Maui Preview 3 and open it in VS Code. Added nuget.config file. After that in terminal i run "dotnet restore" and getting bellow error;

PS D:\MAUIPreview3\WelcomeMauiPrev3> dotnet restore
  Determining projects to restore...
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0). Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 supports: net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0). Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 supports:    
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-ios13.6 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-maccatalyst13.5 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / android.21-arm64. Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 supports: net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / android.21-arm64. Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 supports:
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-ios13.6 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-maccatalyst13.5 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / android.21-x86. Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 supports: net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / android.21-x86. Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 supports:
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-ios13.6 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-maccatalyst13.5 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / iossimulator-x64. Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 supports: net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / iossimulator-x64. Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 supports:
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-ios13.6 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-maccatalyst13.5 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / maccatalyst-x64. Package Microsoft.Maui.Controls.Compatibility.Android.FormsViewGroup 6.0.100-preview.3.322 supports: net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202: Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 is not compatible with net6.0-android30.0 (.NETCoreApp,Version=v6.0) / maccatalyst-x64. Package Microsoft.Maui.Controls.Compatibility 6.0.100-preview.3.322 supports:
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-android30.0 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-ios13.6 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-maccatalyst13.5 (.NETCoreApp,Version=v6.0)
D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj : error NU1202:   - net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0)
  Failed to restore D:\MAUIPreview3\WelcomeMauiPrev3\WelcomeMauiPrev3.csproj (in 774 ms).

Error during OpenJDK 11 check: Object reference not set to an instance

Fails every time I try it, Windows 10 Version 10.0.19043.964. All other checks and installs work fine. 'redth.net.maui.check' (version '0.4.2')

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Install OpenJDK11
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: OpenJDK 1.8.0-1
  Installing Download and Install Microsoft OpenJDK 11...
Fix failed - Object reference not set to an instance of an object.

> Visual Studio 16.9.0 Checkup...
  - 16.9.4 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

x Skipped: Android SDK

x Skipped: Android Emulator

Maui check failed to update

After updating to .NET 6 preview 5 I tried to run maui-check command and it showed `

Updating to version 0.5.6 or newer is required:

dotnet tool update --global Redth.Net.Maui.Check, then when I run the update command I get this error

Tool 'redth.net.maui.check' failed to update due to the following:
Failed to uninstall tool package 'redth.net.maui.check': Access to the path 'C:\Users\Ahmed\.dotnet\tools.store\redth.net.maui.check\0.4.2' is denied.

Also, I tried to run dotnet tool uninstall --global Redth.Net.Maui.Check but I get the same error.

Doesn't check for WinUI needed stuff

I do love maui-check and I don't now if this is a bug or a missing feature:

To successfully build and run a MAUI app with WinUI we need extra steps, well documented in the .NET MAUI installation page.

Wouldn't be nice if maui-check can check also this and install the needed things or at least write a warning asking to do it by ourself?

How to uninstall?

It seems that maui workloads is breaking my visual studio installation. This happens after i installed dotnet 6 preview 5. My other computer is just fine after i installed the preview 5 without maui workloads installed. Projects wont load (even non maui projects like blazor, wpf, asp net core, etc) with this error:
error : The project file cannot be opened. The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located. Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
When i tried to update the tool i got this:

 dotnet tool update --global Redth.Net.Maui.Check

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100-preview.5.21302.13

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
C:\Users\t\AppData\Local\Temp\vcwbd54v.uva\restore.csproj(5,3): warning MSB4243: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located.  Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props(14,3): warning MSB4243: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located.  Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4236: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. [C:\Users\t\AppData\Local\Temp\vcwbd54v.uva\restore.csproj]
Tool 'redth.net.maui.check' failed to update due to the following:
The tool package could not be restored.
Tool 'redth.net.maui.check' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

Tried to repair my visual studio via the installer with no luck. Is there anything else i can do? Otherwise i have to fully reinstall my visual studio installation. Any help is appreciated. Thanks.

Script reports errors found in summary, but doesn't list any.

See log file:

      _   _   _____   _____     __  __      _      _   _   ___
     | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|
     |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |
  _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |
 (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|

¤ .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... ok
» Scheduling appointments... ok

> OpenJDK 11.0 Checkup...
  - 11.0.11 (C:\Program Files\OpenJDK\openjdk-11.0.11_9\bin\..)
  - 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...
  - 16.8.3

> Android SDK Checkup...
  - 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: VisualStudio_android-25_arm_phone found.

> .NET SDK Checkup...
  - 5.0.101 - C:\Program Files\dotnet\sdk\5.0.101
  - 6.0.100-preview.4.21255.9 - C:\Program Files\dotnet\sdk\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...
  - Microsoft.Maui.Templates (6.0.100-preview.4.634) installed.
  - Microsoft.iOS.Windows.Sdk (14.5.100-preview.4.638) installed.
  - Microsoft.Android.Sdk (11.0.200-preview.4.245) installed.
  - Microsoft.Android.Sdk.BundleTool (11.0.200-preview.4.245) installed.
  - Microsoft.Android.Ref (11.0.200-preview.4.245) installed.
  - Microsoft.Android.Templates (11.0.200-preview.4.245) installed.
  - Microsoft.iOS.Sdk (14.5.100-preview.4.638) installed.
  - Microsoft.iOS.Ref (14.5.100-preview.4.638) installed.
  - Microsoft.iOS.Templates (14.5.100-preview.4.638) installed.
  - Microsoft.MacCatalyst.Sdk (14.5.100-preview.4.638) installed.
  - Microsoft.MacCatalyst.Ref (14.5.100-preview.4.638) installed.
  - Microsoft.MacCatalyst.Templates (14.5.100-preview.4.638) installed.
  - Microsoft.tvOS.Sdk (14.5.100-preview.4.638) installed.
  - Microsoft.tvOS.Ref (14.5.100-preview.4.638) installed.
  - Microsoft.tvOS.Templates (14.5.100-preview.4.638) installed.
  - Microsoft.macOS.Sdk (11.3.100-preview.4.638) installed.
  - Microsoft.macOS.Ref (11.3.100-preview.4.638) installed.
  - Microsoft.macOS.Templates (11.3.100-preview.4.638) installed.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! There were one or more problems detected.
Please review the errors and correct them and run maui-check again.

Final message reports errors, but none of the previous tests have failed (or even asked if I want to fix something).

Can't work on Windows 7 SP1

Install: dotnet tool install -g redth.net.maui.check Run: maui-check on Windows 7 SP1,

Just flash the black window, then nothing in all, no message output.

Skip Windows check on macOS

When running on macOS, please don't bother trying to install Windows things. Perhaps just note that they were skipped.

I ran maui-check --dev and it tried to validate and install Microsoft.iOS.Windows.SDK.

Maui Check fails with PRE Req Installed

When I follow the docs here.

https://devblogs.microsoft.com/dotnet/announcing-net-maui-preview-5/

I get the following error
When I run
https://devblogs.microsoft.com/dotnet/announcing-net-maui-preview-5/

C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\NuGet.targets(131,5): error : Failed to retrieve information about 'redth.net.maui.chec' from remote source 'https://packagesource/FindPackagesById()?id='redth.net.maui.chec'&semVerLevel=2.0.0'. [C:\Users\David\AppData\Local\Temp\frbn5beb.roa\restore.csproj]
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\NuGet.targets(131,5): error : No such host is known. (packagesource:443) [C:\Users\David\AppData\Local\Temp\frbn5beb.roa\restore.csproj]
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\NuGet.targets(131,5): error : No such host is known. [C:\Users\David\AppData\Local\Temp\frbn5beb.roa\restore.csproj]
The tool package could not be restored.
Tool 'redth.net.maui.chec' failed to install. This failure may have been caused by:

  • You are attempting to install a preview release and did not use the --version option to specify the version.
  • A package by this name was found, but it was not a .NET tool.
  • The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  • You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

Possible Android emulator issue?

Would anyone know how to fix the following issue with maui-check?

===================================================================

  _   _   _____   _____     __  __      _      _   _   ___
 | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|
 |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |

_ | |\ | | |___ | | | | | | / ___ \ | || | | |
(
) || _| |_____| || || || // _\ _/ ||

☼ .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... ok
» Scheduling appointments... ok

OpenJDK 11.0 Checkup...

  • 11.0.10 (C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot\bin..)
  • 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...

  • 15.9.36
  • 16.10.0 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
  • 16.11.0-pre.1.0 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview

Android SDK Checkup...

  • 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 (30.0.4)

Android Emulator Checkup...
x Android Emulator - x86 - API30 - Google API's not created.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Create an Android Emulator
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: Android Emulator
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 5 more
Fix applied. Checking again...

Android Emulator Checkup...
x Android Emulator - x86 - API30 - Google API's not created.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Create an Android Emulator
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y

.NET SDK Checkup...

  • 3.1.409 - C:\Program Files\dotnet\sdk\3.1.409
  • 5.0.203 - C:\Program Files\dotnet\sdk\5.0.203
  • 5.0.300-preview.21258.4 - C:\Program Files\dotnet\sdk\5.0.300-preview.21258.4
  • 5.0.300 - C:\Program Files\dotnet\sdk\5.0.300
  • 6.0.100-preview.4.21255.9 - C:\Program Files\dotnet\sdk\6.0.100-preview.4.21255.9

.NET SDK - EnableWorkloadResolver.sentinel Checkup...

  • C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Enterprise\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdkResolver\EnableWorkloadResolver.senti
    nel exists.
  • C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Preview\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdkResolver\EnableWorkloadResolver.sentinel
    exists.
  • 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...

  • Microsoft.Maui.Templates (6.0.100-preview.4.634) installed.
  • Microsoft.iOS.Windows.Sdk (14.5.100-preview.4.638) installed.
  • Microsoft.Android.Sdk (11.0.200-preview.4.245) installed.
  • Microsoft.Android.Sdk.BundleTool (11.0.200-preview.4.245) installed.
  • Microsoft.Android.Ref (11.0.200-preview.4.245) installed.
  • Microsoft.Android.Templates (11.0.200-preview.4.245) installed.
  • Microsoft.iOS.Sdk (14.5.100-preview.4.638) installed.
  • Microsoft.iOS.Ref (14.5.100-preview.4.638) installed.
  • Microsoft.iOS.Templates (14.5.100-preview.4.638) installed.
  • Microsoft.MacCatalyst.Sdk (14.5.100-preview.4.638) installed.
  • Microsoft.MacCatalyst.Ref (14.5.100-preview.4.638) installed.
  • Microsoft.MacCatalyst.Templates (14.5.100-preview.4.638) installed.
  • Microsoft.tvOS.Sdk (14.5.100-preview.4.638) installed.
  • Microsoft.tvOS.Ref (14.5.100-preview.4.638) installed.
  • Microsoft.tvOS.Templates (14.5.100-preview.4.638) installed.
  • Microsoft.macOS.Sdk (11.3.100-preview.4.638) installed.
  • Microsoft.macOS.Ref (11.3.100-preview.4.638) installed.
  • Microsoft.macOS.Templates (11.3.100-preview.4.638) installed.
    ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! There were one or more problems detected.
Please review the errors and correct them and run maui-check again.

Press enter to exit...

Failed to find Android SDK on Mac

I have followed all the instructions in the relevant docs, but I still get the following:

🔎 Android SDK Checkup...
ValidateAndroidSdkLocation: ``, result=False
ValidateAndroidSdkLocation: `/Users/riko/Library/Developer/Xamarin/android-sdk-macosx`, result=True
ValidateAndroidSdkLocation: `/Users/riko/Library/Developer/Xamarin/android-sdk-macosx`, result=True
ValidateJavaSdkLocation: `/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home`, result=True
ValidateAndroidNdkLocation: ``, result=False
Best NDK selected: v21.3.6528147 in /Users/riko/Library/Developer/Xamarin/android-sdk-macosx/ndk-bundle
ValidateAndroidNdkLocation: `/Users/riko/Library/Developer/Xamarin/android-sdk-macosx/ndk-bundle`, result=True

──────────────────────────────────────────────────────────────────────────────
💉 Recommendation: Install the Android SDK
For more information see: https://aka.ms/dotnet-androidsdk-help
──────────────────────────────────────────────────────────────────────────────


❌ Skipped: Android Emulator

Checkup had Error status: androidsdk
androidsdk: Failed to find Android SDK.
🔔 There were one or more problems detected.
Please review the errors and correct them and run maui-check again.

Is there anything that I am missing?

Require JDK 11 for Android

We are dropping support for the old JDK 1.8 in C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25. In .NET 6 Preview 4, the Android workload will no longer locate it by default, but you can still set it to %JAVA_HOME% or /p:JavaSdkDirectory manually.

We should prompt for users to install this new JDK 11 distro instead:

https://www.microsoft.com/openjdk

We can go ahead and start requiring this in maui-check, I think. Boots.Core seems like it could install these automatically.

Fails when a newer version of dotnet SDK is already installed

> .NET SDK Checkup...
  - 3.1.410 - C:\Program Files\dotnet\sdk\3.1.410
  - 5.0.100-rc.1.20452.10 - C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10
  - 5.0.104 - C:\Program Files\dotnet\sdk\5.0.104
  - 5.0.204 - C:\Program Files\dotnet\sdk\5.0.204
  - 5.0.300-preview.21258.4 - C:\Program Files\dotnet\sdk\5.0.300-preview.21258.4
  - 6.0.100-preview.5.21267.8 - C:\Program Files\dotnet\sdk\6.0.100-preview.5.21267.8
  - 6.0.100-preview.5.21302.13 - C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Download .NET SDK (6.0.100-preview.4.21255.9)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: .NET SDK
  Downloading .NET SDK 6.0.100-preview.4.21255.9...
  Downloading... 10%...
  Downloading... 20%...
  Downloading... 30%...
  Downloading... 40%...
  Downloading... 50%...
  Downloading... 60%...
  Downloading... 70%...
  Downloading... 80%...
  Downloading... 90%...
  Downloading... 100%...
  Downloaded .NET SDK 6.0.100-preview.4.21255.9.
  Installing .NET SDK 6.0.100-preview.4.21255.9...
  Installation failed for .NET SDK 6.0.100-preview.4.21255.9.
A newer version of dotnet SDK is already installed
See log file for more details: D:\Users\tomas\AppData\Local\Temp\tmp1F5E.tmp
Fix failed - Installation failed for .NET SDK 6.0.100-preview.4.21255.9.
A newer version of dotnet SDK is already installed
See log file for more details: D:\Users\tomas\AppData\Local\Temp\tmp1F5E.tmp

x Skipped: .NET SDK - Workload Deduplication

x Skipped: .NET SDK - EnableWorkloadResolver.sentinel

x Skipped: .NET SDK - Workloads (6.0.100-preview.4.21255.9)

Maui does not see visual studio Preview

Maui installed all the components I needed. But I chose visual studio release. How did I try to fix it? I tried uninstalling release visual studio. Launched maui-check, she noticed that the file didn’t exist. And together, to find another visual studio preview, she created a new folder in release. But release has been removed. What to do?

dotnet tool install -g Redth.Net.Maui.Check fails

Cannot install the Maui Check tool.

From VS 2019 Version 16.11.0 Preview 2.0, start Developer Powershell, from Tools --> Command Line --> Developer Powershell

Get the following exception when trying to install the tool..
image

dotnet --info

PS C:\Users\rsurles\source\repos> dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.5.21302.13
Commit: d6380bcae7

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19041
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\

Host (useful for support):
Version: 6.0.0-preview.5.21301.5
Commit: ec3e0b276b

.NET SDKs installed:
3.1.302 [C:\Program Files\dotnet\sdk]
5.0.100 [C:\Program Files\dotnet\sdk]
5.0.101 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]
5.0.200 [C:\Program Files\dotnet\sdk]
5.0.202 [C:\Program Files\dotnet\sdk]
5.0.301 [C:\Program Files\dotnet\sdk]
5.0.400-preview.21277.10 [C:\Program Files\dotnet\sdk]
6.0.100-preview.3.21202.5 [C:\Program Files\dotnet\sdk]
6.0.100-preview.5.21302.13 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.3.21201.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.5.21301.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.3.21201.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.5.21301.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.3.21201.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.5.21301.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
PS C:\Users\rsurles\source\repos>

The command `dotnet tool install -g Redth.Net.Maui.Check` causes the screen to reboot without responding.

When I run dotnet tool install -g Redth.Net.Maui.Check from the command line, my PC freezes and reboots.

The OS is Windows Insider Preview Build 21387 and the version of dotnet is 6.0.100-preview.4.21255.9.
Visual Studio 2019 v16.11 Preview 1 is also installed on that PC.

Note that I tried to install other tools installed with dotnet tool install -g, but the same event occurs with dotnet-fsharplint.

.NET SDK - Workloads (6.0.100-preview.5.21302.13) Checkup Issue

Hi,
I am setting my dev environment to start testing the .NET MAUI in .NET 6 Preview 5 (June 2021), however, I can't finish the initial setup via maui-check, here is the complete log for you to check (issue highlighted at the end):


`PM> maui-check
_ _ _____ _____ __ __ _ _ _ ___
| \ | | | | | | | / | / \ | | | | | |
| | | | | | | | |/| | / _ \ | | | | | |
_ | |\ | | |
| | | | | | / ___ \ | |
| | | |
(
) || _| |_____| || || || // _\ _/ ||

¤ .NET MAUI Check v0.5.6.0 ¤
────────────────────────────────────────────────────────────────────────────────
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... ok
» Scheduling appointments... ok

OpenJDK 11.0 Checkup...

  • 11.0.11 (C:\Program Files\Microsoft\jdk-11.0.11.9-hotspot\bin..)
  • 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)

Visual Studio 16.10.0 Checkup...

  • 16.10.2 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
  • 16.11.0-pre.2.0 - C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Preview

Android SDK Checkup...

  • emulator (30.1.5)
  • build-tools;30.0.2 (30.0.2)
  • platforms;android-30 (3)
  • system-images;android-30;google_apis_playstore;x86 (9)
  • platform-tools (30.0.4)

Android Emulator Checkup...

  • Emulator: pixel_2_r_11_0_-_api_30 found.

.NET SDK Checkup...

  • 5.0.301 - C:\Program Files\dotnet\sdk\5.0.301
  • 5.0.400-preview.21277.10 - C:\Program
    Files\dotnet\sdk\5.0.400-preview.21277.10
  • 6.0.100-preview.5.21302.13 - C:\Program
    Files\dotnet\sdk\6.0.100-preview.5.21302.13

.NET SDK - Workload Deduplication Checkup...

.NET SDK - EnableWorkloadResolver.sentinel Checkup...

  • C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Professional\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBui
    ldSdkResolver\EnableWorkloadResolver.sentinel exists.
  • C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Preview\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdk
    Resolver\EnableWorkloadResolver.sentinel exists.

> .NET SDK - Workloads (6.0.100-preview.5.21302.13) Checkup...
× microsoft-android-sdk-full (Microsoft.NET.Sdk.Android.Manifest-6.0.100 :
30.0.100-preview.5.28) not installed.
× microsoft-ios-sdk-full (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 :
14.5.100-preview.5.894) not installed.
× microsoft-maccatalyst-sdk-full
(Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 14.5.100-preview.5.894) not
installed.
× microsoft-tvos-sdk-full (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 :
14.5.100-preview.5.894) not installed.
× microsoft-macos-sdk-full (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 :
11.3.100-preview.5.894) not installed.

────────────────────────────────────────────────────────────────────────────────
¤ Recommendation: Install Missing SDK Workloads
────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y):
Error: Cannot read input from a TTY console.`

it does not allow me to install those sdks via maui and so far I haven't found any official Microsoft installer.

Any help would be highly appreciated?

Regards

Not found in nuget

I try to use maui template to create demo project , when I run dotnet build

It show that

/Users/lokinfey/Desktop/Demo/DemoApp/DemoApp.csproj : error NU1101: Unable to find package Microsoft.Maui. No packages exist with this id in source(s): nuget.org
/Users/lokinfey/Desktop/Demo/DemoApp/DemoApp.csproj : error NU1101: Unable to find package Microsoft.iOS.Runtime.iossimulator-x64. No packages exist with this id in source(s): nuget.org
/Users/lokinfey/Desktop/Demo/DemoApp/DemoApp.csproj : error NU1101: Unable to find package Microsoft.Android.Runtime.android-arm64. No packages exist with this id in source(s): nuget.org
/Users/lokinfey/Desktop/Demo/DemoApp/DemoApp.csproj : error NU1101: Unable to find package Microsoft.Android.Runtime.android-x86. No packages exist with this id in source(s): nuget.org
/Users/lokinfey/Desktop/Demo/DemoApp/DemoApp.csproj : error NU1101: Unable to find package Microsoft.MacCatalyst.Runtime.maccatalyst-x64. No packages exist with this id in source(s): nuget.org

but I try to run https://github.com/dotnet/net6-mobile-samples , it is okay .... I don't know why

maui-check asking for .net 3.1 on Linux

I'm trying to install maui on my Debian 10 linux, bu i'am getting this error message:

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      6.0.0-preview.4.21253.7 at [/home/gabriel/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.1.0&arch=x64&rid=debian.10-x64

.net maui is for .net 6 right?

Failed to find Android SDK.

Hi,

When i tried to run application i have this error: Failed to find Android SDK.

In my case to solve this i change a AndroidSdkCheckup.cs
var defaultPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Android", "android-sdk"); var sdkInstance = installer.FindInstance(defaultPath);

Regards

Running on Apple m1 Mac (mini)

Not an issue. I just wanted to share what I had to do to get maui-check to run on my m1 Mac mini.

  • Install .net core 3.1 for x64 Mac.
  • Install .net core 6 for x64 Mac.
  • install .net core 5 for arm Mac.
  • add the .dotnet/tools directory in my personal folder to the path.

I'll also share that I had the .net core 5 for x86 Mac already installed, so I am not sure if that helped in any way.

Disk space check

Would be nice if the tool could check for available disk space, or gracefully handle when a task fails due to being out of space.

Allow selection of individual platform workload.

In Certain scenarios Users do not want to install all workloads

microsoft-android-sdk-full
microsoft-ios-sdk-full
microsoft-maccatalyst-sdk-full
microsoft-macos-sdk-full
microsoft-tvos-sdk-full

Allow users to install let's say Android and TvOS workload. User may not be targeting MacOS or iOS , why it is required to install them as well.

To solve this a Console Checkbox control can be used.

Custom Android SDK location

This tool does not support configuration of an Android SDK installation in any location other than the VS default.

Is there an existing convention that can be used to configure this? For example, an environment variable such as ANDROID_HOME

Add WebView2 check

I sent a PR to update the MAUI installation docs regarding this: dotnet/docs-maui#48

But if maui-check could make sure WebView2 is installed, that would be even better.

Not working on Apple M1

Hello, the tool do not work on my Apple M1.

maui-check
[1]    9470 killed     maui-check --dev
dotnet --list-sdks
6.0.100-preview.5.21302.13 [/usr/local/share/dotnet/sdk]

Checkup had Error status: vswin

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_7_0_-_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?

Fail to install

PS C:\Users\patri> dotnet --list-sdks
6.0.100-preview.5.21302.13 [C:\Program Files\dotnet\sdk]
PS C:\Users\patri> maui-check
maui-check: The term 'maui-check' is not recognized as a name of a cmdlet, function, script file, or executable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Users\patri> dotnet tool install -g Redth.Net.Maui.Check
C:\Users\patri\AppData\Local\Temp\b3yxblbw.a41\restore.csproj(5,3): warning MSB4243: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located.  Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props(14,3): warning MSB4243: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located.  Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4236: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. [C:\Users\patri\AppData\Local\Temp\b3yxblbw.a41\restore.csproj]
The tool package could not be restored.
Tool 'redth.net.maui.check' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

Fails to install Microsoft.Maui.Templates

I'm trying to follow the guide found here to play around with Maui.

The first time I run the maui-check tool, it installed a few things, but I couldn't get my example to run. So I tried running the tool again, and it said "Microsoft.Maui.Templates" was missing and it tried to re-install it, but it doesn't seem to be able to. It doesn't log what goes wrong, it just doesn't find it on the next run. I don't find it in my packs folder either.

The output from a run (maui-check -dnf) is:

` _ _ _____ _____ __ __ _ _ _ ___
| \ | | | | | | | / | / \ | | | | | |
| | | | | | | | |/| | / _ \ | | | | | |
_ | |\ | | |
| | | | | | / ___ \ | |
| | | |
(
) || _| |_____| || || || // _\ _/ ||

¤ .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... ok
» Scheduling appointments... ok

OpenJDK 1.8.0-1 Checkup...

  • 1.8.0-25 (C:\Program
    Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25\bin..)

Visual Studio 16.9.0 Checkup...

  • 16.10.0-pre.1.0 - C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Preview
  • 16.8.4

Android SDK Checkup...

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

Android Emulator Checkup...

  • Emulator: Android_Accelerated_x86_Oreo found.

.NET SDK Checkup...

  • 2.1.201 - C:\Program Files\dotnet\sdk\2.1.201
  • 2.1.202 - C:\Program Files\dotnet\sdk\2.1.202
  • 2.1.300-preview1-008174 - C:\Program
    Files\dotnet\sdk\2.1.300-preview1-008174
  • 2.1.301 - C:\Program Files\dotnet\sdk\2.1.301
  • 2.1.400 - C:\Program Files\dotnet\sdk\2.1.400
  • 2.1.401 - C:\Program Files\dotnet\sdk\2.1.401
  • 2.1.402 - C:\Program Files\dotnet\sdk\2.1.402
  • 2.1.403 - C:\Program Files\dotnet\sdk\2.1.403
  • 2.1.523 - C:\Program Files\dotnet\sdk\2.1.523
  • 2.1.600-preview-009472 - C:\Program Files\dotnet\sdk\2.1.600-preview-009472
  • 2.1.600 - C:\Program Files\dotnet\sdk\2.1.600
  • 2.1.601 - C:\Program Files\dotnet\sdk\2.1.601
  • 2.1.617 - C:\Program Files\dotnet\sdk\2.1.617
  • 2.1.700 - C:\Program Files\dotnet\sdk\2.1.700
  • 2.1.800-preview-009677 - C:\Program Files\dotnet\sdk\2.1.800-preview-009677
  • 2.1.815 - C:\Program Files\dotnet\sdk\2.1.815
  • 2.2.101 - C:\Program Files\dotnet\sdk\2.2.101
  • 2.2.104 - C:\Program Files\dotnet\sdk\2.2.104
  • 2.2.107 - C:\Program Files\dotnet\sdk\2.2.107
  • 2.2.108 - C:\Program Files\dotnet\sdk\2.2.108
  • 2.2.200-preview-009648 - C:\Program Files\dotnet\sdk\2.2.200-preview-009648
  • 2.2.200-preview-009748 - C:\Program Files\dotnet\sdk\2.2.200-preview-009748
  • 2.2.200 - C:\Program Files\dotnet\sdk\2.2.200
  • 2.2.201 - C:\Program Files\dotnet\sdk\2.2.201
  • 2.2.202 - C:\Program Files\dotnet\sdk\2.2.202
  • 2.2.300 - C:\Program Files\dotnet\sdk\2.2.300
  • 2.2.400-preview-010195 - C:\Program Files\dotnet\sdk\2.2.400-preview-010195
  • 2.2.401 - C:\Program Files\dotnet\sdk\2.2.401
  • 3.0.100 - C:\Program Files\dotnet\sdk\3.0.100
  • 3.1.113 - C:\Program Files\dotnet\sdk\3.1.113
  • 3.1.201 - C:\Program Files\dotnet\sdk\3.1.201
  • 3.1.300 - C:\Program Files\dotnet\sdk\3.1.300
  • 5.0.102 - C:\Program Files\dotnet\sdk\5.0.102
  • 5.0.104 - C:\Program Files\dotnet\sdk\5.0.104
  • 5.0.200-preview.21077.7 - C:\Program
    Files\dotnet\sdk\5.0.200-preview.21077.7
  • 6.0.100-preview.3.21202.5 - C:\Program
    Files\dotnet\sdk\6.0.100-preview.3.21202.5

.NET SDK - EnableWorkloadResolver.sentinel Checkup...

  • C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Preview\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdk
    Resolver\EnableWorkloadResolver.sentinel exists.
  • C:\Program
    Files\dotnet\sdk\6.0.100-preview.3.21202.5\EnableWorkloadResolver.sentinel
    exists.

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

  • microsoft-android-sdk-full (Microsoft.NET.Workload.Android :
    11.0.200-preview.3.196) installed.
  • microsoft-ios-sdk-full (Microsoft.NET.Workload.iOS :
    14.4.100-preview.3.1326) installed.
  • microsoft-maccatalyst-sdk-full (Microsoft.NET.Workload.MacCatalyst :
    14.3.100-preview.3.471) installed.
  • microsoft-tvos-sdk-full (Microsoft.NET.Workload.tvOS :
    14.3.100-preview.3.1379) installed.
  • microsoft-macos-sdk-full (Microsoft.NET.Workload.macOS :
    11.1.100-preview.3.1379) installed.

.NET SDK - Packs (6.0.100-preview.3.21202.5) Checkup...
¡ Microsoft.Maui.Templates (6.0.100-preview.3.322) not installed.

  • Microsoft.iOS.Windows.Sdk (14.4.100-preview.3.1326) installed.
  • Microsoft.Android.Sdk (11.0.200-preview.3.196) installed.
  • Microsoft.Android.Sdk.BundleTool (11.0.200-preview.3.196) installed.
  • Microsoft.Android.Ref (11.0.200-preview.3.196) installed.
  • Microsoft.Android.Templates (11.0.200-preview.3.196) installed.
  • Microsoft.iOS.Sdk (14.4.100-preview.3.1326) installed.
  • Microsoft.iOS.Ref (14.4.100-preview.3.1326) installed.
  • Microsoft.iOS.Templates (14.4.100-preview.3.1326) installed.
  • Microsoft.MacCatalyst.Sdk (14.3.100-preview.3.471) installed.
  • Microsoft.MacCatalyst.Ref (14.3.100-preview.3.471) installed.
  • Microsoft.MacCatalyst.Templates (14.3.100-preview.3.471) installed.
  • Microsoft.tvOS.Sdk (14.3.100-preview.3.1379) installed.
  • Microsoft.tvOS.Ref (14.3.100-preview.3.1379) installed.
  • Microsoft.tvOS.Templates (14.3.100-preview.3.1379) installed.
  • Microsoft.macOS.Sdk (11.1.100-preview.3.1379) installed.
  • Microsoft.macOS.Ref (11.1.100-preview.3.1379) installed.
  • Microsoft.macOS.Templates (11.1.100-preview.3.1379) installed.

────────────────────────────────────────────────────────────────────────────────
¤ Recommendation: Install Missing SDK Packs
────────────────────────────────────────────────────────────────────────────────

» Attempting to fix: .NET SDK - Packs (6.0.100-preview.3.21202.5)
Installing Pack: Microsoft.Maui.Templates...
Installed Pack: Microsoft.Maui.Templates.
Fix applied. Checking again...

.NET SDK - Packs (6.0.100-preview.3.21202.5) Checkup...
¡ Microsoft.Maui.Templates (6.0.100-preview.3.322) not installed.

  • Microsoft.iOS.Windows.Sdk (14.4.100-preview.3.1326) installed.
  • Microsoft.Android.Sdk (11.0.200-preview.3.196) installed.
  • Microsoft.Android.Sdk.BundleTool (11.0.200-preview.3.196) installed.
  • Microsoft.Android.Ref (11.0.200-preview.3.196) installed.
  • Microsoft.Android.Templates (11.0.200-preview.3.196) installed.
  • Microsoft.iOS.Sdk (14.4.100-preview.3.1326) installed.
  • Microsoft.iOS.Ref (14.4.100-preview.3.1326) installed.
  • Microsoft.iOS.Templates (14.4.100-preview.3.1326) installed.
  • Microsoft.MacCatalyst.Sdk (14.3.100-preview.3.471) installed.
  • Microsoft.MacCatalyst.Ref (14.3.100-preview.3.471) installed.
  • Microsoft.MacCatalyst.Templates (14.3.100-preview.3.471) installed.
  • Microsoft.tvOS.Sdk (14.3.100-preview.3.1379) installed.
  • Microsoft.tvOS.Ref (14.3.100-preview.3.1379) installed.
  • Microsoft.tvOS.Templates (14.3.100-preview.3.1379) installed.
  • Microsoft.macOS.Sdk (11.1.100-preview.3.1379) installed.
  • Microsoft.macOS.Ref (11.1.100-preview.3.1379) installed.
  • Microsoft.macOS.Templates (11.1.100-preview.3.1379) installed.

────────────────────────────────────────────────────────────────────────────────
¤ Recommendation: Install Missing SDK Packs
────────────────────────────────────────────────────────────────────────────────

────────────────────────────────────────────────────────────────────────────────

�! There were one or more problems detected.
Please review the errors and correct them and run maui-check again.
`

I've tried the --verbose flag without getting any more information about why it fails. Installation of the pack obviously fails somehow - how can I find out what went wrong?

Open JDK check seems to fail even if its installed correctly

Response from tool:

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... ok
» Scheduling appointments... ok

> OpenJDK 11.0 Checkup...
  - 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
¤ Recommendation: Install OpenJDK11
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: OpenJDK 11.0
  Installing Download and Install Microsoft OpenJDK 11...
  ? Installation failed for Download and Install Microsoft OpenJDK 11.

But looking in the directory:

 Directory of C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25

28/03/19  13:42    <DIR>          .
28/03/19  13:42    <DIR>          ..
14/08/19  09:43             1,522 ASSEMBLY_EXCEPTION
20/09/19  09:07    <DIR>          bin
28/03/19  13:42    <DIR>          jre
28/03/19  13:42    <DIR>          lib
14/08/19  09:43            19,274 LICENSE
14/08/19  09:43                82 release
14/08/19  09:43            33,064 ThirdPartyNotices.txt
14/08/19  09:43           153,825 THIRD_PARTY_README
               5 File(s)        207,767 bytes
               5 Dir(s)  48,293,871,616 bytes free

OpenJDK 1.8.0-1 Object reference not set to an instance of an object

Hi,

I'm running the check for the first time on Win 10 and got the following error with version '0.4.2'

────────────────────────────────────────» Synchronizing configuration... ok
» Scheduling appointments... ok

> OpenJDK 1.8.0-1 Checkup...

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────¤ Recommendation: Install OpenJDK11
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! Attempt to fix? [y/n] (y): y
» Attempting to fix: OpenJDK 1.8.0-1
  Installing Download and Install Microsoft OpenJDK 11...
**Fix failed - Object reference not set to an instance of an object.**

is this normal? anybody encountered the same issue ?
Thanks in advance

Maui-check - Cannot install Microsoft.Android.SDK

I am trying to use Maui Check to prepare all the dependencies for using maui.

Everything is green but Microsoft.Android.SDK:
image

The error does not offer any info on why it fail. Also I was unable to find the specific sdk version 6.0.100-preview.5.21302.13 and install it.

What are the solutions to manually fix this? I was unable to find Microsoft.Android.SDK anywhere.

No muai project template even after maui-check succeeded

HI,

I have run maui-check and the result is as follows:

      _   _   _____   _____     __  __      _      _   _   ___
     | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|
     |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |
  _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |
 (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|

¤ .NET MAUI Check v0.5.6.0 ¤
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
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... ok
? Scheduling appointments... ok

? OpenJDK 11.0 Checkup...
  – 11.0.10 (C:\Program Files\Microsoft\jdk-11.0.10.9-hotspot\bin\..)
  – 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)

? Visual Studio 16.10.0 Checkup...
  – 16.10.2 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
  – 17.0.0-pre.1.0 - C:\Program Files\Microsoft Visual Studio\2022\Preview
  – 15.9.34

? Android SDK Checkup...
  – 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 (25.0.5)

? Android Emulator Checkup...
  – Emulator: Android_Accelerated_x86_Oreo found.

? .NET SDK Checkup...
  – 1.1.5 - C:\Program Files\dotnet\sdk\1.1.5
  – 1.1.12 - C:\Program Files\dotnet\sdk\1.1.12
  – 1.1.13 - C:\Program Files\dotnet\sdk\1.1.13
  – 1.1.14 - C:\Program Files\dotnet\sdk\1.1.14
  – 2.0.3 - C:\Program Files\dotnet\sdk\2.0.3
  – 2.1.202 - C:\Program Files\dotnet\sdk\2.1.202
  – 2.1.522 - C:\Program Files\dotnet\sdk\2.1.522
  – 2.1.600-preview-009472 - C:\Program Files\dotnet\sdk\2.1.600-preview-009472
  – 2.1.600-preview-009497 - C:\Program Files\dotnet\sdk\2.1.600-preview-009497
  – 2.1.600 - C:\Program Files\dotnet\sdk\2.1.600
  – 2.2.200 - C:\Program Files\dotnet\sdk\2.2.200
  – 3.0.100-preview-010184 - C:\Program Files\dotnet\sdk\3.0.100-preview-010184
  – 5.0.301 - C:\Program Files\dotnet\sdk\5.0.301
  – 6.0.100-preview.5.21302.13 - C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13
  – 6.0.100-preview.6.21313.2 - C:\Program Files\dotnet\sdk\6.0.100-preview.6.21313.2

? .NET SDK - Workload Deduplication Checkup...

? .NET SDK - EnableWorkloadResolver.sentinel Checkup...
  – C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdkResolver\EnableWorkloadResolver.sen
tinel exists.
  – C:\Program Files\Microsoft Visual
Studio\2022\Preview\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdkResolver\EnableWorkloadResolver.sentinel
exists.

? .NET SDK - Workloads (6.0.100-preview.5.21302.13) Checkup...
  – microsoft-android-sdk-full (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 30.0.100-preview.5.28) installed.
  – microsoft-ios-sdk-full (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 14.5.100-preview.5.894) installed.
  – microsoft-maccatalyst-sdk-full (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 14.5.100-preview.5.894) installed.
  – microsoft-tvos-sdk-full (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 14.5.100-preview.5.894) installed.
  – microsoft-macos-sdk-full (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 11.3.100-preview.5.894) installed.

? .NET SDK - Packs (6.0.100-preview.5.21302.13) Checkup...
  – Microsoft.Maui.Templates (6.0.100-preview.5.794) installed.
  – Microsoft.Android.Sdk (30.0.100-preview.5.28) installed.
  – Microsoft.Android.Sdk.BundleTool (30.0.100-preview.5.28) installed.
  – Microsoft.Android.Ref (30.0.100-preview.5.28) installed.
  – Microsoft.Android.Templates (30.0.100-preview.5.28) installed.
  – Microsoft.iOS.Sdk (14.5.100-preview.5.894) installed.
  – Microsoft.iOS.Windows.Sdk (14.5.100-preview.5.894) installed.
  – Microsoft.iOS.Ref (14.5.100-preview.5.894) installed.
  – Microsoft.iOS.Templates (14.5.100-preview.5.894) installed.
  – Microsoft.MacCatalyst.Sdk (14.5.100-preview.5.894) installed.
  – Microsoft.MacCatalyst.Ref (14.5.100-preview.5.894) installed.
  – Microsoft.MacCatalyst.Templates (14.5.100-preview.5.894) installed.
  – Microsoft.tvOS.Sdk (14.5.100-preview.5.894) installed.
  – Microsoft.tvOS.Ref (14.5.100-preview.5.894) installed.
  – Microsoft.tvOS.Templates (14.5.100-preview.5.894) installed.
  – Microsoft.macOS.Sdk (11.3.100-preview.5.894) installed.
  – Microsoft.macOS.Ref (11.3.100-preview.5.894) installed.
  – Microsoft.macOS.Templates (11.3.100-preview.5.894) installed.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

– Congratulations, everything looks great!

Press enter to exit...

I'm using visual studio 2022 preview 1 and the cmd above is run in vs2022's Developer PowerShell.

After that, I opened vs 2022 and tried to create a new project with maui, but still didn't see any project template.

Anything I missed?

Cant find Maui-check after installing

I'm unable to find or execute maui-check.

OP: macOS BigSur 11.4

As a default I am using the fish shell:

You can invoke the tool using the following command: maui-check
Tool 'redth.net.maui.check' (version '0.4.2') was successfully installed.

~/Downloads  maui-check 31s  Thu May 20 11:14:57 2021
fish: Unknown command: maui-check

After that I have tried the same thing instead with the zsh shell:

mvg@maxs-bigmac Downloads % dotnet tool uninstall -g Redth.Net.Maui.Check
Tool 'redth.net.maui.check' (version '0.4.2') was successfully uninstalled.

mvg@maxs-bigmac Downloads % dotnet tool install -g Redth.Net.Maui.Check
You can invoke the tool using the following command: maui-check
Tool 'redth.net.maui.check' (version '0.4.2') was successfully installed.

mvg@maxs-bigmac Downloads % maui-check
zsh: command not found: maui-check

I have installed the SDK: 3.1.408, 5.0.202 and 6.0.100-preview.4.21226.14 over Visual Studio

Extra files in sdk-manifests

Context: https://developercommunity.visualstudio.com/t/aspnet-core-project-does-not-load-in-visual-studio/1453652?from=email&viewtype=all#T-ND1453962

Some people are hitting issues upgrading from Preview 4 to Preview 5, where they get some files left behind:

image

I don't think it's leaving those files in there anymore, but I see:

image

The problem would be you might uninstall .NET 6, and it would leave this .nuspec file behind and things are broken.

Can we change this, so maui-check only writes WorkloadManifest.json or WorkloadManifest.targets?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.