mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Let's be Mono friendly
This is a massive overhaul that replaces System.Data.SQLite with Mono.Data.Sqlite. This should make it more compatible with Linux and Mac and has no known downsides for Windows.
This commit is contained in:
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/Mono.Data.Sqlite.Portable.1.0.3.5.nupkg
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/Mono.Data.Sqlite.Portable.1.0.3.5.nupkg
vendored
Normal file
Binary file not shown.
15
packages/Mono.Data.Sqlite.Portable.1.0.3.5/build/netcore/Mono.Data.Sqlite.Portable.props
vendored
Normal file
15
packages/Mono.Data.Sqlite.Portable.1.0.3.5/build/netcore/Mono.Data.Sqlite.Portable.props
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<!-- Windows Phone 8 properties -->
|
||||
<PropertyGroup>
|
||||
<MonoDataSqlitePortableHardware>netcore</MonoDataSqlitePortableHardware>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- pre-build error checks -->
|
||||
<Target Name="ValidateMonoDataSqlitePreRequisites" BeforeTargets="BeforeBuild">
|
||||
<Error Condition=" '$(Platform)' != 'ARM' and '$(Platform)' != 'x86' "
|
||||
Text="Mono.Data.Sqlite.Portable for Windows Store can only be used in builds that target x86 or ARM." />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
15
packages/Mono.Data.Sqlite.Portable.1.0.3.5/build/wp8/Mono.Data.Sqlite.Portable.props
vendored
Normal file
15
packages/Mono.Data.Sqlite.Portable.1.0.3.5/build/wp8/Mono.Data.Sqlite.Portable.props
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<!-- Windows Phone 8 properties -->
|
||||
<PropertyGroup>
|
||||
<MonoDataSqlitePortableHardware>wp8</MonoDataSqlitePortableHardware>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- pre-build error checks -->
|
||||
<Target Name="ValidateMonoDataSqlitePreRequisites" BeforeTargets="BeforeBuild">
|
||||
<Error Condition=" '$(Platform)' != 'ARM' and '$(Platform)' != 'x86' "
|
||||
Text="Mono.Data.Sqlite.Portable for Windows Phone 8 can only be used in builds that target x86 or ARM." />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoAndroid/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoAndroid/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoAndroid/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoAndroid/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoTouch/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoTouch/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoTouch/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/MonoTouch/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/XamariniOS/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/XamariniOS/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/XamariniOS/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/XamariniOS/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/net4/Mono.Data.Sqlite.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/net4/Mono.Data.Sqlite.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/net4/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/net4/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/net4/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/net4/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/netcore/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/netcore/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/netcore/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/netcore/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/Community.CsharpSqlite.Silverlight.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/Community.CsharpSqlite.Silverlight.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/Mono.Data.Sqlite.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/Mono.Data.Sqlite.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/MonoDataSqliteWrapper.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/MonoDataSqliteWrapper.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/sl5/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/wp8/System.Data.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/wp8/System.Data.Portable.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/wp8/System.Transactions.Portable.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/lib/wp8/System.Transactions.Portable.dll
vendored
Normal file
Binary file not shown.
27
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/Mono.Data.Sqlite.Portable.targets
vendored
Normal file
27
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/Mono.Data.Sqlite.Portable.targets
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<MonoDataSqlitePortableImported>true</MonoDataSqlitePortableImported>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
Currently, if 'MonoDataSqlitePortableHardware' == '', then skip the hardware specific assemblies.
|
||||
This may be required at a later stage for other types of devices or platforms.
|
||||
-->
|
||||
|
||||
<!-- reference paths -->
|
||||
<PropertyGroup Condition="'$(MonoDataSqlitePortableHardware)' != ''">
|
||||
<MonoDataSqlitePortablePath Condition="'$(Platform)' == 'x86'">$(MonoDataSqlitePortableHardware)-x86</MonoDataSqlitePortablePath>
|
||||
<MonoDataSqlitePortablePath Condition="'$(Platform)' == 'ARM'">$(MonoDataSqlitePortableHardware)-arm</MonoDataSqlitePortablePath>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- references -->
|
||||
<ItemGroup Condition="'$(MonoDataSqlitePortablePath)' != ''">
|
||||
<Reference Include="Mono.Data.Sqlite">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>$(MSBuildThisFileDirectory)lib\$(MonoDataSqlitePortablePath)\Mono.Data.Sqlite.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
38
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/install.ps1
vendored
Normal file
38
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/install.ps1
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
# This is the MSBuild targets file to add
|
||||
$targetsFile = [System.IO.Path]::Combine($toolsPath, $package.Id + '.targets')
|
||||
|
||||
# Need to load MSBuild assembly if it's not loaded yet.
|
||||
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
|
||||
|
||||
# Grab the loaded MSBuild project for the project
|
||||
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
|
||||
|
||||
# Make the path to the targets file relative.
|
||||
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
|
||||
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
|
||||
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)
|
||||
|
||||
# Add the import with a condition, to allow the project to load without the targets present.
|
||||
$import = $msbuild.Xml.AddImport($relativePath)
|
||||
$import.Condition = "Exists('$relativePath')"
|
||||
|
||||
# Add a target to fail the build when our targets are not imported
|
||||
$target = $msbuild.Xml.AddTarget("EnsureMonoDataSqlitePortableImported")
|
||||
$target.BeforeTargets = "BeforeBuild"
|
||||
$target.Condition = "'`$(MonoDataSqlitePortableImported)' == ''"
|
||||
|
||||
# if the targets don't exist at the time the target runs, package restore didn't run
|
||||
$errorTask = $target.AddTask("Error")
|
||||
$errorTask.Condition = "!Exists('$relativePath')"
|
||||
$errorTask.SetParameter("Text", "This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.");
|
||||
|
||||
# if the targets exist at the time the target runs, package restore ran but the build didn't import the targets.
|
||||
$errorTask = $target.AddTask("Error")
|
||||
$errorTask.Condition = "Exists('$relativePath')"
|
||||
$errorTask.SetParameter("Text", "The build restored NuGet packages. Build the project again to include these packages in the build.");
|
||||
|
||||
$project.Save()
|
||||
|
||||
Write-Host "Successfully updated the project file."
|
||||
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/Mono.Data.Sqlite.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/Mono.Data.Sqlite.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/MonoDataSqliteWrapper.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/MonoDataSqliteWrapper.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/MonoDataSqliteWrapper.lib
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/MonoDataSqliteWrapper.lib
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/MonoDataSqliteWrapper.winmd
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-arm/MonoDataSqliteWrapper.winmd
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/Mono.Data.Sqlite.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/Mono.Data.Sqlite.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/MonoDataSqliteWrapper.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/MonoDataSqliteWrapper.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/MonoDataSqliteWrapper.lib
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/MonoDataSqliteWrapper.lib
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/MonoDataSqliteWrapper.winmd
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/netcore-x86/MonoDataSqliteWrapper.winmd
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/Mono.Data.Sqlite.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/Mono.Data.Sqlite.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/MonoDataSqliteWrapper.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/MonoDataSqliteWrapper.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/MonoDataSqliteWrapper.lib
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/MonoDataSqliteWrapper.lib
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/MonoDataSqliteWrapper.winmd
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-arm/MonoDataSqliteWrapper.winmd
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/Mono.Data.Sqlite.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/Mono.Data.Sqlite.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/MonoDataSqliteWrapper.dll
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/MonoDataSqliteWrapper.dll
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/MonoDataSqliteWrapper.lib
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/MonoDataSqliteWrapper.lib
vendored
Normal file
Binary file not shown.
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/MonoDataSqliteWrapper.winmd
vendored
Normal file
BIN
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/lib/wp8-x86/MonoDataSqliteWrapper.winmd
vendored
Normal file
Binary file not shown.
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore45/install.ps1
vendored
Normal file
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore45/install.ps1
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
# Add the SQLite SDK reference
|
||||
$sqliteReference = $project.Object.References.AddSDK("SQLite for Windows Runtime", "SQLite.WinRT, version=3.8.7.4")
|
||||
Write-Host "Successfully added a reference to the extension SDK SQLite for Windows Runtime."
|
||||
Write-Host "Please, verify that the extension SDK SQLite for Windows Runtime v3.8.7.4, from the SQLite.org site (http://www.sqlite.org/2014/sqlite-winrt-3080704.vsix), has been properly installed."
|
||||
|
||||
# This is the global install file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../install.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
|
||||
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore45/uninstall.ps1
vendored
Normal file
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore45/uninstall.ps1
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$sqliteReference = $project.Object.References.Find("SQLite.WinRT, version=3.8.7.4")
|
||||
|
||||
if ($sqliteReference -eq $null) {
|
||||
Write-Host "Unable to find a reference to the extension SDK SQLite for Windows Runtime."
|
||||
Write-Host "Verify that the reference to the extension SDK SQLite for Windows Runtime has already been removed."
|
||||
} else {
|
||||
$sqliteReference.Remove()
|
||||
Write-Host "Successfully removed the reference to the extension SDK SQLite for Windows Runtime."
|
||||
}
|
||||
|
||||
# This is the global uninstall file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../uninstall.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore451/install.ps1
vendored
Normal file
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore451/install.ps1
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
# Add the SQLite SDK reference
|
||||
$sqliteReference = $project.Object.References.AddSDK("SQLite for Windows Runtime (Windows 8.1)", "SQLite.WinRT81, version=3.8.7.4")
|
||||
Write-Host "Successfully added a reference to the extension SDK SQLite for Windows Runtime (Windows 8.1)."
|
||||
Write-Host "Please, verify that the extension SDK SQLite for Windows Runtime (Windows 8.1) v3.8.7.4, from the SQLite.org site (http://www.sqlite.org/2014/sqlite-winrt81-3080704.vsix), has been properly installed."
|
||||
|
||||
# This is the global install file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../install.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
|
||||
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore451/uninstall.ps1
vendored
Normal file
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/netcore451/uninstall.ps1
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$sqliteReference = $project.Object.References.Find("SQLite.WinRT81, version=3.8.7.4")
|
||||
|
||||
if ($sqliteReference -eq $null) {
|
||||
Write-Host "Unable to find a reference to the extension SDK SQLite for Windows Runtime (Windows 8.1)."
|
||||
Write-Host "Verify that the reference to the extension SDK SQLite for Windows Runtime (Windows 8.1) has already been removed."
|
||||
} else {
|
||||
$sqliteReference.Remove()
|
||||
Write-Host "Successfully removed the reference to the extension SDK SQLite for Windows Runtime (Windows 8.1)."
|
||||
}
|
||||
|
||||
# This is the global uninstall file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../uninstall.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
25
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/uninstall.ps1
vendored
Normal file
25
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/uninstall.ps1
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
# Need to load MSBuild assembly if it's not loaded yet.
|
||||
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
|
||||
|
||||
# Grab the loaded MSBuild project for the project
|
||||
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
|
||||
|
||||
# Find all the imports and targets added by this package.
|
||||
$itemsToRemove = @()
|
||||
|
||||
# Allow many in case a past package was incorrectly uninstalled
|
||||
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }
|
||||
$itemsToRemove += $msbuild.Xml.Targets | Where-Object { $_.Name -eq "EnsureMonoDataSqlitePortableImported" }
|
||||
|
||||
# Remove the elements and save the project
|
||||
if ($itemsToRemove -and $itemsToRemove.length)
|
||||
{
|
||||
foreach ($itemToRemove in $itemsToRemove)
|
||||
{
|
||||
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
|
||||
}
|
||||
$project.Save()
|
||||
}
|
||||
|
||||
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/install.ps1
vendored
Normal file
13
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/install.ps1
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
# Add the SQLite SDK reference
|
||||
$sqliteReference = $project.Object.References.AddSDK("SQLite for Windows Phone", "SQLite.WP80, version=3.8.7.4")
|
||||
Write-Host "Successfully added a reference to the extension SDK SQLite for Windows Phone."
|
||||
Write-Host "Please, verify that the extension SDK SQLite for Windows Phone v3.8.7.4, from the SQLite.org site (http://www.sqlite.org/2014/sqlite-wp80-winrt-3080707.vsix), has been properly installed."
|
||||
|
||||
# This is the global install file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../install.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
|
||||
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/uninstall.ps1
vendored
Normal file
17
packages/Mono.Data.Sqlite.Portable.1.0.3.5/tools/wp8/uninstall.ps1
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$sqliteReference = $project.Object.References.Find("SQLite.WP80, version=3.8.7.4")
|
||||
|
||||
if ($sqliteReference -eq $null) {
|
||||
Write-Host "Unable to find a reference to the extension SDK SQLite for Windows Phone."
|
||||
Write-Host "Verify that the reference to the extension SDK SQLite for Windows Phone has already been removed."
|
||||
} else {
|
||||
$sqliteReference.Remove()
|
||||
Write-Host "Successfully removed the reference to the extension SDK SQLite for Windows Phone."
|
||||
}
|
||||
|
||||
# This is the global uninstall file
|
||||
$rootInstall = [System.IO.Path]::Combine($toolsPath, '../uninstall.ps1')
|
||||
$rootToolsPath = [System.IO.Path]::Combine($toolsPath, '../')
|
||||
Write-Host $rootInstall
|
||||
. $rootInstall -installPath $installPath -toolsPath $rootToolsPath -package $package -project $project
|
||||
Reference in New Issue
Block a user