From e8b3c2ea093a366c0f3b45691a271e3f2ad3bb8f Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 22 Sep 2019 16:16:21 -0700 Subject: [PATCH] forgot Particles folder --- project_name/Content/Particles/.keep | 0 project_name/T4Templates/ContentPathGenerator.tt | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 project_name/Content/Particles/.keep 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 100755 --- 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);