mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
#17026: Adding web.config to /content/ directory when scafolding a theme.
--HG-- branch : dev
This commit is contained in:
parent
66b9ae5d4f
commit
50058a5073
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user