diff --git a/project_name/Content/Particles/.keep b/project_name/Content/Particles/.keep new file mode 100644 index 0000000..e69de29 diff --git a/project_name/T4Templates/ContentPathGenerator.tt b/project_name/T4Templates/ContentPathGenerator.tt index 1a2687d..fd30a73 100644 --- a/project_name/T4Templates/ContentPathGenerator.tt +++ b/project_name/T4Templates/ContentPathGenerator.tt @@ -140,6 +140,9 @@ namespace Nez void PrintSpecialFolderAndSubfolders(string source, string[] validExtensions, bool isCompiledFolder = false) { + if (!Directory.Exists(source)) + return; + var stripPath = isCompiledFolder ? source : ""; PrintContentFiles(source, 3, stripPath, validExtensions);