Trigger rebuild when the CLI changed
- Stamp each project with the CLI version it was last compiled with - Rebuild those projects with a local version file that does not match the one of the current CLI that is building it
This commit is contained in:
parent
7a82a98e4c
commit
f14b4cbd3d
6 changed files with 142 additions and 23 deletions
|
@ -159,8 +159,7 @@ namespace Microsoft.DotNet.Cli
|
|||
|
||||
private static string GetCommitSha()
|
||||
{
|
||||
// The CLI ships with a .version file that stores the commit information
|
||||
var versionFile = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, ".version"));
|
||||
var versionFile = DotnetFiles.VersionFile;
|
||||
|
||||
if (File.Exists(versionFile))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue