disabled workarounds for console/classlib templates

This commit is contained in:
Vlada Shubina 2022-11-28 16:16:31 +01:00 committed by Vlada Shubina
parent 27e87715f2
commit 32af9d9aef

View file

@ -15,8 +15,6 @@ namespace EndToEnd.Tests
{
public class ProjectBuildTests : TestBase
{
private static readonly string currentTfm = "net8.0";
[Fact]
public void ItCanNewRestoreBuildRunCleanMSBuildProject()
{
@ -29,13 +27,6 @@ namespace EndToEnd.Tests
.Execute(newArgs)
.Should().Pass();
string projectPath = Path.Combine(projectDirectory, directory.Name + ".csproj");
var project = XDocument.Load(projectPath);
var ns = project.Root.Name.Namespace;
project.Root.Element(ns + "PropertyGroup")
.Element(ns + "TargetFramework").Value = currentTfm;
project.Save(projectPath);
new RestoreCommand()
.WithWorkingDirectory(projectDirectory)
.Execute()
@ -80,9 +71,6 @@ namespace EndToEnd.Tests
var ns = project.Root.Name.Namespace;
project.Root.Attribute("Sdk").Value = "Microsoft.NET.Sdk.Web";
project.Root.Element(ns + "PropertyGroup")
.Element(ns + "TargetFramework").Value = currentTfm;
project.Save(projectPath);
new BuildCommand()
@ -397,8 +385,6 @@ namespace EndToEnd.Tests
// Return net7.0 for templates that don't support
// net8.0 yet.
if (template.StartsWith("blazor")
|| template.StartsWith("classlib")
|| template.StartsWith("console")
|| template.StartsWith("mvc")
|| template.StartsWith("web")
|| template.StartsWith("worker")