Skip to content

Commit

Permalink
Cake Build Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ennerperez committed Mar 15, 2020
1 parent 845d444 commit 8e52a4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ var solutions = new Dictionary<string, string> {
var assemblyInfoVersion = ParseAssemblyInfo("./src/Microsoft.Bcl.Build.Symbols/Properties/AssemblyInfo.cs");

// Define version.
var assemblyVersion = assemblyInfoVersion.AssemblyVersion.Replace(".*", "");
var ticks = DateTime.Now.ToString("ddHHmmss");
var assemblyVersion = assemblyInfoVersion.AssemblyVersion.Replace(".*", "." + ticks.Substring(ticks.Length-8,8));
var version = EnvironmentVariable("APPVEYOR_BUILD_VERSION") ?? Argument("version", assemblyVersion);

//////////////////////////////////////////////////////////////////////
Expand All @@ -33,9 +34,8 @@ Task("Clean")
.Does(() =>
{
CleanDirectory(buildDir);
CleanDirectories("./**/bin");
CleanDirectories("./**/obj");
CleanDirectories("./**/samples/packages");
//CleanDirectories("./**/bin");
//CleanDirectories("./**/obj");
});

Task("Restore-NuGet-Packages")
Expand Down

0 comments on commit 8e52a4d

Please sign in to comment.