nuget 安装Sqlite $(BuildTaskAssembly) 计算结果无效

.Net技术 码拜 9年前 (2015-11-27) 3313次浏览 0个评论

使用nuget安装System.Data.Sqlite,安装即将结束时,提示错误:元素<UsingTask> AssemblyName”特性的值“$(BuildTaskAssembly)”的计算结果无效.

重现步骤为: 使用 VS2012 ultimate 版(版本工作很良好) ,创建一个类库项目——右键引用——管理nuget 包。使用nuget包管理器, 安装System.Data.Sqlite ( 10.21.2015 最新版本).

当安装即将结束时提示错误,详细如下:

nuget 安装Sqlite $(BuildTaskAssembly) 计算结果无效

Attempting to resolve dependency 'System.Data.SQLite.Core (≥ 1.0.98.1)'.
Attempting to resolve dependency 'System.Data.SQLite.Linq (≥ 1.0.98.1)'.
Attempting to resolve dependency 'System.Data.SQLite.EF6 (≥ 1.0.98.1)'.
Attempting to resolve dependency 'EntityFramework (≥ 6.0.0.0)'.
Installing 'System.Data.SQLite.Core 1.0.98.1'.
Successfully installed 'System.Data.SQLite.Core 1.0.98.1'.
Installing 'System.Data.SQLite.Linq 1.0.98.1'.
Successfully installed 'System.Data.SQLite.Linq 1.0.98.1'.
Installing 'EntityFramework 6.0.0'.
Successfully installed 'EntityFramework 6.0.0'.
Executing script file 'C:\Users\Thomas\Desktop\Active Projects\Contest\packages\EntityFramework.6.0.0\tools\init.ps1'.
Installing 'System.Data.SQLite.EF6 1.0.98.1'.
Successfully installed 'System.Data.SQLite.EF6 1.0.98.1'.
Installing 'System.Data.SQLite 1.0.98.1'.
Successfully installed 'System.Data.SQLite 1.0.98.1'.
Adding 'System.Data.SQLite.Core 1.0.98.1' to Contest.
Uninstalling 'System.Data.SQLite.Core 1.0.98.1'.
Successfully uninstalled 'System.Data.SQLite.Core 1.0.98.1'.
Install failed. Rolling back...
The result "" of evaluating the value "$(BuildTaskAssembly)" of the "AssemblyName" attribute in element <UsingTask> is not valid.  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets codebye.com 原创

网上搜索后,并没有找到解决方案,stackoverflow上找到一个相关问题,遗憾的是还没有人回答。。

不过最终安装成功了,安装失败就重新再安装,没有找到原因,大概功夫不负有心人,醉了。。


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明nuget 安装Sqlite $(BuildTaskAssembly) 计算结果无效
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!