File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
test/Microsoft.NET.Publish.Tests Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -747,10 +747,9 @@ public void EnableSingleFile_warns_when_expected_for_not_correctly_multitargeted
747
747
testProject . AdditionalProperties [ "CheckEolTargetFramework" ] = "false" ; // Silence warning about targeting EOL TFMs
748
748
var testAsset = _testAssetsManager . CreateTestProject ( testProject , identifier : targetFrameworks )
749
749
. WithProjectChanges ( AddTargetFrameworkAliases ) ;
750
- testAsset . AdditionalProperties [ "CheckEolTargetFramework" ] = "false" ; // Silence warning about targeting EOL TFMs
751
750
752
751
var buildCommand = new BuildCommand ( testAsset ) ;
753
- var resultAssertion = buildCommand . Execute ( "/bl:my.binlog" )
752
+ var resultAssertion = buildCommand . Execute ( "/bl:my.binlog /p:CheckEolTargetFramework=false " )
754
753
. Should ( ) . Pass ( ) ;
755
754
if ( shouldWarn ) {
756
755
// Note: can't check for Strings.EnableSingleFileAnalyzerUnsupported because each line of
Original file line number Diff line number Diff line change @@ -649,10 +649,9 @@ public void IsAotCompatible_warns_when_expected_for_not_correctly_multitarget_li
649
649
testProject . AdditionalProperties [ "CheckEolTargetFramework" ] = "false" ; // Silence warning about targeting EOL TFMs
650
650
var testAsset = _testAssetsManager . CreateTestProject ( testProject , identifier : targetFrameworks )
651
651
. WithProjectChanges ( AddTargetFrameworkAliases ) ;
652
- testAsset . AdditionalProperties [ "CheckEolTargetFramework" ] = "false" ; // Silence warning about targeting EOL TFMs
653
652
654
653
var buildCommand = new BuildCommand ( testAsset ) ;
655
- var resultAssertion = buildCommand . Execute ( )
654
+ var resultAssertion = buildCommand . Execute ( "/p:CheckEolTargetFramework=false" )
656
655
. Should ( ) . Pass ( ) ;
657
656
if ( shouldWarn ) {
658
657
resultAssertion
Original file line number Diff line number Diff line change @@ -200,10 +200,8 @@ public void IsTrimmable_warns_when_expected_for_not_correctly_multitargeted_libr
200
200
var testAsset = _testAssetsManager . CreateTestProject ( testProject , identifier : targetFrameworks )
201
201
. WithProjectChanges ( AddTargetFrameworkAliases ) ;
202
202
203
- testAsset . AdditionalProperties [ "CheckEolTargetFramework" ] = "false" ; // Silence warning about targeting EOL TFMs
204
-
205
203
var buildCommand = new BuildCommand ( testAsset ) ;
206
- var resultAssertion = buildCommand . Execute ( )
204
+ var resultAssertion = buildCommand . Execute ( "/p:CheckEolTargetFramework=false" )
207
205
. Should ( ) . Pass ( ) ;
208
206
if ( shouldWarn ) {
209
207
resultAssertion
You can’t perform that action at this time.
0 commit comments