From 3ee74ceb8f8abf0ac1fbe10cfdeb4b8562ef21c9 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Thu, 21 Sep 2023 14:49:44 -0700 Subject: [PATCH] Fix for desired extension on Bottle and SnapWrap --- source/Prebuild/Core/Nodes/TextGenNode.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/Prebuild/Core/Nodes/TextGenNode.cs b/source/Prebuild/Core/Nodes/TextGenNode.cs index 4756f7b..0e31676 100644 --- a/source/Prebuild/Core/Nodes/TextGenNode.cs +++ b/source/Prebuild/Core/Nodes/TextGenNode.cs @@ -45,12 +45,16 @@ namespace Prebuild.Core.Nodes { // Add to the extension: Bottle.cs // This is to aid in excluding these files from git - - m_OutputName = Path.ChangeExtension(m_OutputName, ".Bottle.cs"); + string desiredExtension = Path.GetExtension(OutputName); + m_OutputName = Path.ChangeExtension(m_OutputName, ".Bottle" + desiredExtension); } - else m_OutputName = Path.ChangeExtension(m_OutputName, ".SnapWrap.cs"); + else + { + string desiredExtension = Path.GetExtension(OutputName); + m_OutputName = Path.ChangeExtension(m_OutputName, ".SnapWrap" + desiredExtension); + } }