mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Including Theme.png in theme scaffolding command
Work Item: 16682 --HG-- branch : dev
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
@@ -291,6 +291,9 @@ namespace Orchard.CodeGeneration.Commands {
|
|||||||
File.WriteAllText(themePath + "Theme.txt", templateText);
|
File.WriteAllText(themePath + "Theme.txt", templateText);
|
||||||
createdFiles.Add(themePath + "Theme.txt");
|
createdFiles.Add(themePath + "Theme.txt");
|
||||||
|
|
||||||
|
File.WriteAllBytes(themePath + "Theme.png", File.ReadAllBytes(_codeGenTemplatePath + "Theme.png"));
|
||||||
|
createdFiles.Add(themePath + "Theme.png");
|
||||||
|
|
||||||
// create new csproj for the theme
|
// create new csproj for the theme
|
||||||
if (projectGuid != null) {
|
if (projectGuid != null) {
|
||||||
var itemGroup = CreateProjectItemGroup(themePath, createdFiles, createdFolders);
|
var itemGroup = CreateProjectItemGroup(themePath, createdFiles, createdFolders);
|
||||||
|
@@ -56,6 +56,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="CodeGenerationTemplates\StaticFilesWebConfig.txt" />
|
<Content Include="CodeGenerationTemplates\StaticFilesWebConfig.txt" />
|
||||||
|
<Content Include="CodeGenerationTemplates\Theme.png" />
|
||||||
<Content Include="CodeGenerationTemplates\ThemeManifest.txt" />
|
<Content Include="CodeGenerationTemplates\ThemeManifest.txt" />
|
||||||
<Content Include="Module.txt" />
|
<Content Include="Module.txt" />
|
||||||
<Content Include="CodeGenerationTemplates\Controller.txt" />
|
<Content Include="CodeGenerationTemplates\Controller.txt" />
|
||||||
|
Reference in New Issue
Block a user