#17026: Adding web.config to /content/ directory when scafolding a theme.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues 2010-12-10 12:21:01 -08:00
parent 66b9ae5d4f
commit 50058a5073

View File

@ -292,6 +292,8 @@ namespace Orchard.CodeGeneration.Commands {
createdFiles.Add(themePath + "Scripts\\Web.config");
File.WriteAllText(themePath + "Styles\\Web.config", File.ReadAllText(_codeGenTemplatePath + "StaticFilesWebConfig.txt"));
createdFiles.Add(themePath + "Styles\\Web.config");
File.WriteAllText(themePath + "Content\\Web.config", File.ReadAllText(_codeGenTemplatePath + "StaticFilesWebConfig.txt"));
createdFiles.Add(themePath + "Content\\Web.config");
var templateText = File.ReadAllText(_codeGenTemplatePath + "\\ThemeManifest.txt").Replace("$$ThemeName$$", themeName);
if (string.IsNullOrEmpty(baseTheme)) {