Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions test/dotnet.Tests/CommandTests/Run/RunFileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"), """
<Project>
<PropertyGroup>
<TargetFramework></TargetFramework>
</PropertyGroup>
</Project>
""");

var artifactsDir = VirtualProjectBuilder.GetArtifactsPath(programFile);
if (Directory.Exists(artifactsDir)) Directory.Delete(artifactsDir, recursive: true);

Expand Down Expand Up @@ -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"), """
<Project>
<PropertyGroup>
<TargetFramework></TargetFramework>
</PropertyGroup>
</Project>
""");

var artifactsDir = VirtualProjectBuilder.GetArtifactsPath(programFile);
if (Directory.Exists(artifactsDir)) Directory.Delete(artifactsDir, recursive: true);

Expand Down
Loading