comparison packages/System.Data.SQLite.1.0.90.0/tools/install.ps1 @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
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 }