Просмотр исходного кода

Updated SQLite to Nuget version

Brett Credo лет назад: 8
Родитель
Сommit
fb5e706f0b

+ 26 - 5
BulkPrinting/BulkPrinting/App.config

1
-<?xml version="1.0" encoding="utf-8"?>
1
+<?xml version="1.0" encoding="utf-8"?>
2
 <configuration>
2
 <configuration>
3
-    <startup> 
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5
-    </startup>
6
-</configuration>
3
+  <configSections>
4
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
5
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6
+  </configSections>
7
+  <startup>
8
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
9
+  </startup>
10
+  <entityFramework>
11
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
12
+      <parameters>
13
+        <parameter value="v13.0" />
14
+      </parameters>
15
+    </defaultConnectionFactory>
16
+    <providers>
17
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
18
+      <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
19
+    </providers>
20
+  </entityFramework>
21
+  <system.data>
22
+    <DbProviderFactories>
23
+      <remove invariant="System.Data.SQLite.EF6" />
24
+      <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
25
+    <remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
26
+  </system.data>
27
+</configuration>

+ 24 - 2
BulkPrinting/BulkPrinting/BulkPrinting.csproj

32
     <CreateDesktopShortcut>true</CreateDesktopShortcut>
32
     <CreateDesktopShortcut>true</CreateDesktopShortcut>
33
     <PublishWizardCompleted>true</PublishWizardCompleted>
33
     <PublishWizardCompleted>true</PublishWizardCompleted>
34
     <BootstrapperEnabled>true</BootstrapperEnabled>
34
     <BootstrapperEnabled>true</BootstrapperEnabled>
35
+    <NuGetPackageImportStamp>
36
+    </NuGetPackageImportStamp>
35
   </PropertyGroup>
37
   </PropertyGroup>
36
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
38
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
37
     <PlatformTarget>AnyCPU</PlatformTarget>
39
     <PlatformTarget>AnyCPU</PlatformTarget>
110
     <SignManifests>true</SignManifests>
112
     <SignManifests>true</SignManifests>
111
   </PropertyGroup>
113
   </PropertyGroup>
112
   <ItemGroup>
114
   <ItemGroup>
115
+    <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
116
+      <HintPath>..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.dll</HintPath>
117
+    </Reference>
118
+    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
119
+      <HintPath>..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
120
+    </Reference>
113
     <Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
121
     <Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
114
       <HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
122
       <HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
115
     </Reference>
123
     </Reference>
116
     <Reference Include="System" />
124
     <Reference Include="System" />
125
+    <Reference Include="System.ComponentModel.DataAnnotations" />
117
     <Reference Include="System.Core" />
126
     <Reference Include="System.Core" />
118
-    <Reference Include="System.Data.SQLite">
119
-      <HintPath>C:\Program Files (x86)\System.Data.SQLite\2015\bin\System.Data.SQLite.dll</HintPath>
127
+    <Reference Include="System.Data.SQLite, Version=1.0.106.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
128
+      <HintPath>..\packages\System.Data.SQLite.Core.1.0.106.0\lib\net46\System.Data.SQLite.dll</HintPath>
129
+    </Reference>
130
+    <Reference Include="System.Data.SQLite.EF6, Version=1.0.106.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
131
+      <HintPath>..\packages\System.Data.SQLite.EF6.1.0.106.0\lib\net46\System.Data.SQLite.EF6.dll</HintPath>
132
+    </Reference>
133
+    <Reference Include="System.Data.SQLite.Linq, Version=1.0.106.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
134
+      <HintPath>..\packages\System.Data.SQLite.Linq.1.0.106.0\lib\net46\System.Data.SQLite.Linq.dll</HintPath>
120
     </Reference>
135
     </Reference>
121
     <Reference Include="System.Management" />
136
     <Reference Include="System.Management" />
122
     <Reference Include="System.Xml.Linq" />
137
     <Reference Include="System.Xml.Linq" />
329
     </Content>
344
     </Content>
330
   </ItemGroup>
345
   </ItemGroup>
331
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
346
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
347
+  <Import Project="..\packages\System.Data.SQLite.Core.1.0.106.0\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.106.0\build\net46\System.Data.SQLite.Core.targets')" />
348
+  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
349
+    <PropertyGroup>
350
+      <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
351
+    </PropertyGroup>
352
+    <Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.106.0\build\net46\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.106.0\build\net46\System.Data.SQLite.Core.targets'))" />
353
+  </Target>
332
 </Project>
354
 </Project>

+ 5 - 0
BulkPrinting/BulkPrinting/packages.config

1
 <?xml version="1.0" encoding="utf-8"?>
1
 <?xml version="1.0" encoding="utf-8"?>
2
 <packages>
2
 <packages>
3
+  <package id="EntityFramework" version="6.0.0" targetFramework="net461" />
3
   <package id="Newtonsoft.Json" version="10.0.3" targetFramework="net461" />
4
   <package id="Newtonsoft.Json" version="10.0.3" targetFramework="net461" />
5
+  <package id="System.Data.SQLite" version="1.0.106.0" targetFramework="net461" />
6
+  <package id="System.Data.SQLite.Core" version="1.0.106.0" targetFramework="net461" />
7
+  <package id="System.Data.SQLite.EF6" version="1.0.106.0" targetFramework="net461" />
8
+  <package id="System.Data.SQLite.Linq" version="1.0.106.0" targetFramework="net461" />
4
   <package id="System.ValueTuple" version="4.3.1" targetFramework="net461" />
9
   <package id="System.ValueTuple" version="4.3.1" targetFramework="net461" />
5
 </packages>
10
 </packages>