forked from microsoft/cpprestsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.ps1
More file actions
23 lines (20 loc) · 880 Bytes
/
init.ps1
File metadata and controls
23 lines (20 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
param($installPath, $toolsPath, $package)
function Copy-Natvis($DestFolder)
{
if ((Test-Path $DestFolder) -eq $True)
{
# Update casablanca version for each release here.
$DestFile = Join-Path -path $DestFolder -childpath "cpprest2_8.natvis";
# Check to see if cpp rest natvis file for this version already exists
# if not, then copy into user profile for Visual Studio to pick up
if ((Test-Path $DestFile) -eq $False)
{
$SrcFile = Join-Path -path $toolsPath -childpath "cpprest.natvis";
Copy-Item $SrcFile $DestFile;
}
}
}
$VS2013Folder = Join-Path -path $env:userprofile -childpath "Documents\Visual Studio 2013\Visualizers";
$VS2015Folder = Join-Path -path $env:userprofile -childpath "Documents\Visual Studio 2015\Visualizers";
Copy-Natvis $VS2013Folder;
Copy-Natvis $VS2015Folder;