summaryrefslogtreecommitdiff
path: root/dir.props
diff options
context:
space:
mode:
Diffstat (limited to 'dir.props')
-rw-r--r--dir.props5
1 files changed, 3 insertions, 2 deletions
diff --git a/dir.props b/dir.props
index aaa0285875..cf1eb96b5a 100644
--- a/dir.props
+++ b/dir.props
@@ -64,8 +64,9 @@
<!-- This name is used to create a GIT repository URL https://github.com/dotnet/$(GitHubRepositoryName) used to find source code for debugging -->
<GitHubRepositoryName Condition="'$(GitHubRepositoryName)' == ''">coreclr</GitHubRepositoryName>
- <PackagesDir>$(__PackagesDir)\</PackagesDir>
- <PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)packages\</PackagesDir>
+ <PackagesDir>$(DotNetRestorePackagesPath)</PackagesDir>
+ <PackagesDir Condition="'$(PackagesDir)'=='' and '$(__PackagesDir)'!=''">$(__PackagesDir)\</PackagesDir>
+ <PackagesDir Condition="'$(PackagesDir)'==''">$(ProjectDir)packages\</PackagesDir>
<RootBinDir>$(__RootBinDir)\</RootBinDir>
<RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)bin\</RootBinDir>