public async Task AspNetCore(string templateId, string parameters, string sdkVersion, bool checkExecutionTargets = false)
        {
            if (!IsDotNetCoreInstalled(sdkVersion))
            {
                Assert.Ignore($".NET Core >= {sdkVersion} SDK is not installed - required by project template");
            }

            if (templateId.Contains("Microsoft.Web.Spa") &&
                !TemplateDependencyChecker.Check(TemplateDependency.Node))
            {
                Assert.Ignore("Node is not installed - required by project template");
            }

            await CreateFromTemplateAndBuild($"AspNetCore{sdkVersion}", templateId, parameters, PreBuildAspNetCoreChecks, checkExecutionTargets);
        }
예제 #2
0
        public async Task AspNetCore30(string templateId, string parameters, bool checkExecutionTargets)
        {
            if (!IsDotNetCoreSdk30Installed())
            {
                Assert.Ignore(".NET Core 3.0 SDK is not installed - required by project template.");
            }

            if (templateId.Contains("Microsoft.Web.Spa") &&
                !TemplateDependencyChecker.Check(TemplateDependency.Node))
            {
                Assert.Ignore("Node is not installed - required by project template");
            }

            await CreateFromTemplateAndBuild("NetCore30", templateId, parameters, CheckAspNetCoreNestingRules, checkExecutionTargets);
        }
예제 #3
0
        public async Task AspNetCore22(string templateId, string parameters)
        {
            if (!IsDotNetCoreSdk22Installed())
            {
                Assert.Ignore(".NET Core 2.2 SDK is not installed - required by project template.");
            }

            if (templateId.Contains("Microsoft.Web.Spa") &&
                !TemplateDependencyChecker.Check(TemplateDependency.Node))
            {
                Assert.Ignore("Node is not installed - required by project template");
            }

            await CreateFromTemplateAndBuild("NetCore2x", templateId, parameters);
        }