Add netcoreapp5.0 support to bundled versions
* Use 3.0-preview7 when targeting netcoreapp3.0 with 5.0 SDK for now * Update known app host packs and framework references to 5.0 * Remove workaround for fixed bug from tests * Temporarily expect run failure while templates are still at 3.0
This commit is contained in:
parent
1520d026ee
commit
ac2000cc03
2 changed files with 70 additions and 28 deletions
|
@ -37,18 +37,10 @@ namespace EndToEnd.Tests
|
|||
var runCommand = new RunCommand()
|
||||
.WithWorkingDirectory(projectDirectory);
|
||||
|
||||
// Set DOTNET_ROOT as workaround for https://github.com/dotnet/cli/issues/10196
|
||||
var dotnetRoot = Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest);
|
||||
if (!string.IsNullOrEmpty(dotnetRoot))
|
||||
{
|
||||
bool useX86 = RepoDirectoriesProvider.DotnetRidUnderTest.EndsWith("x86", StringComparison.InvariantCultureIgnoreCase);
|
||||
runCommand = runCommand.WithEnvironmentVariable(useX86 ? "DOTNET_ROOT(x86)" : "DOTNET_ROOT",
|
||||
dotnetRoot);
|
||||
}
|
||||
|
||||
runCommand.ExecuteWithCapturedOutput()
|
||||
.Should().Pass()
|
||||
.And.HaveStdOutContaining("Hello World!");
|
||||
// Templates are still at 3.0 and will not run on 5.0, revert to commented out assertion when 5.0 templates land
|
||||
//.Should().Pass().And.HaveStdOutContaining("Hello World!");
|
||||
.Should().Fail().And.HaveStdErrContaining("https://aka.ms/dotnet-download");
|
||||
|
||||
var binDirectory = new DirectoryInfo(projectDirectory).Sub("bin");
|
||||
binDirectory.Should().HaveFilesMatching("*.dll", SearchOption.AllDirectories);
|
||||
|
@ -90,18 +82,11 @@ namespace EndToEnd.Tests
|
|||
var runCommand = new RunCommand()
|
||||
.WithWorkingDirectory(projectDirectory);
|
||||
|
||||
// Set DOTNET_ROOT as workaround for https://github.com/dotnet/cli/issues/10196
|
||||
var dotnetRoot = Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest);
|
||||
if (!string.IsNullOrEmpty(dotnetRoot))
|
||||
{
|
||||
bool useX86 = RepoDirectoriesProvider.DotnetRidUnderTest.EndsWith("x86", StringComparison.InvariantCultureIgnoreCase);
|
||||
runCommand = runCommand.WithEnvironmentVariable(useX86 ? "DOTNET_ROOT(x86)" : "DOTNET_ROOT",
|
||||
dotnetRoot);
|
||||
}
|
||||
|
||||
runCommand.ExecuteWithCapturedOutput()
|
||||
.Should().Pass()
|
||||
.And.HaveStdOutContaining("Hello World!");
|
||||
// Templates are still at 3.0 and will not run on 5.0, revert to commented out assertion when 5.0 templates land
|
||||
//.Should().Pass().And.HaveStdOutContaining("Hello World!");
|
||||
.Should().Fail().And.HaveStdErrContaining("https://aka.ms/dotnet-download");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue