From f29a645d483bc72910289beaba51e6f6c5fc9339 Mon Sep 17 00:00:00 2001 From: Andre Rodrigues Date: Fri, 11 Feb 2011 14:42:23 -0800 Subject: [PATCH] #17336: Setting codegen command "IncludeInSolution" option default to true. --HG-- branch : dev --- .../Commands/CodeGenerationCommands.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs b/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs index b3a836035..69db21022 100644 --- a/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs +++ b/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs @@ -14,7 +14,6 @@ using Orchard.Environment.Extensions.Models; namespace Orchard.CodeGeneration.Commands { public class CodeGenerationCommands : DefaultOrchardCommandHandler { - private readonly IExtensionManager _extensionManager; private readonly ISchemaCommandGenerator _schemaCommandGenerator; @@ -30,6 +29,8 @@ namespace Orchard.CodeGeneration.Commands { private static readonly string _orchardWebProj = HostingEnvironment.MapPath("~/Orchard.Web.csproj"); private static readonly string _orchardThemesProj = HostingEnvironment.MapPath("~/Themes/Themes.csproj"); + private bool includeInSolution = true; + public CodeGenerationCommands( IExtensionManager extensionManager, ISchemaCommandGenerator schemaCommandGenerator) { @@ -38,7 +39,10 @@ namespace Orchard.CodeGeneration.Commands { } [OrchardSwitch] - public bool IncludeInSolution { get; set; } + public bool IncludeInSolution { + get { return includeInSolution; } + set { includeInSolution = value; } + } [OrchardSwitch] public bool CreateProject { get; set; }