2016-01-23 20:55:03 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#
|
|
|
|
|
2016-02-05 04:09:41 +00:00
|
|
|
$env:NUGET_PACKAGES = (Join-Path $env:USERPROFILE ".nuget\packages")
|
2016-01-23 20:55:03 +00:00
|
|
|
$env:DOTNET_PACKAGES = $env:NUGET_PACKAGES
|
|
|
|
$env:DNX_PACKAGES = $env:NUGET_PACKAGES
|
|
|
|
if(!(Test-Path $env:NUGET_PACKAGES)) {
|
|
|
|
mkdir $env:NUGET_PACKAGES | Out-Null
|
2016-02-05 04:09:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# default the package cache expiration to 1 week, in hours
|
|
|
|
setEnvIfDefault "NUGET_PACKAGES_CACHE_TIME_LIMIT" (7 * 24)
|