mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Removing Web.config file creation from "codegen module" command
--HG-- branch : 1.x
This commit is contained in:
parent
bd2684e8a4
commit
1e8ddda4cc
@ -7,7 +7,7 @@ using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace $$FeatureName$$.DataMigrations {
|
||||
namespace $$FeatureName$$ {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
|
@ -227,7 +227,6 @@ namespace Orchard.CodeGeneration.Commands {
|
||||
File.WriteAllText(propertiesPath + "\\AssemblyInfo.cs", templateText);
|
||||
content.Add(propertiesPath + "\\AssemblyInfo.cs");
|
||||
|
||||
File.WriteAllText(modulePath + "Web.config", File.ReadAllText(_codeGenTemplatePath + "ModuleWebConfig.txt"));
|
||||
templateText = File.ReadAllText(_codeGenTemplatePath + "ModuleManifest.txt");
|
||||
templateText = templateText.Replace("$$ModuleName$$", moduleName);
|
||||
File.WriteAllText(modulePath + "Module.txt", templateText);
|
||||
|
@ -61,7 +61,6 @@
|
||||
<Content Include="CodeGenerationTemplates\ModuleAssemblyInfo.txt" />
|
||||
<Content Include="CodeGenerationTemplates\ModuleCsProj.txt" />
|
||||
<Content Include="CodeGenerationTemplates\ModuleManifest.txt" />
|
||||
<Content Include="CodeGenerationTemplates\ModuleWebConfig.txt" />
|
||||
<Content Include="CodeGenerationTemplates\ViewsWebConfig.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
|
Loading…
Reference in New Issue
Block a user