Skip to content
Browse files

delete app data

  • Loading branch information...
1 parent 81bda37 commit 64cabd7d7bcc254c1c1e29cc609f3fd73c94b809 @joeldart joeldart committed May 30, 2012
Showing with 1,052 additions and 604 deletions.
  1. +1 −1 .gitignore
  2. BIN site/App_Data/Dependencies/ICSharpCode.SharpZipLib.dll
  3. BIN site/App_Data/Dependencies/Joel.Net.Akismet.dll
  4. BIN site/App_Data/Dependencies/Markdown.dll
  5. BIN site/App_Data/Dependencies/MarkdownSharp.dll
  6. BIN site/App_Data/Dependencies/Orchard.Alias.dll
  7. BIN site/App_Data/Dependencies/Orchard.Autoroute.dll
  8. BIN site/App_Data/Dependencies/Orchard.Blogs.dll
  9. BIN site/App_Data/Dependencies/Orchard.Comments.dll
  10. BIN site/App_Data/Dependencies/Orchard.ContentTypes.dll
  11. BIN site/App_Data/Dependencies/Orchard.Fields.dll
  12. BIN site/App_Data/Dependencies/Orchard.Forms.dll
  13. BIN site/App_Data/Dependencies/Orchard.Media.dll
  14. BIN site/App_Data/Dependencies/Orchard.MediaPicker.dll
  15. BIN site/App_Data/Dependencies/Orchard.Modules.dll
  16. BIN site/App_Data/Dependencies/Orchard.Packaging.dll
  17. BIN site/App_Data/Dependencies/Orchard.Pages.dll
  18. BIN site/App_Data/Dependencies/Orchard.Projections.dll
  19. BIN site/App_Data/Dependencies/Orchard.PublishLater.dll
  20. BIN site/App_Data/Dependencies/Orchard.Recipes.dll
  21. BIN site/App_Data/Dependencies/Orchard.Roles.dll
  22. BIN site/App_Data/Dependencies/Orchard.Rules.dll
  23. BIN site/App_Data/Dependencies/Orchard.Scripting.dll
  24. BIN site/App_Data/Dependencies/Orchard.Setup.dll
  25. BIN site/App_Data/Dependencies/Orchard.Tags.dll
  26. BIN site/App_Data/Dependencies/Orchard.Themes.dll
  27. BIN site/App_Data/Dependencies/Orchard.Tokens.dll
  28. BIN site/App_Data/Dependencies/Orchard.Users.dll
  29. BIN site/App_Data/Dependencies/Orchard.Warmup.dll
  30. BIN site/App_Data/Dependencies/Orchard.Widgets.dll
  31. BIN site/App_Data/Dependencies/Orchard.jQuery.dll
  32. BIN site/App_Data/Dependencies/TinyMce.dll
  33. BIN site/App_Data/Dependencies/UpgradeTo14.dll
  34. +0 −177 site/App_Data/Dependencies/dependencies.compiled.xml
  35. +0 −404 site/App_Data/Dependencies/dependencies.xml
  36. 0 site/App_Data/Logs/orchard-error-2012.05.30.log
  37. BIN site/App_Data/Sites/Default/Orchard.sdf
  38. +0 −12 site/App_Data/Sites/Default/Settings.txt
  39. BIN site/App_Data/Sites/Default/mappings.bin
  40. +0 −4 site/App_Data/Sites/Default/reports.dat
  41. +0 −1 site/App_Data/_marker.txt
  42. +0 −4 site/App_Data/cache.dat
  43. +0 −1 site/App_Data/hrestart.txt
  44. +4 −0 site/Media/Default/RecipeJournal/fc7f602073b142019b65b2fb0ac1c43d
  45. +16 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/Controller.txt
  46. +19 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/DataMigration.txt
  47. +36 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleAssemblyInfo.txt
  48. +102 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleCsProj.txt
  49. +10 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleManifest.txt
  50. +41 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleRootWebConfig.txt
  51. +17 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/Placement.info
  52. +25 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/StaticFilesWebConfig.txt
  53. BIN site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/Theme.png
  54. +8 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ThemeManifest.txt
  55. +41 −0 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ViewsWebConfig.txt
  56. +423 −0 site/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs
  57. +9 −0 site/Modules/Orchard.CodeGeneration/Module.txt
  58. +113 −0 site/Modules/Orchard.CodeGeneration/Orchard.CodeGeneration.csproj
  59. +35 −0 site/Modules/Orchard.CodeGeneration/Properties/AssemblyInfo.cs
  60. +111 −0 site/Modules/Orchard.CodeGeneration/Services/CodeGenerationCommandInterpreter.cs
  61. +41 −0 site/Modules/Orchard.CodeGeneration/web.config
View
2 .gitignore
@@ -1 +1 @@
-/App_Data
+/site/App_Data/*
View
BIN site/App_Data/Dependencies/ICSharpCode.SharpZipLib.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Joel.Net.Akismet.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Markdown.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/MarkdownSharp.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Alias.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Autoroute.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Blogs.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Comments.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.ContentTypes.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Fields.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Forms.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Media.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.MediaPicker.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Modules.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Packaging.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Pages.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Projections.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.PublishLater.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Recipes.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Roles.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Rules.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Scripting.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Setup.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Tags.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Themes.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Tokens.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Users.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Warmup.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.Widgets.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/Orchard.jQuery.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/TinyMce.dll
Binary file not shown.
View
BIN site/App_Data/Dependencies/UpgradeTo14.dll
Binary file not shown.
View
177 site/App_Data/Dependencies/dependencies.compiled.xml
@@ -1,177 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Dependencies>
- <Dependency>
- <ExtensionId>Markdown</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Markdown/bin/Markdown.dll</VirtualPath>
- <Hash>92396d42afd9f27b</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Alias</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Alias/bin/Orchard.Alias.dll</VirtualPath>
- <Hash>48f7de7cbe4bd720</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Autoroute</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Autoroute/bin/Orchard.Autoroute.dll</VirtualPath>
- <Hash>dba35c322952f6e2</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Blogs</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Blogs/bin/Orchard.Blogs.dll</VirtualPath>
- <Hash>48f8467cf1e51b2d</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Comments</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Comments/bin/Orchard.Comments.dll</VirtualPath>
- <Hash>9257dd60dfb4f149</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.ContentTypes</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.ContentTypes/bin/Orchard.ContentTypes.dll</VirtualPath>
- <Hash>49110e95bbccf146</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Fields</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Fields/bin/Orchard.Fields.dll</VirtualPath>
- <Hash>48fb468024567d8d</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Forms</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Forms/bin/Orchard.Forms.dll</VirtualPath>
- <Hash>48f8c67d9356073d</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.jQuery</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.jQuery/bin/Orchard.jQuery.dll</VirtualPath>
- <Hash>48fc8e81419529b6</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Media</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Media/bin/Orchard.Media.dll</VirtualPath>
- <Hash>9265ad6eb764d403</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.MediaPicker</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.MediaPicker/bin/Orchard.MediaPicker.dll</VirtualPath>
- <Hash>dbc56c53623ca324</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Modules</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Modules/bin/Orchard.Modules.dll</VirtualPath>
- <Hash>48ff5683e9be6b0f</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Packaging</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Packaging/bin/Orchard.Packaging.dll</VirtualPath>
- <Hash>92584d6194e72357</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Pages</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Pages/bin/Orchard.Pages.dll</VirtualPath>
- <Hash>48f80e7cd417f926</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Projections</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Projections/bin/Orchard.Projections.dll</VirtualPath>
- <Hash>dbaa8439359bbfc7</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.PublishLater</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.PublishLater/bin/Orchard.PublishLater.dll</VirtualPath>
- <Hash>49100694ca524825</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Recipes</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Recipes/bin/Orchard.Recipes.dll</VirtualPath>
- <Hash>24fb730e2624460e</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Roles</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Roles/bin/Orchard.Roles.dll</VirtualPath>
- <Hash>48f8b67d4ee04b3b</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Rules</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Rules/bin/Orchard.Rules.dll</VirtualPath>
- <Hash>24f0c304240b1bb8</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Scripting</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Scripting/bin/Orchard.Scripting.dll</VirtualPath>
- <Hash>4906268ac2f0a6e9</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Setup</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Setup/bin/Orchard.Setup.dll</VirtualPath>
- <Hash>6e48c9e03a9391e2</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Tags</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Tags/bin/Orchard.Tags.dll</VirtualPath>
- <Hash>48f50679a59158c5</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Themes</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Themes/bin/Orchard.Themes.dll</VirtualPath>
- <Hash>48fbbe8053adc49c</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Tokens</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Tokens/bin/Orchard.Tokens.dll</VirtualPath>
- <Hash>48fc2e80fa91daaa</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Users</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Users/bin/Orchard.Users.dll</VirtualPath>
- <Hash>48f91e7da50ba848</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Warmup</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Warmup/bin/Orchard.Warmup.dll</VirtualPath>
- <Hash>48fc6e8110e0b3b2</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>Orchard.Widgets</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Widgets/bin/Orchard.Widgets.dll</VirtualPath>
- <Hash>dba9ac37c0258bac</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>TinyMce</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/TinyMce/bin/TinyMce.dll</VirtualPath>
- <Hash>48e6ce6b7a1872fe</Hash>
- </Dependency>
- <Dependency>
- <ExtensionId>UpgradeTo14</ExtensionId>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/UpgradeTo14/bin/UpgradeTo14.dll</VirtualPath>
- <Hash>24e822fbf1d473a4</Hash>
- </Dependency>
-</Dependencies>
View
404 site/App_Data/Dependencies/dependencies.xml
@@ -1,404 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Dependencies>
- <Dependency>
- <ModuleName>Common</ModuleName>
- <VirtualPath>~/Core/Common</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Containers</ModuleName>
- <VirtualPath>~/Core/Containers</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Contents</ModuleName>
- <VirtualPath>~/Core/Contents</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Dashboard</ModuleName>
- <VirtualPath>~/Core/Dashboard</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Feeds</ModuleName>
- <VirtualPath>~/Core/Feeds</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Markdown</ModuleName>
- <VirtualPath>~/Modules/Markdown/bin/Markdown.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>MarkdownSharp</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Markdown/bin/MarkdownSharp.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Navigation</ModuleName>
- <VirtualPath>~/Core/Navigation</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Alias</ModuleName>
- <VirtualPath>~/Modules/Orchard.Alias/bin/Orchard.Alias.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Tokens</ModuleName>
- <VirtualPath>~/Modules/Orchard.Tokens/bin/Orchard.Tokens.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Autoroute</ModuleName>
- <VirtualPath>~/Modules/Orchard.Autoroute/bin/Orchard.Autoroute.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Alias</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Alias/bin/Orchard.Alias.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Tokens</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Tokens/bin/Orchard.Tokens.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Blogs</ModuleName>
- <VirtualPath>~/Modules/Orchard.Blogs/bin/Orchard.Blogs.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Comments</ModuleName>
- <VirtualPath>~/Modules/Orchard.Comments/bin/Orchard.Comments.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Joel.Net.Akismet</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Comments/bin/Joel.Net.Akismet.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.ContentTypes</ModuleName>
- <VirtualPath>~/Modules/Orchard.ContentTypes/bin/Orchard.ContentTypes.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Fields</ModuleName>
- <VirtualPath>~/Modules/Orchard.Fields/bin/Orchard.Fields.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Forms</ModuleName>
- <VirtualPath>~/Modules/Orchard.Forms/bin/Orchard.Forms.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.jQuery</ModuleName>
- <VirtualPath>~/Modules/Orchard.jQuery/bin/Orchard.jQuery.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Media</ModuleName>
- <VirtualPath>~/Modules/Orchard.Media/bin/Orchard.Media.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>ICSharpCode.SharpZipLib</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Media/bin/ICSharpCode.SharpZipLib.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.MediaPicker</ModuleName>
- <VirtualPath>~/Modules/Orchard.MediaPicker/bin/Orchard.MediaPicker.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>ICSharpCode.SharpZipLib</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Media/bin/ICSharpCode.SharpZipLib.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Media</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Media/bin/Orchard.Media.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Modules</ModuleName>
- <VirtualPath>~/Modules/Orchard.Modules/bin/Orchard.Modules.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Packaging</ModuleName>
- <VirtualPath>~/Modules/Orchard.Packaging/bin/Orchard.Packaging.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Modules</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Modules/bin/Orchard.Modules.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Pages</ModuleName>
- <VirtualPath>~/Modules/Orchard.Pages/bin/Orchard.Pages.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Projections</ModuleName>
- <VirtualPath>~/Modules/Orchard.Projections/bin/Orchard.Projections.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Forms</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Forms/bin/Orchard.Forms.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Tokens</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Tokens/bin/Orchard.Tokens.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.PublishLater</ModuleName>
- <VirtualPath>~/Modules/Orchard.PublishLater/bin/Orchard.PublishLater.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Themes</ModuleName>
- <VirtualPath>~/Modules/Orchard.Themes/bin/Orchard.Themes.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Recipes</ModuleName>
- <VirtualPath>~/Modules/Orchard.Recipes/bin/Orchard.Recipes.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Modules</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Modules/bin/Orchard.Modules.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Packaging</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Packaging/bin/Orchard.Packaging.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Themes</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Themes/bin/Orchard.Themes.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Roles</ModuleName>
- <VirtualPath>~/Modules/Orchard.Roles/bin/Orchard.Roles.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Scripting</ModuleName>
- <VirtualPath>~/Modules/Orchard.Scripting/bin/Orchard.Scripting.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Rules</ModuleName>
- <VirtualPath>~/Modules/Orchard.Rules/bin/Orchard.Rules.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Forms</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Forms/bin/Orchard.Forms.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Scripting</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Scripting/bin/Orchard.Scripting.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Tokens</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Tokens/bin/Orchard.Tokens.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Setup</ModuleName>
- <VirtualPath>~/Modules/Orchard.Setup/bin/Orchard.Setup.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Modules</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Modules/bin/Orchard.Modules.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Packaging</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Packaging/bin/Orchard.Packaging.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Recipes</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Recipes/bin/Orchard.Recipes.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Themes</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Themes/bin/Orchard.Themes.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Tags</ModuleName>
- <VirtualPath>~/Modules/Orchard.Tags/bin/Orchard.Tags.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Users</ModuleName>
- <VirtualPath>~/Modules/Orchard.Users/bin/Orchard.Users.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Warmup</ModuleName>
- <VirtualPath>~/Modules/Orchard.Warmup/bin/Orchard.Warmup.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Orchard.Widgets</ModuleName>
- <VirtualPath>~/Modules/Orchard.Widgets/bin/Orchard.Widgets.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Scripting</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Scripting/bin/Orchard.Scripting.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Themes</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Themes/bin/Orchard.Themes.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>Reports</ModuleName>
- <VirtualPath>~/Core/Reports</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>SafeMode</ModuleName>
- <VirtualPath>~/Theme/SafeMode</VirtualPath>
- <LoaderName>RawThemeExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Scheduling</ModuleName>
- <VirtualPath>~/Core/Scheduling</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Settings</ModuleName>
- <VirtualPath>~/Core/Settings</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Shapes</ModuleName>
- <VirtualPath>~/Core/Shapes</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>TheAdmin</ModuleName>
- <VirtualPath>~/Theme/TheAdmin</VirtualPath>
- <LoaderName>RawThemeExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>TheThemeMachine</ModuleName>
- <VirtualPath>~/Theme/TheThemeMachine</VirtualPath>
- <LoaderName>RawThemeExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>TinyMce</ModuleName>
- <VirtualPath>~/Modules/TinyMce/bin/TinyMce.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>Title</ModuleName>
- <VirtualPath>~/Core/Title</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
- <Dependency>
- <ModuleName>UpgradeTo14</ModuleName>
- <VirtualPath>~/Modules/UpgradeTo14/bin/UpgradeTo14.dll</VirtualPath>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <References>
- <Reference>
- <Name>Orchard.Alias</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Alias/bin/Orchard.Alias.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Autoroute</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Autoroute/bin/Orchard.Autoroute.dll</VirtualPath>
- </Reference>
- <Reference>
- <Name>Orchard.Tokens</Name>
- <LoaderName>PrecompiledExtensionLoader</LoaderName>
- <VirtualPath>~/Modules/Orchard.Tokens/bin/Orchard.Tokens.dll</VirtualPath>
- </Reference>
- </References>
- </Dependency>
- <Dependency>
- <ModuleName>XmlRpc</ModuleName>
- <VirtualPath>~/Core/XmlRpc</VirtualPath>
- <LoaderName>CoreExtensionLoader</LoaderName>
- <References />
- </Dependency>
-</Dependencies>
View
0 site/App_Data/Logs/orchard-error-2012.05.30.log
No changes.
View
BIN site/App_Data/Sites/Default/Orchard.sdf
Binary file not shown.
View
12 site/App_Data/Sites/Default/Settings.txt
@@ -1,12 +0,0 @@
-Name: Default
-DataProvider: SqlCe
-DataConnectionString: null
-DataPrefix: null
-RequestUrlHost: null
-RequestUrlPrefix: null
-State: Running
-EncryptionAlgorithm: AES
-EncryptionKey: B44DD73A625159EA1B21AE7AB75E5FC421E8A2ABA6DFE26D3F44AE6B9C4C66F5
-HashAlgorithm: HMACSHA256
-HashKey: 06288A17BC974C133ED492F27973FEB5ED3093AE733343049AAD326986D1FCD5685D164A1E70CAED022F7970B3799FAE273E43FDB766F74B5CBDF7D07377D83F
-Themes:
View
BIN site/App_Data/Sites/Default/mappings.bin
Binary file not shown.
View
4 site/App_Data/Sites/Default/reports.dat
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-16"?>
-<Reports>
- <Report>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Report xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Orchard.Reports"&gt;&lt;ActivityName&gt;Setup&lt;/ActivityName&gt;&lt;Entries&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Framework_DataMigrationRecord" ("Id" INT IDENTITY NOT NULL, "DataMigrationClass" NVARCHAR(255) null, "Version" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.461511Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ContentFieldDefinitionRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5805229Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ContentPartDefinitionRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, "Hidden" BIT null, "Settings" NTEXT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5855234Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ContentPartFieldDefinitionRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, "Settings" NTEXT null, "ContentFieldDefinitionRecord_id" INT null, "ContentPartDefinitionRecord_Id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5895238Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ContentTypeDefinitionRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, "DisplayName" NVARCHAR(255) null, "Hidden" BIT null, "Settings" NTEXT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5925241Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ContentTypePartDefinitionRecord" ("Id" INT IDENTITY NOT NULL, "Settings" NTEXT null, "ContentPartDefinitionRecord_id" INT null, "ContentTypeDefinitionRecord_Id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5945243Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ShellDescriptorRecord" ("Id" INT IDENTITY NOT NULL, "SerialNumber" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5965245Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ShellFeatureRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, "ShellDescriptorRecord_id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5975246Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ShellFeatureStateRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, "InstallState" NVARCHAR(255) null, "EnableState" NVARCHAR(255) null, "ShellStateRecord_Id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.5995248Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ShellParameterRecord" ("Id" INT IDENTITY NOT NULL, "Component" NVARCHAR(255) null, "Name" NVARCHAR(255) null, "Value" NVARCHAR(255) null, "ShellDescriptorRecord_id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.601525Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_ShellStateRecord" ("Id" INT IDENTITY NOT NULL, "Unused" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6025251Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_SiteSettingsPartRecord" ("Id" INT not null, "SiteSalt" NVARCHAR(255) null, "SiteName" NVARCHAR(255) null, "SuperUser" NVARCHAR(255) null, "PageTitleSeparator" NVARCHAR(255) null, "HomePage" NVARCHAR(255) null, "SiteCulture" NVARCHAR(255) null, "ResourceDebugMode" NVARCHAR(255) default 'FromAppSetting' null, "PageSize" INT null, "SiteTimeZone" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6065255Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Settings_SiteSettings2PartRecord" ("Id" INT not null, "BaseUrl" NTEXT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6085257Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Framework_ContentItemRecord" ("Id" INT IDENTITY NOT NULL, "Data" NTEXT null, "ContentType_id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6705319Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Framework_ContentItemVersionRecord" ("Id" INT IDENTITY NOT NULL, "Number" INT null, "Published" BIT null, "Latest" BIT null, "Data" NTEXT null, "ContentItemRecord_id" INT not null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6725321Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Framework_ContentTypeRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6735322Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Framework_CultureRecord" ("Id" INT IDENTITY NOT NULL, "Culture" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6745323Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Common_BodyPartRecord" ("Id" INT not null, "ContentItemRecord_id" INT null, "Text" NTEXT null, "Format" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.691534Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Common_CommonPartRecord" ("Id" INT not null, "OwnerId" INT null, "CreatedUtc" DATETIME null, "PublishedUtc" DATETIME null, "ModifiedUtc" DATETIME null, "Container_id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6925341Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Common_CommonPartVersionRecord" ("Id" INT not null, "ContentItemRecord_id" INT null, "CreatedUtc" DATETIME null, "PublishedUtc" DATETIME null, "ModifiedUtc" DATETIME null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.6935342Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Common_IdentityPartRecord" ("Id" INT not null, "Identifier" NTEXT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.7535402Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Containers_ContainerPartRecord" ("Id" INT not null, "Paginated" BIT null, "PageSize" INT null, "OrderByProperty" NVARCHAR(255) null, "OrderByDirection" INT null, "ItemContentType" NVARCHAR(255) null, "ItemsShown" BIT default 1 null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.7675416Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Containers_ContainerWidgetPartRecord" ("Id" INT not null, "ContainerId" INT null, "PageSize" INT null, "OrderByProperty" NVARCHAR(255) null, "OrderByDirection" INT null, "ApplyFilter" BIT null, "FilterByProperty" NVARCHAR(255) null, "FilterByOperator" NVARCHAR(255) null, "FilterByValue" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.7695418Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Containers_CustomPropertiesPartRecord" ("Id" INT not null, "CustomOne" NVARCHAR(255) null, "CustomTwo" NVARCHAR(255) null, "CustomThree" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.7705419Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Containers_ContainablePartRecord" ("Id" INT not null, "Weight" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.771542Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Navigation_MenuItemPartRecord" ("Id" INT not null, "Url" NVARCHAR(1024) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.8305479Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Navigation_MenuPartRecord" ("Id" INT not null, "MenuText" NVARCHAR(255) null, "MenuPosition" NVARCHAR(255) null, "OnMainMenu" BIT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.8325481Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Navigation_AdminMenuPartRecord" ("Id" INT not null, "AdminMenuText" NVARCHAR(255) null, "AdminMenuPosition" NVARCHAR(255) null, "OnAdminMenu" BIT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.8575506Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Scheduling_ScheduledTaskRecord" ("Id" INT IDENTITY NOT NULL, "TaskType" NVARCHAR(255) null, "ScheduledUtc" DATETIME null, "ContentItemVersionRecord_id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.8705519Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Title_TitlePartRecord" ("Id" INT not null, "ContentItemRecord_id" INT null, "Title" NVARCHAR(1024) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.8785527Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Themes_ThemeSiteSettingsPartRecord" ("Id" INT not null, "CurrentThemeName" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9195568Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Users_UserPartRecord" ("Id" INT not null, "UserName" NVARCHAR(255) null, "Email" NVARCHAR(255) null, "NormalizedUserName" NVARCHAR(255) null, "Password" NVARCHAR(255) null, "PasswordFormat" NVARCHAR(255) null, "HashAlgorithm" NVARCHAR(255) null, "PasswordSalt" NVARCHAR(255) null, "RegistrationStatus" NVARCHAR(255) default 'Approved' null, "EmailStatus" NVARCHAR(255) default 'Approved' null, "EmailChallengeToken" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9275576Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Users_RegistrationSettingsPartRecord" ("Id" INT not null, "UsersCanRegister" BIT default 0 null, "UsersMustValidateEmail" BIT default 0 null, "ValidateEmailRegisteredWebsite" NVARCHAR(255) null, "ValidateEmailContactEMail" NVARCHAR(255) null, "UsersAreModerated" BIT default 0 null, "NotifyModeration" BIT default 0 null, "NotificationsRecipients" NTEXT null, "EnableLostPassword" BIT default 0 null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.931558Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Roles_PermissionRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, "FeatureName" NVARCHAR(255) null, "Description" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9425591Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Roles_RoleRecord" ("Id" INT IDENTITY NOT NULL, "Name" NVARCHAR(255) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9435592Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Roles_RolesPermissionsRecord" ("Id" INT IDENTITY NOT NULL, "Role_id" INT null, "Permission_id" INT null, "RoleRecord_Id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9445593Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Roles_UserRolesPartRecord" ("Id" INT IDENTITY NOT NULL, "UserId" INT null, "Role_id" INT null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9455594Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;ReportEntry&gt;&lt;Message&gt;Executing SQL Query: create table "Orchard_Packaging_PackagingSource" ("Id" INT IDENTITY NOT NULL, "FeedTitle" NVARCHAR(255) null, "FeedUrl" NVARCHAR(2048) null, primary key ( Id ) )&lt;/Message&gt;&lt;Type&gt;Information&lt;/Type&gt;&lt;Utc&gt;2012-05-31T00:02:34.9505599Z&lt;/Utc&gt;&lt;/ReportEntry&gt;&lt;/Entries&gt;&lt;ReportId&gt;1&lt;/ReportId&gt;&lt;Title&gt;Orchard installation&lt;/Title&gt;&lt;Utc&gt;2012-05-31T00:02:34.4405089Z&lt;/Utc&gt;&lt;/Report&gt;</Report>
-</Reports>
View
1 site/App_Data/_marker.txt
@@ -1 +0,0 @@
-some_text
View
4 site/App_Data/cache.dat
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-16"?>
-<Tenants>
- <Default>2|Orchard.Framework;Common;Containers;Contents;Dashboard;Feeds;Navigation;Reports;Scheduling;Settings;Shapes;Title;Orchard.Pages;Orchard.Themes;Orchard.Users;Orchard.Roles;Orchard.Modules;PackagingServices;Orchard.Packaging;Gallery;Orchard.Recipes;Orchard.Blogs;Orchard.Widgets;Orchard.Scripting;Orchard.jQuery;Orchard.PublishLater;Orchard.jQuery;Orchard.Comments;Orchard.Tags;Orchard.jQuery;Orchard.Alias;Orchard.Autoroute;Orchard.Alias;Orchard.Tokens;TinyMce;Orchard.Media;Orchard.MediaPicker;Orchard.Media;Orchard.jQuery;Orchard.PublishLater;Orchard.jQuery;Orchard.jQuery;Orchard.Widgets;Orchard.Scripting;Orchard.Widgets.PageLayerHinting;Orchard.Widgets;Orchard.Scripting;Orchard.ContentTypes;Orchard.Scripting;Orchard.Scripting.Lightweight;Orchard.Scripting;PackagingServices;Orchard.Packaging;Orchard.Warmup;Orchard.Projections;Orchard.Tokens;Orchard.Forms;Orchard.Fields;Orchard.jQuery;Orchard.MediaPicker;Orchard.Media;Orchard.jQuery;TheThemeMachine;|</Default>
-</Tenants>
View
1 site/App_Data/hrestart.txt
@@ -1 +0,0 @@
-Host Restart
View
4 site/Media/Default/RecipeJournal/fc7f602073b142019b65b2fb0ac1c43d
@@ -0,0 +1,4 @@
+<RecipeJournal>
+ <Status>Complete</Status>
+ <Message>Executing step Feature.</Message>
+</RecipeJournal>
View
16 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/Controller.txt
@@ -0,0 +1,16 @@
+using System.Web.Mvc;
+using Orchard.Localization;
+using Orchard;
+
+namespace $$ModuleName$$.Controllers {
+ public class $$ControllerName$$ : Controller {
+ public IOrchardServices Services { get; set; }
+
+ public $$ControllerName$$(IOrchardServices services) {
+ Services = services;
+ T = NullLocalizer.Instance;
+ }
+
+ public Localizer T { get; set; }
+ }
+}
View
19 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/DataMigration.txt
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using Orchard.ContentManagement.Drivers;
+using Orchard.ContentManagement.MetaData;
+using Orchard.ContentManagement.MetaData.Builders;
+using Orchard.Core.Contents.Extensions;
+using Orchard.Data.Migration;
+
+namespace $$FeatureName$$ {
+ public class Migrations : DataMigrationImpl {
+
+ public int Create() {
+$$Commands$$
+
+ return 1;
+ }
+ }
+}
View
36 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleAssemblyInfo.txt
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Security;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("$$ModuleName$$")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyProduct("Orchard")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("$$ModuleTypeLibGuid$$")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
+
View
102 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleCsProj.txt
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{$$ModuleProjectGuid$$}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>$$ModuleName$$</RootNamespace>
+ <AssemblyName>$$ModuleName$$</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <MvcBuildViews>false</MvcBuildViews>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
+ <TargetFrameworkProfile />
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.ComponentModel.DataAnnotations">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web.DynamicData" />
+ <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\lib\aspnetmvc\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Abstractions" />
+ <Reference Include="System.Web.Routing" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Xml.Linq" />
+ </ItemGroup>
+ $$FileIncludes$$<ItemGroup>
+ $$OrchardReferences$$
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target> -->
+ <Target Name="AfterBuild" DependsOnTargets="AfterBuildCompiler">
+ <PropertyGroup>
+ <AreasManifestDir>$(ProjectDir)\..\Manifests</AreasManifestDir>
+ </PropertyGroup>
+ <!-- If this is an area child project, uncomment the following line:
+ <CreateAreaManifest AreaName="$(AssemblyName)" AreaType="Child" AreaPath="$(ProjectDir)" ManifestPath="$(AreasManifestDir)" ContentFiles="@(Content)" />
+ -->
+ <!-- If this is an area parent project, uncomment the following lines:
+ <CreateAreaManifest AreaName="$(AssemblyName)" AreaType="Parent" AreaPath="$(ProjectDir)" ManifestPath="$(AreasManifestDir)" ContentFiles="@(Content)" />
+ <CopyAreaManifests ManifestPath="$(AreasManifestDir)" CrossCopy="false" RenameViews="true" />
+ -->
+ </Target>
+ <Target Name="AfterBuildCompiler" Condition="'$(MvcBuildViews)'=='true'">
+ <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" />
+ </Target>
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>45979</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>True</UseCustomServer>
+ <CustomServerUrl>http://orchard.codeplex.com</CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
View
10 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleManifest.txt
@@ -0,0 +1,10 @@
+Name: $$ModuleName$$
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.0
+OrchardVersion: 1.0
+Description: Description for the module
+Features:
+ $$ModuleName$$:
+ Description: Description for feature $$ModuleName$$.
View
41 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ModuleRootWebConfig.txt
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+
+ <configSections>
+ <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
+ <remove name="host" />
+ <remove name="pages" />
+ <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
+ <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
+ </sectionGroup>
+ </configSections>
+
+ <system.web.webPages.razor>
+ <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
+ <namespaces>
+ <add namespace="System.Web.Mvc" />
+ <add namespace="System.Web.Mvc.Ajax" />
+ <add namespace="System.Web.Mvc.Html" />
+ <add namespace="System.Web.Routing" />
+ <add namespace="System.Web.WebPages" />
+ <add namespace="System.Linq"/>
+ <add namespace="System.Collections.Generic"/>
+ <add namespace="Orchard.Mvc.Html"/>
+ </namespaces>
+ </pages>
+ </system.web.webPages.razor>
+
+ <system.web>
+ <compilation targetFramework="4.0">
+ <assemblies>
+ <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ </assemblies>
+ </compilation>
+ </system.web>
+
+</configuration>
View
17 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/Placement.info
@@ -0,0 +1,17 @@
+<Placement>
+ <!-- Customize where the shapes are rendered -->
+
+ <!--
+ <Place Parts_Blogs_BlogArchives="Content:before"/>
+ <Place Parts_Blogs_RecentBlogPosts="Content:after"/>
+ <Match ContentType="Blog">
+ <Match DisplayType="Summary">
+ <Place Parts_Blogs_Blog_Description="Content:before"
+ Parts_Blogs_Blog_BlogPostCount="Meta:3"/>
+ </Match>
+ </Match>
+ <Match Path="/About">
+ <Place Parts_Common_Metadata="-"/>
+ </Match>
+-->
+</Placement>
View
25 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/StaticFilesWebConfig.txt
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ <!-- iis6 - for any request in this location, return via managed static file handler -->
+ <add path="*" verb="*" type="System.Web.StaticFileHandler" />
+ </httpHandlers>
+ </system.web>
+ <system.webServer>
+ <staticContent>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
+ </staticContent>
+
+ <handlers accessPolicy="Script,Read">
+ <!--
+ iis7 - for any request to a file exists on disk, return it via native http module.
+ accessPolicy 'Script' is to allow for a managed 404 page.
+ -->
+ <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
+ </handlers>
+ </system.webServer>
+</configuration>
View
BIN site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/Theme.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
8 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ThemeManifest.txt
@@ -0,0 +1,8 @@
+Name: $$ThemeName$$
+Author: The Orchard Team
+Website: http://www.orchardproject.net
+Description: Description for the theme
+Version: 1.0
+BaseTheme: $$BaseTheme$$
+# todo: provide tags
+# Tags: Classic, Serif
View
41 site/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/ViewsWebConfig.txt
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ </httpHandlers>
+
+ <!--
+ Enabling request validation in view pages would cause validation to occur
+ after the input has already been processed by the controller. By default
+ MVC performs request validation before a controller processes the input.
+ To change this behavior apply the ValidateInputAttribute to a
+ controller or action.
+ -->
+ <pages
+ validateRequest="false"
+ pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <controls>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
+ </controls>
+ </pages>
+ </system.web>
+
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <handlers>
+ </handlers>
+ </system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>
View
423 site/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs
@@ -0,0 +1,423 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Linq;
+using System.Web.Hosting;
+using Orchard.CodeGeneration.Services;
+using Orchard.Commands;
+using Orchard.Data.Migration.Generator;
+using Orchard.Data.Migration.Schema;
+using Orchard.Environment.Extensions;
+using Orchard.Environment.Extensions.Models;
+
+namespace Orchard.CodeGeneration.Commands {
+
+ public class CodeGenerationCommands : DefaultOrchardCommandHandler {
+ private readonly IExtensionManager _extensionManager;
+ private readonly ISchemaCommandGenerator _schemaCommandGenerator;
+ private const string SolutionDirectoryModules = "E9C9F120-07BA-4DFB-B9C3-3AFB9D44C9D5";
+ private const string SolutionDirectoryThemes = "74492CBC-7201-417E-BC29-28B4C25A58B0";
+
+ private static readonly string[] _themeDirectories = new [] {
+ "", "Content", "Styles", "Scripts", "Views", "Zones"
+ };
+ private static readonly string[] _moduleDirectories = new [] {
+ "", "Properties", "Controllers", "Views", "Models", "Scripts", "Styles"
+ };
+
+ private const string ModuleName = "CodeGeneration";
+ private static readonly string _codeGenTemplatePath = HostingEnvironment.MapPath("~/Modules/Orchard." + ModuleName + "/CodeGenerationTemplates/");
+ private static readonly string _orchardWebProj = HostingEnvironment.MapPath("~/Orchard.Web.csproj");
+ private static readonly string _orchardThemesProj = HostingEnvironment.MapPath("~/Themes/Themes.csproj");
+
+ public CodeGenerationCommands(
+ IExtensionManager extensionManager,
+ ISchemaCommandGenerator schemaCommandGenerator) {
+ _extensionManager = extensionManager;
+ _schemaCommandGenerator = schemaCommandGenerator;
+
+ // Default is to include in the solution when generating modules / themes
+ IncludeInSolution = true;
+ }
+
+ [OrchardSwitch]
+ public bool IncludeInSolution { get; set; }
+
+ [OrchardSwitch]
+ public bool CreateProject { get; set; }
+
+ [OrchardSwitch]
+ public string BasedOn { get; set; }
+
+ [CommandHelp("codegen datamigration <feature-name> \r\n\t" + "Create a new Data Migration class")]
+ [CommandName("codegen datamigration")]
+ public void CreateDataMigration(string featureName) {
+ Context.Output.WriteLine(T("Creating Data Migration for {0}", featureName));
+ ExtensionDescriptor extensionDescriptor = _extensionManager.AvailableExtensions().FirstOrDefault(extension => DefaultExtensionTypes.IsModule(extension.ExtensionType) &&
+ extension.Features.Any(feature => String.Equals(feature.Id, featureName, StringComparison.OrdinalIgnoreCase)));
+
+ if (extensionDescriptor == null) {
+ Context.Output.WriteLine(T("Creating data migration failed: target Feature {0} could not be found.", featureName));
+ return;
+ }
+
+ string dataMigrationFolderPath = HostingEnvironment.MapPath("~/Modules/" + extensionDescriptor.Id + "/");
+ string dataMigrationFilePath = dataMigrationFolderPath + "Migrations.cs";
+ string templatesPath = HostingEnvironment.MapPath("~/Modules/Orchard." + ModuleName + "/CodeGenerationTemplates/");
+ string moduleCsProjPath = HostingEnvironment.MapPath(string.Format("~/Modules/{0}/{0}.csproj", extensionDescriptor.Id));
+
+ if (!Directory.Exists(dataMigrationFolderPath)) {
+ Directory.CreateDirectory(dataMigrationFolderPath);
+ }
+
+ if (File.Exists(dataMigrationFilePath)) {
+ Context.Output.WriteLine(T("Data migration already exists in target Module {0}.", extensionDescriptor.Id));
+ return;
+ }
+
+ List<SchemaCommand> commands = _schemaCommandGenerator.GetCreateFeatureCommands(featureName, false).ToList();
+ string dataMigrationText;
+ using (var stringWriter = new StringWriter()) {
+ var interpreter = new CodeGenerationCommandInterpreter(stringWriter);
+
+ foreach (var command in commands) {
+ interpreter.Visit(command);
+ stringWriter.WriteLine();
+ }
+
+ dataMigrationText = File.ReadAllText(templatesPath + "DataMigration.txt");
+ dataMigrationText = dataMigrationText.Replace("$$FeatureName$$", featureName);
+ dataMigrationText = dataMigrationText.Replace("$$Commands$$", stringWriter.ToString());
+ }
+ File.WriteAllText(dataMigrationFilePath, dataMigrationText);
+
+ string projectFileText = File.ReadAllText(moduleCsProjPath);
+
+ // The string searches in solution/project files can be made aware of comment lines.
+ if ( projectFileText.Contains("<Compile Include") ) {
+ string compileReference = string.Format("<Compile Include=\"{0}\" />\r\n ", "Migrations.cs");
+ projectFileText = projectFileText.Insert(projectFileText.LastIndexOf("<Compile Include"), compileReference);
+ }
+ else {
+ string itemGroupReference = string.Format("</ItemGroup>\r\n <ItemGroup>\r\n <Compile Include=\"{0}\" />\r\n ", "Migrations.cs");
+ projectFileText = projectFileText.Insert(projectFileText.LastIndexOf("</ItemGroup>"), itemGroupReference);
+ }
+
+ File.WriteAllText(moduleCsProjPath, projectFileText);
+ TouchSolution(Context.Output);
+ Context.Output.WriteLine(T("Data migration created successfully in Module {0}", extensionDescriptor.Id));
+ }
+
+ [CommandHelp("codegen module <module-name> [/IncludeInSolution:true|false]\r\n\t" + "Create a new Orchard module")]
+ [CommandName("codegen module")]
+ [OrchardSwitches("IncludeInSolution")]
+ public void CreateModule(string moduleName) {
+ Context.Output.WriteLine(T("Creating Module {0}", moduleName));
+
+ if ( _extensionManager.AvailableExtensions().Any(extension => String.Equals(moduleName, extension.Name, StringComparison.OrdinalIgnoreCase)) ) {
+ Context.Output.WriteLine(T("Creating Module {0} failed: a module of the same name already exists", moduleName));
+ return;
+ }
+
+ IntegrateModule(moduleName);
+ Context.Output.WriteLine(T("Module {0} created successfully", moduleName));
+ }
+
+ [CommandName("codegen theme")]
+ [CommandHelp("codegen theme <theme-name> [/CreateProject:true|false][/IncludeInSolution:true|false][/BasedOn:<theme-name>]\r\n\tCreate a new Orchard theme")]
+ [OrchardSwitches("IncludeInSolution,BasedOn,CreateProject")]
+ public void CreateTheme(string themeName) {
+ Context.Output.WriteLine(T("Creating Theme {0}", themeName));
+ if (_extensionManager.AvailableExtensions().Any(extension => String.Equals(themeName, extension.Id, StringComparison.OrdinalIgnoreCase))) {
+ Context.Output.WriteLine(T("Creating Theme {0} failed: an extention of the same name already exists", themeName));
+ return;
+ }
+
+ if (!string.IsNullOrEmpty(BasedOn)) {
+ if (!_extensionManager.AvailableExtensions().Any(extension =>
+ string.Equals(extension.ExtensionType, DefaultExtensionTypes.Theme, StringComparison.OrdinalIgnoreCase) &&
+ string.Equals(BasedOn, extension.Id, StringComparison.OrdinalIgnoreCase))) {
+ Context.Output.WriteLine(T("Creating Theme {0} failed: base theme named {1} was not found.", themeName, BasedOn));
+ return;
+ }
+ }
+ IntegrateTheme(themeName, BasedOn);
+ Context.Output.WriteLine(T("Theme {0} created successfully", themeName));
+ }
+
+ [CommandHelp("codegen controller <module-name> <controller-name>\r\n\t" + "Create a new Orchard controller in a module")]
+ [CommandName("codegen controller")]
+ public void CreateController(string moduleName, string controllerName) {
+ Context.Output.WriteLine(T("Creating Controller {0} in Module {1}", controllerName, moduleName));
+
+ ExtensionDescriptor extensionDescriptor = _extensionManager.AvailableExtensions().FirstOrDefault(extension => DefaultExtensionTypes.IsModule(extension.ExtensionType) &&
+ string.Equals(moduleName, extension.Name, StringComparison.OrdinalIgnoreCase));
+
+ if (extensionDescriptor == null) {
+ Context.Output.WriteLine(T("Creating Controller {0} failed: target Module {1} could not be found.", controllerName, moduleName));
+ return;
+ }
+
+ string moduleControllersPath = HostingEnvironment.MapPath("~/Modules/" + extensionDescriptor.Id + "/Controllers/");
+ string controllerPath = moduleControllersPath + controllerName + ".cs";
+ string moduleCsProjPath = HostingEnvironment.MapPath(string.Format("~/Modules/{0}/{0}.csproj", extensionDescriptor.Id));
+ string templatesPath = HostingEnvironment.MapPath("~/Modules/Orchard." + ModuleName + "/CodeGenerationTemplates/");
+
+ if (!Directory.Exists(moduleControllersPath)) {
+ Directory.CreateDirectory(moduleControllersPath);
+ }
+ if (File.Exists(controllerPath)) {
+ Context.Output.WriteLine(T("Controller {0} already exists in target Module {1}.", controllerName, moduleName));
+ return;
+ }
+
+ string controllerText = File.ReadAllText(templatesPath + "Controller.txt");
+ controllerText = controllerText.Replace("$$ModuleName$$", moduleName);
+ controllerText = controllerText.Replace("$$ControllerName$$", controllerName);
+ File.WriteAllText(controllerPath, controllerText);
+ string projectFileText = File.ReadAllText(moduleCsProjPath);
+
+ // The string searches in solution/project files can be made aware of comment lines.
+ if (projectFileText.Contains("<Compile Include")) {
+ string compileReference = string.Format("<Compile Include=\"{0}\" />\r\n ", "Controllers\\" + controllerName + ".cs");
+ projectFileText = projectFileText.Insert(projectFileText.LastIndexOf("<Compile Include"), compileReference);
+ }
+ else {
+ string itemGroupReference = string.Format("</ItemGroup>\r\n <ItemGroup>\r\n <Compile Include=\"{0}\" />\r\n ", "Controllers\\" + controllerName + ".cs");
+ projectFileText = projectFileText.Insert(projectFileText.LastIndexOf("</ItemGroup>"), itemGroupReference);
+ }
+
+ File.WriteAllText(moduleCsProjPath, projectFileText);
+ Context.Output.WriteLine(T("Controller {0} created successfully in Module {1}", controllerName, moduleName));
+ TouchSolution(Context.Output);
+ }
+
+ private void IntegrateModule(string moduleName) {
+ string projectGuid = Guid.NewGuid().ToString().ToUpper();
+
+ CreateFilesFromTemplates(moduleName, projectGuid);
+ // The string searches in solution/project files can be made aware of comment lines.
+ if (IncludeInSolution) {
+ AddToSolution(Context.Output, moduleName, projectGuid, "Modules", SolutionDirectoryModules);
+ }
+ }
+
+ private void IntegrateTheme(string themeName, string baseTheme) {
+ CreateThemeFromTemplates(Context.Output,
+ themeName,
+ baseTheme,
+ CreateProject ? Guid.NewGuid().ToString().ToUpper() : null,
+ IncludeInSolution);
+ }
+
+ private void CreateFilesFromTemplates(string moduleName, string projectGuid) {
+ string modulePath = HostingEnvironment.MapPath("~/Modules/" + moduleName + "/");
+ string propertiesPath = modulePath + "Properties";
+ var content = new HashSet<string>();
+ var folders = new HashSet<string>();
+
+ foreach(var folder in _moduleDirectories) {
+ Directory.CreateDirectory(modulePath + folder);
+ if (!String.IsNullOrEmpty(folder)) {
+ folders.Add(modulePath + folder);
+ }
+ }
+
+ File.WriteAllText(modulePath + "Web.config", File.ReadAllText(_codeGenTemplatePath + "ModuleRootWebConfig.txt"));
+ content.Add(modulePath + "Web.config");
+ File.WriteAllText(modulePath + "Views\\Web.config", File.ReadAllText(_codeGenTemplatePath + "ViewsWebConfig.txt"));
+ content.Add(modulePath + "Views\\Web.config");
+ File.WriteAllText(modulePath + "Scripts\\Web.config", File.ReadAllText(_codeGenTemplatePath + "StaticFilesWebConfig.txt"));
+ content.Add(modulePath + "Scripts\\Web.config");
+ File.WriteAllText(modulePath + "Styles\\Web.config", File.ReadAllText(_codeGenTemplatePath + "StaticFilesWebConfig.txt"));
+ content.Add(modulePath + "Styles\\Web.config");
+
+ string templateText = File.ReadAllText(_codeGenTemplatePath + "ModuleAssemblyInfo.txt");
+ templateText = templateText.Replace("$$ModuleName$$", moduleName);
+ templateText = templateText.Replace("$$ModuleTypeLibGuid$$", Guid.NewGuid().ToString());
+ File.WriteAllText(propertiesPath + "\\AssemblyInfo.cs", templateText);
+ content.Add(propertiesPath + "\\AssemblyInfo.cs");
+
+ templateText = File.ReadAllText(_codeGenTemplatePath + "ModuleManifest.txt");
+ templateText = templateText.Replace("$$ModuleName$$", moduleName);
+ File.WriteAllText(modulePath + "Module.txt", templateText);
+ content.Add(modulePath + "Module.txt");
+
+ var itemGroup = CreateProjectItemGroup(modulePath, content, folders);
+
+ File.WriteAllText(modulePath + moduleName + ".csproj", CreateCsProject(moduleName, projectGuid, itemGroup));
+ }
+
+ private static string CreateCsProject(string projectName, string projectGuid, string itemGroup) {
+ string text = File.ReadAllText(_codeGenTemplatePath + "\\ModuleCsProj.txt");
+ text = text.Replace("$$ModuleName$$", projectName);
+ text = text.Replace("$$ModuleProjectGuid$$", projectGuid);
+ text = text.Replace("$$FileIncludes$$", itemGroup ?? "");
+ text = text.Replace("$$OrchardReferences$$", GetOrchardReferences());
+ return text;
+ }
+
+ private static string GetOrchardReferences() {
+ return IsSourceEnlistment() ?
+@"<ProjectReference Include=""..\..\..\Orchard\Orchard.Framework.csproj"">
+ <Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
+ <Name>Orchard.Framework</Name>
+ </ProjectReference>
+ <ProjectReference Include=""..\..\Core\Orchard.Core.csproj"">
+ <Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
+ <Name>Orchard.Core</Name>
+ </ProjectReference>" :
+@"<Reference Include=""Orchard.Core"">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Orchard.Core.dll</HintPath>
+ </Reference>
+ <Reference Include=""Orchard.Framework"">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Orchard.Framework.dll</HintPath>
+ </Reference>";
+ }
+
+ private static bool IsSourceEnlistment() {
+ return File.Exists(Directory.GetParent(_orchardWebProj).Parent.FullName + "\\Orchard.sln");
+ }
+
+ private void CreateThemeFromTemplates(TextWriter output, string themeName, string baseTheme, string projectGuid, bool includeInSolution) {
+ var themePath = HostingEnvironment.MapPath("~/Themes/" + themeName + "/");
+ var createdFiles = new HashSet<string>();
+ var createdFolders = new HashSet<string>();
+
+ // create directories
+ foreach (var folderName in _themeDirectories) {
+ var folder = themePath + folderName;
+ Directory.CreateDirectory(folder);
+ if (!String.IsNullOrEmpty(folderName)) {
+ createdFolders.Add(folder);
+ }
+ }
+
+ File.WriteAllText(themePath + "Web.config", File.ReadAllText(_codeGenTemplatePath + "ModuleRootWebConfig.txt"));
+ createdFiles.Add(themePath + "Web.config");
+ var webConfig = themePath + "Views\\Web.config";
+ File.WriteAllText(webConfig, File.ReadAllText(_codeGenTemplatePath + "\\ViewsWebConfig.txt"));
+ createdFiles.Add(webConfig);
+ File.WriteAllText(themePath + "Scripts\\Web.config", File.ReadAllText(_codeGenTemplatePath + "StaticFilesWebConfig.txt"));
+ 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)) {
+ templateText = templateText.Replace("BaseTheme: $$BaseTheme$$\r\n", "");
+ }
+ else {
+ templateText = templateText.Replace("$$BaseTheme$$", baseTheme);
+ }
+
+ 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");
+
+ File.WriteAllText(themePath + "Placement.info", File.ReadAllText(_codeGenTemplatePath + "Placement.info"));
+ createdFiles.Add(themePath + "Placement.info");
+
+ // create new csproj for the theme
+ if (projectGuid != null) {
+ var itemGroup = CreateProjectItemGroup(themePath, createdFiles, createdFolders);
+ string projectText = CreateCsProject(themeName, projectGuid, itemGroup);
+ File.WriteAllText(themePath + "\\" + themeName + ".csproj", projectText);
+ }
+
+ if (includeInSolution) {
+ if (projectGuid == null) {
+ // include in solution but dont create a project: just add the references to Orchard.Themes project
+ var itemGroup = CreateProjectItemGroup(HostingEnvironment.MapPath("~/Themes/"), createdFiles, createdFolders);
+ AddFilesToOrchardThemesProject(output, itemGroup);
+ TouchSolution(output);
+ }
+ else {
+ // create a project (already done) and add it to the solution
+ AddToSolution(output, themeName, projectGuid, "Themes", SolutionDirectoryThemes);
+ }
+ }
+ }
+
+
+ private void AddToSolution(TextWriter output, string projectName, string projectGuid, string containingFolder, string solutionFolderGuid) {
+ if (!string.IsNullOrEmpty(projectGuid)) {
+ var solutionPath = Directory.GetParent(_orchardWebProj).Parent.FullName + "\\Orchard.sln";
+ if (File.Exists(solutionPath)) {
+ var projectReference = string.Format("EndProject\r\nProject(\"{{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}}\") = \"{0}\", \"Orchard.Web\\{2}\\{0}\\{0}.csproj\", \"{{{1}}}\"\r\n", projectName, projectGuid, containingFolder);
+ var projectConfiguationPlatforms = string.Format("GlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n\t\t{{{0}}}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r\n\t\t{{{0}}}.Debug|Any CPU.Build.0 = Debug|Any CPU\r\n\t\t{{{0}}}.Release|Any CPU.ActiveCfg = Release|Any CPU\r\n\t\t{{{0}}}.Release|Any CPU.Build.0 = Release|Any CPU\r\n", projectGuid);
+ var solutionText = File.ReadAllText(solutionPath);
+ solutionText = solutionText.Insert(solutionText.LastIndexOf("EndProject\r\n"), projectReference).Replace("GlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n", projectConfiguationPlatforms);
+ solutionText = solutionText.Insert(solutionText.LastIndexOf("EndGlobalSection"), "\t{" + projectGuid + "} = {" + solutionFolderGuid + "}\r\n\t");
+ File.WriteAllText(solutionPath, solutionText);
+ TouchSolution(output);
+ }
+ }
+ }
+
+ private static string CreateProjectItemGroup(string relativeFromPath, HashSet<string> content, HashSet<string> folders) {
+ var contentInclude = "";
+ if (relativeFromPath != null && !relativeFromPath.EndsWith("\\", StringComparison.OrdinalIgnoreCase)) {
+ relativeFromPath += "\\";
+ }
+ else if (relativeFromPath == null) {
+ relativeFromPath = "";
+ }
+
+ if (content != null && content.Count > 0) {
+ contentInclude = string.Join("\r\n",
+ from file in content
+ select " <Content Include=\"" + file.Replace(relativeFromPath, "") + "\" />");
+ }
+ if (folders != null && folders.Count > 0) {
+ contentInclude += "\r\n" + string.Join("\r\n", from folder in folders
+ select " <Folder Include=\"" + folder.Replace(relativeFromPath, "") + "\" />");
+ }
+ return string.Format(CultureInfo.InvariantCulture, "<ItemGroup>\r\n{0}\r\n </ItemGroup>\r\n ", contentInclude);
+ }
+
+ private void AddFilesToOrchardThemesProject(TextWriter output, string itemGroup) {
+ if (!File.Exists(_orchardThemesProj)) {
+ output.WriteLine(T("Warning: Orchard.Themes project file could not be found at {0}", _orchardThemesProj));
+ }
+ else {
+ var projectText = File.ReadAllText(_orchardThemesProj);
+
+ // find where the first ItemGroup is after any References
+ var refIndex = projectText.LastIndexOf("<Reference Include");
+ if (refIndex != -1) {
+ var firstItemGroupIndex = projectText.IndexOf("<ItemGroup>", refIndex);
+ if (firstItemGroupIndex != -1) {
+ projectText = projectText.Insert(firstItemGroupIndex, itemGroup);
+ File.WriteAllText(_orchardThemesProj, projectText);
+ return;
+ }
+ }
+ output.WriteLine(T("Warning: Unable to modify Orchard.Themes project file at {0}", _orchardThemesProj));
+ }
+ }
+
+ private void TouchSolution(TextWriter output) {
+ string rootWebProjectPath = HostingEnvironment.MapPath("~/Orchard.Web.csproj");
+ string solutionPath = Directory.GetParent(rootWebProjectPath).Parent.FullName + "\\Orchard.sln";
+ if (!File.Exists(solutionPath)) {
+ output.WriteLine(T("Warning: Solution file could not be found at {0}", solutionPath));
+ return;
+ }
+
+ try {
+ File.SetLastWriteTime(solutionPath, DateTime.Now);
+ }
+ catch {
+ output.WriteLine(T("An unexpected error occured while trying to refresh the Visual Studio solution. Please reload it."));
+ }
+ }
+ }
+}
View
9 site/Modules/Orchard.CodeGeneration/Module.txt
@@ -0,0 +1,9 @@
+Name: Code Generation
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.1
+OrchardVersion: 1.4.1
+Description: Tools to create Orchard components.
+FeatureDescription: Tools to create Orchard components.
+Category: Developer
View
113 site/Modules/Orchard.CodeGeneration/Orchard.CodeGeneration.csproj
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C0C45321-B51D-4D8D-9B7B-AA4C2E0B2962}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Orchard.CodeGeneration</RootNamespace>
+ <AssemblyName>Orchard.CodeGeneration</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <MvcBuildViews>false</MvcBuildViews>
+ <UseIISExpress>false</UseIISExpress>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>..\..\..\OrchardBasicCorrectness.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\lib\aspnetmvc\System.Web.Mvc.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Commands\CodeGenerationCommands.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Services\CodeGenerationCommandInterpreter.cs" />
+ </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" />
+ <Content Include="CodeGenerationTemplates\DataMigration.txt" />
+ <Content Include="CodeGenerationTemplates\ModuleAssemblyInfo.txt" />
+ <Content Include="CodeGenerationTemplates\ModuleCsProj.txt" />
+ <Content Include="CodeGenerationTemplates\ModuleManifest.txt" />
+ <Content Include="CodeGenerationTemplates\ViewsWebConfig.txt" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="web.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
+ <Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
+ <Name>Orchard.Framework</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\Core\Orchard.Core.csproj">
+ <Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
+ <Name>Orchard.Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="CodeGenerationTemplates\ModuleRootWebConfig.txt" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="CodeGenerationTemplates\Placement.info" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target> -->
+ <Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
+ <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
+ </Target>
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>53274</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>True</UseCustomServer>
+ <CustomServerUrl>http://orchard.codeplex.com</CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
View
35 site/Modules/Orchard.CodeGeneration/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Security;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Orchard.CodeGeneration")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyProduct("Orchard")]
+[assembly: AssemblyCopyright("Copyright © Outercurve Foundation 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a5ae5869-1454-4fe8-a998-a3f2e79c91a3")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.4.1")]
+[assembly: AssemblyFileVersion("1.4.1")]
+
View
111 site/Modules/Orchard.CodeGeneration/Services/CodeGenerationCommandInterpreter.cs
@@ -0,0 +1,111 @@
+using System.Collections.Generic;
+using System.Data;
+using System.IO;
+using System.Linq;
+using Orchard.Data.Migration.Interpreters;
+using Orchard.Data.Migration.Schema;
+
+namespace Orchard.CodeGeneration.Services {
+ public class CodeGenerationCommandInterpreter : AbstractDataMigrationInterpreter {
+ private readonly TextWriter _output;
+
+ public CodeGenerationCommandInterpreter(TextWriter output) {
+ _output = output;
+ }
+
+ public override void Visit(CreateTableCommand command) {
+ _output.WriteLine("\t\t\t// Creating table {0}", command.Name);
+ _output.WriteLine("\t\t\tSchemaBuilder.CreateTable(\"{0}\", table => table", command.Name);
+
+ var matchContentPartRecord = command.TableCommands.OfType<CreateColumnCommand>().Any(
+ c =>
+ c.IsPrimaryKey
+ && c.ColumnName == "Id"
+ && !c.IsIdentity
+ && c.DbType == DbType.Int32);
+
+ var matchContentPartVersionRecord = matchContentPartRecord && command.TableCommands.OfType<CreateColumnCommand>().Any(
+ c =>
+ c.ColumnName == "ContentItemRecord_id"
+ && c.DbType == DbType.Int32);
+
+ if ( matchContentPartVersionRecord ) {
+ _output.WriteLine("\t\t\t\t.ContentPartVersionRecord()");
+ }
+ else if ( matchContentPartRecord ) {
+ _output.WriteLine("\t\t\t\t.ContentPartRecord()");
+ }
+
+ foreach ( var createColumn in command.TableCommands.OfType<CreateColumnCommand>() ) {
+ if(createColumn.ColumnName == "Id" && matchContentPartRecord) {
+ continue;
+ }
+
+ if(createColumn.ColumnName == "ContentItemRecord_id" && matchContentPartVersionRecord) {
+ continue;
+ }
+
+ var type = createColumn.DbType.ToString();
+ var field = createColumn.ColumnName;
+ var options = new List<string>();
+
+ if ( createColumn.IsPrimaryKey ) {
+ options.Add("PrimaryKey()");
+ }
+
+ if ( createColumn.IsIdentity ) {
+ options.Add("Identity()");
+ }
+
+ if ( createColumn.IsUnique ) {
+ options.Add("Unique()");
+ }
+
+ if ( createColumn.IsNotNull ) {
+ options.Add("NotNull()");
+ }
+
+ if ( createColumn.Length.HasValue ) {
+ if ( createColumn.Length == 10000 ) {
+ options.Add("Unlimited()");
+ }
+ else {
+ options.Add(string.Format("WithLength({0})", createColumn.Length));
+ }
+ }
+
+ if ( createColumn.Precision > 0 ) {
+ options.Add(string.Format("WithPrecision({0})", createColumn.Precision));
+ options.Add(string.Format("WithScale({0})", createColumn.Scale));
+ }
+
+ _output.WriteLine("\t\t\t\t.Column(\"{0}\", DbType.{1}{2})", field, type, options.Any() ? ", column => column." + string.Join(".", options) : string.Empty);
+ }
+
+ _output.WriteLine("\t\t\t);");
+
+ }
+
+ public override void Visit(AlterTableCommand command) {
+ _output.WriteLine("// Altering table {0}", command.Name);
+ }
+
+ public override void Visit(DropTableCommand command) {
+ _output.WriteLine("// Dropping table {0}", command.Name);
+ _output.WriteLine("\t\t\tSchemaBuilder.DropTable(\"{0}\", command.Name);");
+ }
+
+ public override void Visit(SqlStatementCommand command) {
+ _output.WriteLine("// Executing sql statement\n\n {0}", command.Sql);
+ }
+
+ public override void Visit(CreateForeignKeyCommand command) {
+ _output.WriteLine("// Creating foreign key {0}", command.Name);
+ }
+
+ public override void Visit(DropForeignKeyCommand command) {
+ _output.WriteLine("// Dropping foreign key {0}", command.Name);
+ }
+
+ }
+}
View
41 site/Modules/Orchard.CodeGeneration/web.config
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+
+ <configSections>
+ <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
+ <remove name="host" />
+ <remove name="pages" />
+ <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
+ <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
+ </sectionGroup>
+ </configSections>
+
+ <system.web.webPages.razor>
+ <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
+ <namespaces>
+ <add namespace="System.Web.Mvc" />
+ <add namespace="System.Web.Mvc.Ajax" />
+ <add namespace="System.Web.Mvc.Html" />
+ <add namespace="System.Web.Routing" />
+ <add namespace="System.Web.WebPages" />
+ <add namespace="System.Linq"/>
+ <add namespace="System.Collections.Generic"/>
+ <add namespace="Orchard.Mvc.Html"/>
+ </namespaces>
+ </pages>
+ </system.web.webPages.razor>
+
+ <system.web>
+ <compilation targetFramework="4.0">
+ <assemblies>
+ <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+ <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
+ </assemblies>
+ </compilation>
+ </system.web>
+
+</configuration>

0 comments on commit 64cabd7

Please sign in to comment.
Something went wrong with that request. Please try again.