@@ -731,7 +731,8 @@ public void PublishSingleFile_fails_for_unsupported_target_framework(string targ
731
731
[ InlineData ( "net6.0" , false ) ]
732
732
[ InlineData ( "netstandard2.0;net5.0" , true ) ] // None of these TFMs are supported for single-file
733
733
[ InlineData ( "netstandard2.0;net6.0" , false ) ] // Net6.0 is the min TFM supported for single-file and targeting.
734
- [ InlineData ( "netstandard2.0;net8.0" , true ) ] // Net8.0 is supported for single-file, but leaves a "gap" for the supported net6./net7.0 TFMs.
734
+ [ InlineData ( "netstandard2.0;net8.0" , false ) ] // Net8.0 is supported for single-file
735
+ [ InlineData ( "netstandard2.0;net9.0" , true ) ] // Net9.0 is supported for single-file, but leaves a "gap" for the supported net6./net7.0 TFMs.
735
736
[ InlineData ( "alias-ns2" , true ) ]
736
737
[ InlineData ( "alias-n6" , false ) ]
737
738
[ InlineData ( "alias-n6;alias-n8" , false ) ] // If all TFMs are supported, there's no warning even though the project uses aliases.
@@ -749,14 +750,14 @@ public void EnableSingleFile_warns_when_expected_for_not_correctly_multitargeted
749
750
. WithProjectChanges ( AddTargetFrameworkAliases ) ;
750
751
751
752
var buildCommand = new BuildCommand ( testAsset ) ;
752
- var resultAssertion = buildCommand . Execute ( "/bl:my.binlog / p:CheckEolTargetFramework=false" )
753
+ var resultAssertion = buildCommand . Execute ( "/p:CheckEolTargetFramework=false" )
753
754
. Should ( ) . Pass ( ) ;
754
755
if ( shouldWarn ) {
755
756
// Note: can't check for Strings.EnableSingleFileAnalyzerUnsupported because each line of
756
757
// the message gets prefixed with a file path by MSBuild.
757
758
resultAssertion
758
759
. And . HaveStdOutContaining ( $ "warning NETSDK1211")
759
- . And . HaveStdOutContaining ( $ "<EnableSingleFileAnalyzer Condition=\" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6 .0'))\" >true</EnableSingleFileAnalyzer>") ;
760
+ . And . HaveStdOutContaining ( $ "<EnableSingleFileAnalyzer Condition=\" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8 .0'))\" >true</EnableSingleFileAnalyzer>") ;
760
761
} else {
761
762
resultAssertion . And . NotHaveStdOutContaining ( $ "warning") ;
762
763
}
0 commit comments