asp.net – 对框架程序集“System.Runtime,Version = 4.0.10.0”
发布时间:2020-12-16 04:08:40 所属栏目:asp.Net 来源:网络整理
导读:TFS 2013 – Build:ASP.Net 4.5.1网站我收到此错误: warning MSB3268: The primary reference "C:Builds2MyProjWeb1_MainbinMyProj1.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime,
TFS 2013 – Build:ASP.Net 4.5.1网站我收到此错误:
warning MSB3268: The primary reference "C:Builds2MyProjWeb1_MainbinMyProj1.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime,Version=4.0.10.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.5.1". To resolve this problem,either remove the reference "C:Builds2MyProjWeb1_MainbinMyProj1.dll" or retarget your application to a framework version which contains "System.Runtime,PublicKeyToken=b03f5f7f11d50a3a". 最初使用Unity 1.0.0.0的所有项目和站点都是4.0.我将其升级到4.5.2.此外,上述错误中的MyProj1引用了Unity,我也将其升级到3.5.1. 阅读:https://unity.codeplex.com/workitem/12756 所以我降级到4.5.1,但仍然得到了错误. >解决方案通过Visual Studio 2013在本地构建良好. 有任何想法吗? 升级时是否需要除TragetFramework settign之外的任何web.config更改? 解决方法
其实对不起我不认为“assemblyBinding”会有所帮助.
它似乎是一个 known bug.它还没有得到解决.使用Unity 3.5,您可以使用.NET 4.5.1而不是4.5.2. 因此,一种选择是重新定位到.NET 4.5.1并查看问题是否消失,如果这是一个选项. 附: (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- 开源音乐下载神器XMusicDownloader更新,支持歌单
- asp.net-mvc – 确保视图存在
- asp.net – App.Config和Web.Config之间的区别?
- ASP.NET FileUpload
- asp.net-mvc – 在ASP.NET MVC中执行原始SQL查询
- ASP.NET MVC 3中DropDownListFor的不显眼验证问题
- ASP.NET实现Hadoop增删改查的示例代码
- ASP.NET Core macOS 环境配置 - ASP.NET Core 基
- asp.net – 使用Page.Render覆盖后缓存替换
- .net – FileLoadException:无法加载文件或程序
热点阅读