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..26d1a139e02f 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,11 @@ 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 +116,7 @@ Copyright (c) .NET Foundation. All rights reserved. - false true @@ -1355,14 +1357,14 @@ Copyright (c) .NET Foundation. All rights reserved. false - + false - + false