-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for net5.0 TargetFramework
Reapplies #10762 that was reverted because it went to the wrong branch. This reverts commit 508463d.
- Loading branch information
1 parent
b66b13d
commit 0f5fc4b
Showing
5 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.3.0 | ||
16.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using FluentAssertions; | ||
using Microsoft.NET.TestFramework; | ||
using Microsoft.NET.TestFramework.Assertions; | ||
using Microsoft.NET.TestFramework.Commands; | ||
using Microsoft.NET.TestFramework.ProjectConstruction; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Microsoft.NET.Build.Tests | ||
{ | ||
public class Net50Targeting : SdkTest | ||
{ | ||
public Net50Targeting(ITestOutputHelper log) : base(log) | ||
{ | ||
} | ||
|
||
[Fact(Skip="Need NuGet support for net5.0 TFM")] | ||
public void Net50TargetFrameworkParsesAsNetCoreAppTargetFrameworkIdentifier() | ||
{ | ||
var testProject = new TestProject() | ||
{ | ||
Name = "Net5Test", | ||
TargetFrameworks = "net5.0", | ||
IsSdkProject = true | ||
}; | ||
|
||
var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); | ||
|
||
var buildCommand = new BuildCommand(Log, testAsset.TestRoot, testProject.Name); | ||
|
||
buildCommand.Execute() | ||
.Should() | ||
.Pass(); | ||
|
||
var getValuesCommand = new GetValuesCommand(Log, testAsset.TestRoot, testProject.TargetFrameworks, "TargetFrameworkIdentifier"); | ||
getValuesCommand.Execute() | ||
.Should() | ||
.Pass(); | ||
|
||
getValuesCommand.GetValues().Should().BeEquivalentTo(".NETCoreApp"); | ||
} | ||
} | ||
} |