Skip to content

fixing dotnet-version updates during publish#2639

Merged
brettsam merged 2 commits intov4.xfrom
brettsam/v4-fix
Jul 10, 2021
Merged

fixing dotnet-version updates during publish#2639
brettsam merged 2 commits intov4.xfrom
brettsam/v4-fix

Conversation

@brettsam
Copy link
Copy Markdown
Member

@brettsam brettsam commented Jul 8, 2021

Fixes two issues related to dotnet-isolated publishing:

  1. We would evaluate the dotnet-version twice.
  2. If dotnet-version wasn't specified, it was rolling back to 5.0.

/cc @anthonychu that ran into this

@brettsam brettsam requested a review from ankitkumarr July 8, 2021 15:26
}

string normalizedVersion = $"{parsedVersion.Major}.{parsedVersion.Minor}";
ColoredConsole.WriteLine($"Using dotnet-version value of '{normalizedVersion}'.");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided there wasn't really a need to write this out during parsing as it can be noisy; we'll still log if we change it.

public Action<string> PreTest { get; set; }
public Func<string, Process, Task> Test { get; set; }
public TimeSpan CommandTimeout { get; set; } = TimeSpan.FromSeconds(20);
public TimeSpan CommandTimeout { get; set; } = TimeSpan.FromSeconds(40);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bumping this up -- some e2e tests were timing out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants