diff --git a/Build/NightlyBuild/NightlyBuilder.exe b/Build/NightlyBuild/NightlyBuilder.exe
index 9bf54930f..8df2985ce 100644
Binary files a/Build/NightlyBuild/NightlyBuilder.exe and b/Build/NightlyBuild/NightlyBuilder.exe differ
diff --git a/Build/NightlyBuild/NightlyBuilder.pdb b/Build/NightlyBuild/NightlyBuilder.pdb
index bd1091be2..cdc86056c 100644
Binary files a/Build/NightlyBuild/NightlyBuilder.pdb and b/Build/NightlyBuild/NightlyBuilder.pdb differ
diff --git a/Build/Scripts/Package Binary CI Script.bat b/Build/Scripts/Package Binary CI Script.bat
index f9b1aeced..78d5e06ca 100644
--- a/Build/Scripts/Package Binary CI Script.bat
+++ b/Build/Scripts/Package Binary CI Script.bat
@@ -1,9 +1,6 @@
cd %~dp0./../../Build/NightlyBuild/
-:: delete old nupkg files, so failed packages don't generate artifacts
-for /r %%i in (NuGetPackages\*.nupkg) do del %%i
-
-NightlyBuilder.exe NoDocs=true NoBuild=true NoTests=true NonInteractive=true
+NightlyBuilder.exe NoDocs=true NoBuild=true NoTests=true NonInteractive=true NoCleanNugetPackageTargetDir=true
if %ERRORLEVEL% NEQ 0 (
echo NightlyBuilder.exe returned with error code %ERRORLEVEL%
diff --git a/Build/Scripts/bin/VersionUpdater.exe b/Build/Scripts/bin/VersionUpdater.exe
index 960e60b76..84fb6913b 100644
Binary files a/Build/Scripts/bin/VersionUpdater.exe and b/Build/Scripts/bin/VersionUpdater.exe differ
diff --git a/Build/Scripts/bin/VersionUpdater.pdb b/Build/Scripts/bin/VersionUpdater.pdb
index 131b770a2..d64fb34d6 100644
Binary files a/Build/Scripts/bin/VersionUpdater.pdb and b/Build/Scripts/bin/VersionUpdater.pdb differ
diff --git a/Source/DualityTemplates/DualityTemplates.csproj b/Source/DualityTemplates/DualityTemplates.csproj
index b1ac36d63..202448bf1 100644
--- a/Source/DualityTemplates/DualityTemplates.csproj
+++ b/Source/DualityTemplates/DualityTemplates.csproj
@@ -61,7 +61,7 @@
-
+
diff --git a/Tools/NightlyBuilder/ConfigFile.cs b/Tools/NightlyBuilder/ConfigFile.cs
index 018bea9d8..8fc2f0539 100644
--- a/Tools/NightlyBuilder/ConfigFile.cs
+++ b/Tools/NightlyBuilder/ConfigFile.cs
@@ -17,6 +17,7 @@ public sealed class ConfigFile
public string CopyPackageTo { get; set; }
public string NuGetPath { get; set; }
public string NuGetPackageSpecsDir { get; set; }
+ public bool NoCleanNugetPackageTargetDir { get; set; }
public string NuGetPackageTargetDir { get; set; }
public bool NoBuild { get; set; }
public bool NoTests { get; set; }
diff --git a/Tools/NightlyBuilder/Program.cs b/Tools/NightlyBuilder/Program.cs
index fea36b615..e8ba564c5 100644
--- a/Tools/NightlyBuilder/Program.cs
+++ b/Tools/NightlyBuilder/Program.cs
@@ -86,18 +86,23 @@ public static void Main(string[] args)
public static void PerformNightlyBuild(ConfigFile config)
{
- Console.WriteLine("============================= Clean NuGet Packages ============================");
- if (Directory.Exists(config.NuGetPackageTargetDir))
+ if (!config.NoCleanNugetPackageTargetDir)
{
- Console.WriteLine("Deleting old package files in '{0}'...", config.NuGetPackageTargetDir);
- foreach (string file in Directory.EnumerateFiles(config.NuGetPackageTargetDir, "*.nupkg", SearchOption.TopDirectoryOnly))
+ Console.WriteLine("============================= Clean NuGet Packages ============================");
+ if (Directory.Exists(config.NuGetPackageTargetDir))
{
- File.Delete(file);
+ Console.WriteLine("Deleting old package files in '{0}'...", config.NuGetPackageTargetDir);
+ foreach (string file in Directory.EnumerateFiles(config.NuGetPackageTargetDir, "*.nupkg",
+ SearchOption.TopDirectoryOnly))
+ {
+ File.Delete(file);
+ }
}
+
+ Console.WriteLine("===============================================================================");
+ Console.WriteLine();
+ Console.WriteLine();
}
- Console.WriteLine("===============================================================================");
- Console.WriteLine();
- Console.WriteLine();
string packagePath = Path.Combine(config.PackageDir, config.PackageName);
FileVersionInfo versionCore = null;