Removing Web.config file creation from "codegen module" command

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2011-01-10 18:12:05 -08:00
parent bd2684e8a4
commit 1e8ddda4cc
3 changed files with 1 additions and 3 deletions

View File

@ -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() {

View File

@ -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);

View File

@ -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 />