@@ -1298,18 +1298,18 @@ Copyright (c) .NET Foundation. All rights reserved.
1298
1298
<_UseAttributeForTargetFrameworkInfoPropertyNames Condition =" $([MSBuild]::VersionGreaterThanOrEquals($(MSBuildVersion), '17.0'))" >true</_UseAttributeForTargetFrameworkInfoPropertyNames >
1299
1299
</PropertyGroup >
1300
1300
1301
- <Target Name =" _CalculateIsVSTest " >
1301
+ <Target Name =" _CalculateIsVSTestTestProject " >
1302
1302
<PropertyGroup >
1303
- <_IsVSTest Condition =" '$(IsTestProject)' == 'true' and '$(IsTestingPlatformApplication)' != 'true'" >true</_IsVSTest >
1304
- <_IsVSTest Condition =" '$(_IsVSTest )' == ''" >false</_IsVSTest >
1303
+ <_IsVSTestTestProject Condition =" '$(IsTestProject)' == 'true' and '$(IsTestingPlatformApplication)' != 'true'" >true</_IsVSTestTestProject >
1304
+ <_IsVSTestTestProject Condition =" '$(_IsVSTestTestProject )' == ''" >false</_IsVSTestTestProject >
1305
1305
1306
1306
<!-- Don't generate an error if an Exe project references a test project. -->
1307
- <ShouldBeValidatedAsExecutableReference Condition =" '$(_IsVSTest )' == 'true'" >false</ShouldBeValidatedAsExecutableReference >
1307
+ <ShouldBeValidatedAsExecutableReference Condition =" '$(_IsVSTestTestProject )' == 'true'" >false</ShouldBeValidatedAsExecutableReference >
1308
1308
1309
1309
<!-- Don't generate an error if a test project references a self-contained Exe. Test projects
1310
1310
use an OutputType of Exe but will usually call APIs in a referenced Exe rather than try
1311
1311
to run it. -->
1312
- <ValidateExecutableReferencesMatchSelfContained Condition =" '$(_IsVSTest )' == 'true' And '$(ValidateExecutableReferencesMatchSelfContained)' == ''" >false</ValidateExecutableReferencesMatchSelfContained >
1312
+ <ValidateExecutableReferencesMatchSelfContained Condition =" '$(_IsVSTestTestProject )' == 'true' And '$(ValidateExecutableReferencesMatchSelfContained)' == ''" >false</ValidateExecutableReferencesMatchSelfContained >
1313
1313
</PropertyGroup >
1314
1314
</Target >
1315
1315
@@ -1324,7 +1324,7 @@ Copyright (c) .NET Foundation. All rights reserved.
1324
1324
</Target >
1325
1325
1326
1326
<Target Name =" ValidateExecutableReferencesCore"
1327
- DependsOnTargets =" _CalculateIsVSTest ;ValidateExecutableReferences"
1327
+ DependsOnTargets =" _CalculateIsVSTestTestProject ;ValidateExecutableReferences"
1328
1328
AfterTargets =" _GetProjectReferenceTargetFrameworkProperties" >
1329
1329
1330
1330
</Target >
0 commit comments