From 9e2a4809258e93e3fa5a68f3c2228894d0a245bf Mon Sep 17 00:00:00 2001 From: William Godbe Date: Wed, 13 May 2020 10:59:55 -0700 Subject: [PATCH] [release/3.1] Add .version file to shared framework zip (#21548) * Add .version file to shared framework zip * Fix test --- .../src/Microsoft.AspNetCore.App.Runtime.csproj | 14 ++++++++++---- src/Framework/test/SharedFxTests.cs | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj b/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj index 72d99ee575..3451584734 100644 --- a/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj +++ b/src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj @@ -67,7 +67,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant $(IntermediateOutputPath)ignoreme.dev.runtimeconfig.json - $(IntermediateOutputPath)$(SharedFxName).versions.txt + $(IntermediateOutputPath)$(SharedFxName).versions.txt + $(IntermediateOutputPath).version none @@ -256,7 +257,12 @@ This package is an internal implementation of the .NET Core SDK and is not meant + + @@ -397,7 +403,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant - + @@ -496,7 +502,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant BeforeTargets="_GetPackageFiles"> - + diff --git a/src/Framework/test/SharedFxTests.cs b/src/Framework/test/SharedFxTests.cs index 558fc34439..2fc09b96b0 100644 --- a/src/Framework/test/SharedFxTests.cs +++ b/src/Framework/test/SharedFxTests.cs @@ -131,7 +131,7 @@ namespace Microsoft.AspNetCore [Fact] public void ItContainsVersionFile() { - var versionFile = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.versions.txt"); + var versionFile = Path.Combine(_sharedFxRoot, ".version"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length);