Task ShowCannotExecuteDotNetCoreApplicationDialog()
 {
     return(Runtime.RunInMainThread(() => {
         using (var dialog = new DotNetCoreNotInstalledDialog()) {
             dialog.Message = GettextCatalog.GetString(".NET Core is required to run this application.");
             dialog.Show();
         }
     }));
 }
Exemplo n.º 2
0
        Task ShowDotNetCoreNotInstalledDialog(bool unsupportedSdkVersion)
        {
            return(Runtime.RunInMainThread(() => {
                if (ShownDotNetCoreSdkNotInstalledDialogForSolution())
                {
                    return;
                }

                Project.ParentSolution.ExtendedProperties [ShownDotNetCoreSdkInstalledExtendedPropertyName] = "true";

                using (var dialog = new DotNetCoreNotInstalledDialog()) {
                    dialog.IsUnsupportedVersion = unsupportedSdkVersion;
                    dialog.RequiresDotNetCore20 = Project.TargetFramework.IsNetStandard20OrNetCore20();
                    dialog.Show();
                }
            }));
        }
        Task ShowDotNetCoreNotInstalledDialog(bool unsupportedSdkVersion)
        {
            return(Runtime.RunInMainThread(() => {
                if (ShownDotNetCoreSdkNotInstalledDialogForSolution())
                {
                    return;
                }

                Project.ParentSolution.ExtendedProperties [ShownDotNetCoreSdkInstalledExtendedPropertyName] = "true";

                using (var dialog = new DotNetCoreNotInstalledDialog()) {
                    if (unsupportedSdkVersion)
                    {
                        dialog.Message = GettextCatalog.GetString("The .NET Core SDK installed is not supported. Please install a more recent version.");
                    }
                    dialog.Show();
                }
            }));
        }
        Task ShowDotNetCoreNotInstalledDialog(bool unsupportedSdkVersion)
        {
            return(Runtime.RunInMainThread(() => {
                if (ShownDotNetCoreSdkNotInstalledDialogForSolution())
                {
                    return;
                }

                Project.ParentSolution.ExtendedProperties [ShownDotNetCoreSdkInstalledExtendedPropertyName] = "true";

                using (var dialog = new DotNetCoreNotInstalledDialog()) {
                    dialog.IsUnsupportedVersion = unsupportedSdkVersion;
                    dialog.RequiredDotNetCoreVersion = DotNetCoreVersion.Parse(Project.TargetFramework.Id.Version);
                    dialog.CurrentDotNetCorePath = sdkPaths.MSBuildSDKsPath;
                    dialog.IsNetStandard = Project.TargetFramework.Id.IsNetStandard();
                    dialog.Show();
                }
            }));
        }