Skip to content

Commit dfcb4d4

Browse files
CSHARP-4221: Fix packaging tests. (#825)
1 parent 62fa8e2 commit dfcb4d4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.cake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,10 @@ Task("TestsPackaging")
700700
{
701701
Framework = moniker,
702702
Configuration = configuration,
703-
ArgumentCustomization = args => args.Append($"-- RunConfiguration.TargetPlatform={processorArchitecture}")
703+
ArgumentCustomization = args =>
704+
args
705+
.Append("/p:LangVersion=9")
706+
.Append($"-- RunConfiguration.TargetPlatform={processorArchitecture}")
704707
}
705708
);
706709
}
@@ -715,7 +718,7 @@ Task("TestsPackaging")
715718
}
716719

717720
Information("Creating console project...");
718-
DotNetCoreTool(csprojFullPath, "new console", $"--target-framework-override {moniker} --language C# ");
721+
DotNetCoreTool(csprojFullPath, "new console", $"--target-framework-override {moniker} --language C# --langVersion 9");
719722
Information("Created test project");
720723

721724
// the below two packages are added just to allow using the same code as in xunit

0 commit comments

Comments
 (0)