diff --git a/src/Nerdbank.GitVersioning.Tasks/AssemblyVersionInfo.cs b/src/Nerdbank.GitVersioning.Tasks/AssemblyVersionInfo.cs index 42949b3b..193b25e6 100644 --- a/src/Nerdbank.GitVersioning.Tasks/AssemblyVersionInfo.cs +++ b/src/Nerdbank.GitVersioning.Tasks/AssemblyVersionInfo.cs @@ -463,7 +463,7 @@ internal override void DeclareAttribute(Type type, string arg) internal override void AddCommitDateProperty(long ticks) { - this.codeBuilder.AppendLine($" static member internal GitCommitDate = new DateTimeOffset({ticks}L, TimeSpan.Zero)"); + this.codeBuilder.AppendLine($" static member internal GitCommitDate = new System.DateTimeOffset({ticks}L, System.TimeSpan.Zero)"); } internal override void EndThisAssemblyClass()