Including Theme.png in theme scaffolding command

Work Item: 16682

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-11-24 18:05:02 -08:00
parent e038c14b85
commit e9220fa517
3 changed files with 4 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

View File

@@ -291,6 +291,9 @@ namespace Orchard.CodeGeneration.Commands {
File.WriteAllText(themePath + "Theme.txt", templateText);
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
if (projectGuid != null) {
var itemGroup = CreateProjectItemGroup(themePath, createdFiles, createdFolders);

View File

@@ -56,6 +56,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="CodeGenerationTemplates\StaticFilesWebConfig.txt" />
<Content Include="CodeGenerationTemplates\Theme.png" />
<Content Include="CodeGenerationTemplates\ThemeManifest.txt" />
<Content Include="Module.txt" />
<Content Include="CodeGenerationTemplates\Controller.txt" />