Skip to content

Commit ac37470

Browse files
Revert "No need of sqlite-net packages"
This reverts commit 8c8d8f8.
1 parent 8c8d8f8 commit ac37470

File tree

17 files changed

+3838
-1
lines changed

17 files changed

+3838
-1
lines changed

SQLite4Unity3d/SQLite4Unity3d/SQLite4Unity3d.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
<Compile Include="Properties\AssemblyInfo.cs" />
4343
<Compile Include="SQLite.cs" />
4444
</ItemGroup>
45+
<ItemGroup>
46+
<None Include="packages.config" />
47+
</ItemGroup>
4548
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
4649
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
4750
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="sqlite-net" version="1.0.8" targetFramework="net35" />
4+
</packages>

SQLite4Unity3d/SQLite4Unity3dWP8/SQLite4Unity3dWP8.csproj

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.props" Condition="Exists('..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.props')" />
34
<PropertyGroup>
45
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
56
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -18,7 +19,7 @@
1819
<ValidateXaml>true</ValidateXaml>
1920
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
2021
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
21-
<NuGetPackageImportStamp>bd0bec29</NuGetPackageImportStamp>
22+
<NuGetPackageImportStamp>d27bab07</NuGetPackageImportStamp>
2223
</PropertyGroup>
2324
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2425
<DebugSymbols>true</DebugSymbols>
@@ -87,12 +88,28 @@
8788
<Compile Include="Properties\AssemblyInfo.cs" />
8889
<Compile Include="SQLite.cs" />
8990
</ItemGroup>
91+
<ItemGroup>
92+
<None Include="packages.config" />
93+
</ItemGroup>
9094
<ItemGroup>
9195
<Content Include="readme.txt" />
9296
</ItemGroup>
97+
<ItemGroup>
98+
<Reference Include="Sqlite">
99+
<HintPath>..\packages\sqlite-net-wp8.3.8.5\lib\windowsphone8\Sqlite.winmd</HintPath>
100+
</Reference>
101+
</ItemGroup>
93102
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
94103
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
95104
<ProjectExtensions />
105+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
106+
<PropertyGroup>
107+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
108+
</PropertyGroup>
109+
<Error Condition="!Exists('..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.props'))" />
110+
<Error Condition="!Exists('..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.targets'))" />
111+
</Target>
112+
<Import Project="..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.targets" Condition="Exists('..\packages\sqlite-net-wp8.3.8.5\build\windowsphone8\sqlite-net-wp8.targets')" />
96113
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
97114
Other similar extension points exist, see Microsoft.Common.targets.
98115
<Target Name="BeforeBuild">
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="sqlite-net" version="1.0.8" targetFramework="wp80" />
4+
<package id="sqlite-net-wp8" version="3.8.5" targetFramework="wp80" />
5+
</packages>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<repositories>
3+
<repository path="..\SQLite4Unity3d\packages.config" />
4+
<repository path="..\SQLite4Unity3dWP8\packages.config" />
5+
</repositories>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<Target Name="PlatformCheck" BeforeTargets="InjectReference"
5+
Condition=" ( ('$(Platform)' != 'x86') AND ('$(Platform)' != 'ARM') )">
6+
<Error Text="$(MSBuildThisFileName) does not work correctly on '$(Platform)' platform. You need to specify platform (x86 or ARM)." />
7+
</Target>
8+
9+
<Target Name="InjectReference" BeforeTargets="ResolveAssemblyReferences">
10+
11+
<ItemGroup Condition=" '$(Platform)' == 'x86' or '$(Platform)' == 'ARM'">
12+
<Reference Include="Sqlite">
13+
<HintPath>$(MSBuildThisFileDirectory)$(Platform)\Sqlite.winmd</HintPath>
14+
</Reference>
15+
</ItemGroup>
16+
17+
</Target>
18+
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)