Update several of the tests to look for netcoreapp2.2 rather than 2.1 with the new templates
This commit is contained in:
parent
faeaa401c0
commit
2b5cf41ee9
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
|||
{
|
||||
string projectDirectory = directory.Path;
|
||||
|
||||
string newArgs = "console -f netcoreapp2.1 --debug:ephemeral-hive --no-restore";
|
||||
string newArgs = "console -f netcoreapp2.2 --debug:ephemeral-hive --no-restore";
|
||||
new NewCommandShim()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute(newArgs)
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace Microsoft.DotNet.New.Tests
|
|||
|
||||
// Remove the expectedVersion parameter once we have templates targetting netcoreapp2.2.
|
||||
[Theory]
|
||||
[InlineData("console", "microsoft.netcore.app", "2.1.0")]
|
||||
[InlineData("console", "microsoft.netcore.app", "2.2.0")]
|
||||
[InlineData("classlib", "netstandard.library", "2.0.3")] // FIXME: This is pinned to 2.0.3 due to https://github.com/dotnet/sdk/issues/2410
|
||||
public void NewProjectRestoresCorrectPackageVersion(string type, string packageName, string expectedVersion)
|
||||
{
|
||||
|
|
|
@ -208,7 +208,7 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
|
|||
var configuration = Environment.GetEnvironmentVariable("CONFIGURATION") ?? "Debug";
|
||||
|
||||
var outputProgram = rootDir
|
||||
.GetDirectory("bin", configuration, "netcoreapp2.1", "publish", $"{rootDir.Name}.dll")
|
||||
.GetDirectory("bin", configuration, "netcoreapp2.2", "publish", $"{rootDir.Name}.dll")
|
||||
.FullName;
|
||||
|
||||
new TestCommand(outputProgram)
|
||||
|
@ -270,7 +270,7 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
|
|||
var configuration = Environment.GetEnvironmentVariable("CONFIGURATION") ?? "Debug";
|
||||
|
||||
var outputProgram = rootDir
|
||||
.GetDirectory("bin", configuration, "netcoreapp2.1", rid, "publish", $"{rootDir.Name}.dll")
|
||||
.GetDirectory("bin", configuration, "netcoreapp2.2", rid, "publish", $"{rootDir.Name}.dll")
|
||||
.FullName;
|
||||
|
||||
new TestCommand(outputProgram)
|
||||
|
|
Loading…
Reference in a new issue