diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets index abcd7ba3dbcd..ba3268a3e418 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets @@ -93,9 +93,10 @@ Copyright (c) .NET Foundation. All rights reserved. Finally, library projects and non-executable projects have awkward interactions here so they are excluded.--> + <_IsVSTestOnlyTestProject Condition="'$(IsTestProject)' == 'true' AND '$(IsTestingPlatformApplication)' != 'true'">true $(USERPROFILE) <_DefaultUserProfileRuntimeStorePath>$([System.IO.Path]::Combine($(_DefaultUserProfileRuntimeStorePath), '.dotnet', 'store')) $(_DefaultUserProfileRuntimeStorePath) + <_IsVSTestOnlyTestProject Condition="'$(IsTestProject)' == 'true' AND '$(IsTestingPlatformApplication)' != 'true'">true @@ -114,7 +115,7 @@ Copyright (c) .NET Foundation. All rights reserved. - false true @@ -1355,14 +1356,14 @@ Copyright (c) .NET Foundation. All rights reserved. false - + false - + false