|
397 | 397 | <PropertyGroup Condition="$(MSBuildProjectFullPath.Contains('$([System.IO.Path]::DirectorySeparatorChar)tests$([System.IO.Path]::DirectorySeparatorChar)'))"> |
398 | 398 | <IsTestProject Condition="$(MSBuildProjectName.EndsWith('.UnitTests')) or $(MSBuildProjectName.EndsWith('.Tests'))">true</IsTestProject> |
399 | 399 | <IsTrimmingTestProject Condition="$(MSBuildProjectName.EndsWith('.TrimmingTests'))">true</IsTrimmingTestProject> |
400 | | - <IsNativeAotTestProject Condition="$(MSBuildProjectName.EndsWith('.NativeAotTests'))">true</IsNativeAotTestProject> |
401 | | - <IsPublishedAppTestProject Condition="'$(IsTrimmingTestProject)' == 'true' or '$(IsNativeAotTestProject)' == 'true'">true</IsPublishedAppTestProject> |
402 | | - <IsTestSupportProject Condition="'$(IsTestProject)' != 'true' and '$(IsPublishedAppTestProject)' != 'true'">true</IsTestSupportProject> |
| 400 | + <IsTestSupportProject Condition="'$(IsTestProject)' != 'true' and '$(IsTrimmingTestProject)' != 'true'">true</IsTestSupportProject> |
403 | 401 |
|
404 | 402 | <!-- Treat test assemblies as non-shipping (do not publish or sign them). --> |
405 | | - <IsShipping Condition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsPublishedAppTestProject)' == 'true'">false</IsShipping> |
| 403 | + <IsShipping Condition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsTrimmingTestProject)' == 'true'">false</IsShipping> |
406 | 404 | </PropertyGroup> |
407 | 405 |
|
408 | 406 | <PropertyGroup> |
|
413 | 411 | '$(IsReferenceAssemblyProject)' != 'true' and |
414 | 412 | '$(IsGeneratorProject)' != 'true' and |
415 | 413 | '$(IsTestProject)' != 'true' and |
416 | | - '$(IsPublishedAppTestProject)' != 'true' and |
| 414 | + '$(IsTrimmingTestProject)' != 'true' and |
417 | 415 | '$(IsTestSupportProject)' != 'true' and |
418 | 416 | '$(UsingMicrosoftDotNetSharedFrameworkSdk)' != 'true' and |
419 | 417 | '$(MSBuildProjectExtension)' != '.pkgproj' and |
|
464 | 462 | </PropertyGroup> |
465 | 463 |
|
466 | 464 | <!-- Warnings that should be disabled in our test projects. --> |
467 | | - <PropertyGroup Condition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsPublishedAppTestProject)' == 'true'"> |
| 465 | + <PropertyGroup Condition="'$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsTrimmingTestProject)' == 'true'"> |
468 | 466 | <!-- we need to re-enable BinaryFormatter within test projects since some tests exercise these code paths to ensure compat --> |
469 | 467 | <EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization> |
470 | 468 | <!-- don't warn on usage of BinaryFormatter or legacy serialization infrastructure from test projects --> |
|
0 commit comments