mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 13:18:25 +08:00
#17336: Setting codegen command "IncludeInSolution" option default to true.
--HG-- branch : dev
This commit is contained in:
parent
03eb6ee8ec
commit
f29a645d48
@ -14,7 +14,6 @@ using Orchard.Environment.Extensions.Models;
|
|||||||
namespace Orchard.CodeGeneration.Commands {
|
namespace Orchard.CodeGeneration.Commands {
|
||||||
|
|
||||||
public class CodeGenerationCommands : DefaultOrchardCommandHandler {
|
public class CodeGenerationCommands : DefaultOrchardCommandHandler {
|
||||||
|
|
||||||
private readonly IExtensionManager _extensionManager;
|
private readonly IExtensionManager _extensionManager;
|
||||||
private readonly ISchemaCommandGenerator _schemaCommandGenerator;
|
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 _orchardWebProj = HostingEnvironment.MapPath("~/Orchard.Web.csproj");
|
||||||
private static readonly string _orchardThemesProj = HostingEnvironment.MapPath("~/Themes/Themes.csproj");
|
private static readonly string _orchardThemesProj = HostingEnvironment.MapPath("~/Themes/Themes.csproj");
|
||||||
|
|
||||||
|
private bool includeInSolution = true;
|
||||||
|
|
||||||
public CodeGenerationCommands(
|
public CodeGenerationCommands(
|
||||||
IExtensionManager extensionManager,
|
IExtensionManager extensionManager,
|
||||||
ISchemaCommandGenerator schemaCommandGenerator) {
|
ISchemaCommandGenerator schemaCommandGenerator) {
|
||||||
@ -38,7 +39,10 @@ namespace Orchard.CodeGeneration.Commands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[OrchardSwitch]
|
[OrchardSwitch]
|
||||||
public bool IncludeInSolution { get; set; }
|
public bool IncludeInSolution {
|
||||||
|
get { return includeInSolution; }
|
||||||
|
set { includeInSolution = value; }
|
||||||
|
}
|
||||||
|
|
||||||
[OrchardSwitch]
|
[OrchardSwitch]
|
||||||
public bool CreateProject { get; set; }
|
public bool CreateProject { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user