module creator templates need to be in the server project in order to be distributed with application

This commit is contained in:
Shaun Walker
2020-05-20 15:31:09 -04:00
parent 1495a5c017
commit d8fca5de20
42 changed files with 6 additions and 1 deletions

View File

@ -170,7 +170,7 @@ namespace Oqtane.Controllers
{
string rootPath;
DirectoryInfo rootFolder = Directory.GetParent(_environment.ContentRootPath);
string templatePath = Utilities.PathCombine(rootFolder.FullName, "Oqtane.Client", "Modules", "Admin", "ModuleCreator", "Templates",moduleDefinition.Template,"\\");
string templatePath = Utilities.PathCombine(_environment.WebRootPath, "Modules", "Templates", moduleDefinition.Template,"\\");
if (moduleDefinition.Template == "internal")
{