0
|
1 ###############################################################################
|
|
2 #
|
|
3 # install.ps1 --
|
|
4 #
|
|
5 # Written by Joe Mistachkin.
|
|
6 # Released to the public domain, use at your own risk!
|
|
7 #
|
|
8 ###############################################################################
|
|
9
|
|
10 param($installPath, $toolsPath, $package, $project)
|
|
11
|
|
12 $platformNames = "x86", "x64"
|
|
13 $fileName = "SQLite.Interop.dll"
|
|
14 $propertyName = "CopyToOutputDirectory"
|
|
15
|
|
16 foreach($platformName in $platformNames) {
|
|
17 $folder = $project.ProjectItems.Item($platformName)
|
|
18
|
|
19 if ($folder -eq $null) {
|
|
20 continue
|
|
21 }
|
|
22
|
|
23 $item = $folder.ProjectItems.Item($fileName)
|
|
24
|
|
25 if ($item -eq $null) {
|
|
26 continue
|
|
27 }
|
|
28
|
|
29 $property = $item.Properties.Item($propertyName)
|
|
30
|
|
31 if ($property -eq $null) {
|
|
32 continue
|
|
33 }
|
|
34
|
|
35 $property.Value = 1
|
|
36 }
|