diff --git a/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs b/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs index c908a7142cf2..971b43affb2c 100644 --- a/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs +++ b/test/dotnet.Tests/CommandTests/Run/RunFileTests.cs @@ -2135,19 +2135,11 @@ public void Build_Library_MultiTarget() #:property OutputType=Library #:property PublishAot=false #:property LangVersion=preview + #:property TargetFramework= #:property TargetFrameworks=netstandard2.0;{ToolsetInfo.CurrentTargetFramework} class C; """); - // https://github.com/dotnet/sdk/issues/51077: cannot set this via `#:property` directive. - File.WriteAllText(Path.Join(testInstance.Path, "Directory.Build.props"), """ - - - - - - """); - var artifactsDir = VirtualProjectBuilder.GetArtifactsPath(programFile); if (Directory.Exists(artifactsDir)) Directory.Delete(artifactsDir, recursive: true); @@ -2260,19 +2252,11 @@ public void Build_Exe_MultiTarget() #:property OutputType=Exe #:property PublishAot=false #:property LangVersion=preview + #:property TargetFramework= #:property TargetFrameworks=netstandard2.0;{ToolsetInfo.CurrentTargetFramework} Console.WriteLine("Hello Exe"); """); - // https://github.com/dotnet/sdk/issues/51077: cannot set this via `#:property` directive. - File.WriteAllText(Path.Join(testInstance.Path, "Directory.Build.props"), """ - - - - - - """); - var artifactsDir = VirtualProjectBuilder.GetArtifactsPath(programFile); if (Directory.Exists(artifactsDir)) Directory.Delete(artifactsDir, recursive: true);