C# winfrom 打包安装后,报错Mixed mode assembly is built against version 'v2.0.50727' of
请教下: 我在工程中,引入了System.Data.SQLite.dll,也会提示“ Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.”
后来配置了App.config 后,运行正常。
现在我要打包(我只把System.Data.SQLite.dll打包)安装后,提示“示“ Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.””
请问,打包工程中怎么添加配置信息?
Alternatively, as of version 1.0.91.0, all configuration settings can be specified via an optional XML configuration file. Using the XML configuration file when the primary System.Data.SQLite assembly ("System.Data.SQLite.dll") is being executed from the Global Assembly Cache is unsupported.
For each configuration setting, the associated environment variable value, if present, will override the value specified via the XML configuration file.
For the full .NET Framework, the XML configuration file must be named "System.Data.SQLite.dll.config" and it must be present in the base directory for the application domain or the directory containing the primary System.Data.SQLite assembly as reported by its location property; otherwise, it will be ignored.
For the .NET Compact Framework, the XML configuration file must be named "System.Data.SQLite.dll.config" and it must be present in the directory containing the primary System.Data.SQLite assembly; otherwise, it will be ignored.
Deployment Guidelines
这个官网上的。
后来配置了App.config 后,运行正常。
现在我要打包(我只把System.Data.SQLite.dll打包)安装后,提示“示“ Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.””
请问,打包工程中怎么添加配置信息?
Alternatively, as of version 1.0.91.0, all configuration settings can be specified via an optional XML configuration file. Using the XML configuration file when the primary System.Data.SQLite assembly ("System.Data.SQLite.dll") is being executed from the Global Assembly Cache is unsupported.
For each configuration setting, the associated environment variable value, if present, will override the value specified via the XML configuration file.
For the full .NET Framework, the XML configuration file must be named "System.Data.SQLite.dll.config" and it must be present in the base directory for the application domain or the directory containing the primary System.Data.SQLite assembly as reported by its location property; otherwise, it will be ignored.
For the .NET Compact Framework, the XML configuration file must be named "System.Data.SQLite.dll.config" and it must be present in the directory containing the primary System.Data.SQLite assembly; otherwise, it will be ignored.
Deployment Guidelines
这个官网上的。
...全文
相关推荐
c# Winfrom圆形窗体,panel圆角,Winfrom圆角
本程序三个Winfrom,分别是Winfrom圆形窗体,panel圆角,Winfrom圆角
C# 打包winfrom 程序
C# 打包winfrom 程序C# 打包winfrom 程序
C# Winfrom的Redis使用Demo
C# Winfrom的Redis使用Demo,基本操作都有,适合初学者参考
[C#]FLASH屏保-百变熊猫 winfrom
[C#]FLASH屏保-百变熊猫 winfrom
C#利用VS中插件打包并发布winfrom程序
本文为大家分享了C#利用VS中插件打包并发布winfrom程序,供大家参考,具体内容如下 1.先在VS 的扩展更新中搜索此插件【2015 installer Projects】,点击下载,安装需要关闭VS 2.安装完毕之后新建项目 3.选择“application folder”项,然后在右边的空白区域右击,选择Add,如下图 4.选择需要打包发布的exe文件 这里会自动带出相关联的dll文件,如图: 5.选中程序主入口也就是exe后缀的文件右键添加快捷方式,这里需要添加两个快捷方式,重命名,分别剪切到User’s Desktop 和User’s Programs Menu 中 也


