diff --git a/src/NerdBank.GitVersioning/CloudBuildServices/Jenkins.cs b/src/NerdBank.GitVersioning/CloudBuildServices/Jenkins.cs
index 0803e6a9..688e6b65 100644
--- a/src/NerdBank.GitVersioning/CloudBuildServices/Jenkins.cs
+++ b/src/NerdBank.GitVersioning/CloudBuildServices/Jenkins.cs
@@ -58,7 +58,7 @@ private static void WriteVersionFile(string buildNumber)
var versionFilePath = Path.Combine(workspacePath, "jenkins_build_number.txt");
- File.WriteAllText(versionFilePath, buildNumber, UTF8NoBOM);
+ Utilities.FileOperationWithRetry(() => File.WriteAllText(versionFilePath, buildNumber, UTF8NoBOM));
}
}
}
diff --git a/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj b/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj
index 4851a526..7c016888 100644
--- a/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj
+++ b/src/NerdBank.GitVersioning/NerdBank.GitVersioning.csproj
@@ -12,4 +12,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/Nerdbank.GitVersioning.Tasks/Nerdbank.GitVersioning.Tasks.csproj b/src/Nerdbank.GitVersioning.Tasks/Nerdbank.GitVersioning.Tasks.csproj
index 1e51aa1d..cf789be6 100644
--- a/src/Nerdbank.GitVersioning.Tasks/Nerdbank.GitVersioning.Tasks.csproj
+++ b/src/Nerdbank.GitVersioning.Tasks/Nerdbank.GitVersioning.Tasks.csproj
@@ -12,4 +12,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/Nerdbank.GitVersioning.Tasks/Utilities.cs b/src/Shared/Utilities.cs
similarity index 95%
rename from src/Nerdbank.GitVersioning.Tasks/Utilities.cs
rename to src/Shared/Utilities.cs
index 9efe0c2d..9e375f66 100644
--- a/src/Nerdbank.GitVersioning.Tasks/Utilities.cs
+++ b/src/Shared/Utilities.cs
@@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Validation;
-namespace Nerdbank.GitVersioning.Tasks
+namespace Nerdbank.GitVersioning
{
internal static class Utilities
{