Exemple #1
0
 private void EnsureLayoutPageAndDependenciesCreated()
 {
     if (base.Model.IsLayoutPageSelected && string.IsNullOrEmpty(base.Model.LayoutPageFile))
     {
         bool flag = AddDependencyUtil.IsBundleConfigPresent(base.Context);
         MvcFullDependencyInstaller mvcFullDependencyInstaller = new MvcFullDependencyInstaller(base.Context, base.VisualStudioIntegration, base.Repository);
         mvcFullDependencyInstaller.EnsureLayoutPageAndDependenciesCreated(base.Model.AreaName, base.Model.AreaRelativePath, flag);
     }
 }
Exemple #2
0
        public FrameworkDependencyStatus EnsureDependencyInstalled(CodeGenerationContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            context.AddTelemetryData("DependencyScaffolderOptions", (uint)3);
            MvcFullDependencyInstaller mvcFullDependencyInstaller = new MvcFullDependencyInstaller(context, this.VisualStudioIntegration, this.Repository);

            return(mvcFullDependencyInstaller.Install());
        }