CodeSimth - .Net Framework Data Provider 可能没有安装。解决方法[转载 ]
2016-05-13 09:18
471 查看
原文:http://www.cnblogs.com/chenrui7/p/3592082.html
今天想使用CodeSimth生成一个sqlite数据库的模板。当添加添加数据库的时候发现:
.Net Framework Data Provider 可能没有安装。
下面找到官方的文档说明:
The System.Data.SQLite hasn't been installed on your machine.
The System.Data.SQLite hasn't been properly configured.
CodeSmith Generator is compiled as AnyCPU. This means that Generator will run as a 64bit process when you launch Generator outside of Visual Studio. If you are generating from within Visual Studio (32bit process), then CodeSmith Generator libraries will run as a 32bit process.
Icon
If you are running a 64bit version of windows, please install both the 32bit and 64bit versions.
Icon
You can skip the following configuration steps if you install the legacy version of System.Data.SQLite here. The older version configures itself by adding entries into your machine.config.
The .NET Framework 4.0 machine.config's can be found here:
%windir%\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
%windir%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
Next, you will need to copy the 64bit or 32bit SQLite assemblies that were installed via the System.Data.SQLite installer to CodeSmith Generators bin folder. This bin folder can be found in the location that you installed CodeSmith Generator to.
看不懂的话,按照下面的方法做:
1、下载System.Data.SQLite驱动;注意:根据自己的CPU选择是32位还是64位的驱动。建议选择4.0平台以上的。我的是:sqlite-netFx40-setup-bundle-x64-2010-1.0.91.0.exe ;
2、安装完成后打开C:\Program Files\System.Data.SQLite\2010\GAC把里面的两个dll复制到CodeSimth安装目录下的bin文件夹;
3、配置
根据自己的CPU平台打开下面路径,【可能需要修改一下文件写入的安全性,设置为Everyone就可以了,否则保存不了】
%windir%\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
%windir%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config (我选择的是这个)
找到
4、重启CodeSimth就可以了。
今天想使用CodeSimth生成一个sqlite数据库的模板。当添加添加数据库的时候发现:
.Net Framework Data Provider 可能没有安装。
下面找到官方的文档说明:
SQLite Schema Provider
If you are trying to use the SQLite Schema Provider you may encounter the error message: 'The System.Data.SQLite library is not installed on this computer'. This error can occur for two reasons:The System.Data.SQLite hasn't been installed on your machine.
The System.Data.SQLite hasn't been properly configured.
Installing System.Data.SQLite
IconCodeSmith Generator is compiled as AnyCPU. This means that Generator will run as a 64bit process when you launch Generator outside of Visual Studio. If you are generating from within Visual Studio (32bit process), then CodeSmith Generator libraries will run as a 32bit process.
This is very important to understand as it determines which Schema Provider dependencies are resolved at run-time.
The first step is to ensure that you download and install the latest .NET Framework 4.0 version of System.Data.SQLite.Icon
If you are running a 64bit version of windows, please install both the 32bit and 64bit versions.
Icon
You can skip the following configuration steps if you install the legacy version of System.Data.SQLite here. The older version configures itself by adding entries into your machine.config.
Configuring System.Data.SQLite
The SQLite Schema Provider doesn't require a specific version of the SQLite managed libraries. This is because it uses DbProviderFactories when interacting with SQLite. One must update all .NET Framework 4.0 machine.config's and add the SQLite provider to the DbProviderFactories element:%windir%\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
%windir%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
Next, you will need to copy the 64bit or 32bit SQLite assemblies that were installed via the System.Data.SQLite installer to CodeSmith Generators bin folder. This bin folder can be found in the location that you installed CodeSmith Generator to.
看不懂的话,按照下面的方法做:
1、下载System.Data.SQLite驱动;注意:根据自己的CPU选择是32位还是64位的驱动。建议选择4.0平台以上的。我的是:sqlite-netFx40-setup-bundle-x64-2010-1.0.91.0.exe ;
2、安装完成后打开C:\Program Files\System.Data.SQLite\2010\GAC把里面的两个dll复制到CodeSimth安装目录下的bin文件夹;
3、配置
根据自己的CPU平台打开下面路径,【可能需要修改一下文件写入的安全性,设置为Everyone就可以了,否则保存不了】
%windir%\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
%windir%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config (我选择的是这个)
找到
<
system.data
>节点添加下面的内容。
相关文章推荐
- C strcat
- 通配符证书导致 Outlook Anywhere 的客户端连接问题
- 在MyEclipse下创建Java Web项目 入门(图文并茂)经典教程
- 编程之美 - 满足条件的两个数字及扩展问题
- 图像优化---平方根计算优化
- Android中XLIFF的使用
- 通配符证书导致 Outlook Anywhere 的客户端连接问题
- ZC_float_测试
- 实验三进程调度模拟程序
- RHCE进阶之公司环境搭建yum源
- linux获取本机IP地址
- 欢迎使用CSDN-markdown编辑器
- struct在c与c++里的区别
- (DT系列一)DTS结构及其编译方法
- 在没有root的手机上直接查看sqlite数据库内容
- 基于框架的图书管理系统开发的质量属性
- 51nod 1065 最小正子段和(最小正字段和)
- redis五种类型方式
- 利用CSS使footer固定在页面底部的实例代码
- Android TextUtils类介绍