File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -700,7 +700,10 @@ Task("TestsPackaging")
700
700
{
701
701
Framework = moniker ,
702
702
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 } ")
704
707
}
705
708
) ;
706
709
}
@@ -715,7 +718,7 @@ Task("TestsPackaging")
715
718
}
716
719
717
720
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 ") ;
719
722
Information ( "Created test project" ) ;
720
723
721
724
// the below two packages are added just to allow using the same code as in xunit
You can’t perform that action at this time.
0 commit comments