Merged PR 128266: Change the implicit asp.net core version for FDD apps to be pinned as 2.1.1.
Change the implicit asp.net core version for FDD apps to be pinned as 2.1.1.
This commit is contained in:
commit
cfc9d947b4
1 changed files with 4 additions and 5 deletions
|
@ -16,8 +16,10 @@ namespace EndToEnd
|
||||||
{
|
{
|
||||||
private const string AspNetTestProject = "TestWebAppSimple";
|
private const string AspNetTestProject = "TestWebAppSimple";
|
||||||
|
|
||||||
|
private const string PinnedAspNetCoreImplicitVersion = "2.1.1";
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void PortablePublishWithLatestTFMUsesBundledAspNetCoreAppVersion()
|
public void PortablePublishWithLatestTFMUsesPinnedDownAspNetCoreAppVersion()
|
||||||
{
|
{
|
||||||
var _testInstance = TestAssets.Get(AspNetTestProject)
|
var _testInstance = TestAssets.Get(AspNetTestProject)
|
||||||
.CreateInstance(identifier: LatestSupportedAspNetCoreAppVersion)
|
.CreateInstance(identifier: LatestSupportedAspNetCoreAppVersion)
|
||||||
|
@ -48,10 +50,7 @@ namespace EndToEnd
|
||||||
var restoredVersion = GetAspNetCoreAppVersion(assetsFile, portable: true);
|
var restoredVersion = GetAspNetCoreAppVersion(assetsFile, portable: true);
|
||||||
restoredVersion.Should().NotBeNull();
|
restoredVersion.Should().NotBeNull();
|
||||||
|
|
||||||
var bundledVersionPath = Path.Combine(projectDirectory, ".BundledAspNetCoreVersion");
|
restoredVersion.ToNormalizedString().Should().BeEquivalentTo(PinnedAspNetCoreImplicitVersion,
|
||||||
var bundledVersion = File.ReadAllText(bundledVersionPath).Trim();
|
|
||||||
|
|
||||||
restoredVersion.ToNormalizedString().Should().BeEquivalentTo(bundledVersion,
|
|
||||||
"The bundled aspnetcore versions set in Microsoft.NETCoreSdk.BundledVersions.props should be idenitical to the versions set in DependencyVersions.props." +
|
"The bundled aspnetcore versions set in Microsoft.NETCoreSdk.BundledVersions.props should be idenitical to the versions set in DependencyVersions.props." +
|
||||||
"Please update MSBuildExtensions.targets in this repo so these versions match.");
|
"Please update MSBuildExtensions.targets in this repo so these versions match.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue