diff --git a/GitVersionConfig.yaml b/GitVersionConfig.yaml index 7b4355db621..e97f0efa071 100644 --- a/GitVersionConfig.yaml +++ b/GitVersionConfig.yaml @@ -1 +1 @@ -next-version: 5.0.0 +next-version: 5.0.2 diff --git a/build.cake b/build.cake index a6a08554e2f..8fd509c754e 100644 --- a/build.cake +++ b/build.cake @@ -17,6 +17,7 @@ var configuration = Argument("configuration", "Release"); // EXTERNAL NUGET LIBRARIES ////////////////////////////////////////////////////////////////////// +#addin "Cake.FileHelpers" #addin "System.Text.Json" using System.Text.Json; @@ -135,6 +136,18 @@ Task("__UpdateAssemblyVersionInformation") Information("AssemblyInformationalVersion -> {0}", gitVersionOutput["InformationalVersion"]); }); +Task("__UpdateDotNetStandardAssemblyVersionNumber") + .Does(() => +{ + var assemblySemVer = gitVersionOutput["AssemblySemVer"].ToString(); + Information("Updating NetStandard10 AssemblyVersion to {0}", assemblySemVer); + var replacedFiles = ReplaceRegexInFiles("./src/Polly.NetStandard10/Properties/AssemblyInfo.cs", "AssemblyVersion[(]\".*\"[)]", "AssemblyVersion(\"" + assemblySemVer +"\")"); + if (!replacedFiles.Any()) + { + Information("NetStandard10 AssemblyVersion could not be updated."); + } +}); + Task("__UpdateAppVeyorBuildNumber") .WithCriteria(() => AppVeyor.IsRunningOnAppVeyor) .Does(() => @@ -299,6 +312,7 @@ Task("Build") .IsDependentOn("__Clean") .IsDependentOn("__RestoreNugetPackages") .IsDependentOn("__UpdateAssemblyVersionInformation") + .IsDependentOn("__UpdateDotNetStandardAssemblyVersionNumber") .IsDependentOn("__UpdateAppVeyorBuildNumber") .IsDependentOn("__BuildSolutions") .IsDependentOn("__RunTests") diff --git a/src/Polly.NetStandard10/Properties/AssemblyInfo.cs b/src/Polly.NetStandard10/Properties/AssemblyInfo.cs index fd6d276a18a..f0d440d45a4 100644 --- a/src/Polly.NetStandard10/Properties/AssemblyInfo.cs +++ b/src/Polly.NetStandard10/Properties/AssemblyInfo.cs @@ -1,2 +1,3 @@ -using System.Reflection; -[assembly: AssemblyTitle("Polly")] \ No newline at end of file +using System.Reflection; +[assembly: AssemblyTitle("Polly")] +[assembly: AssemblyVersion("5.0.2.0")] \ No newline at end of file