程序集引用编译时错误 [英] Assembly reference compile time error

查看:121
本文介绍了程序集引用编译时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



真的我完全被骗了。



我安装 Unity .WebApi 并开始出现以下两个错误。



1. Unity.WebApi使用版本5.0.0.0的System.Web.Http并使用了程序集参考版本4.0.0.0。

2. Unity.WebApi使用版本4.0.0.0的MIcrosoft.Practices.Unity和使用的程序集具有参考版本2.东西。



伙计们请帮忙,因为你是我最后的希望。



我试过以下。



1.重新安装Unity.WebApi,Unity,WebApi2核心

2.更新全部打包。

3.以上两点都使用nuget GUI和nuget console。



很高兴请帮助解决一些有用的解决方案。

解决方案

因为你的调用程序集是为.NET构建的版本xy,它不能引用为以后的版本构建的程序集 - 作为requ ired .NET版本检查当您的应用程序启动时会启动错误的版本。



检查您的项目属性,并查找ASP.NET Core 5.0

Hi Guys,

Really I am completely headbanged.

I installed Unity.WebApi and started getting following two error.

1. Unity.WebApi uses System.Web.Http with version 5.0.0.0 and used assembly has refrence version 4.0.0.0.
2. Unity.WebApi uses MIcrosoft.Practices.Unity with version 4.0.0.0 and used assembly has refrence version 2. something.

Guys please help as you are my last hope.

I tried following.

1. Reinstalled Unity.WebApi, Unity, WebApi2 core
2. Updated all packaged.
3. Did above both point using nuget GUI as well as nuget console.

pleased please please help with some working solution.

解决方案

Because your calling assembly is built for .NET version x.y, it can't reference assemblies that are built for later versions - as the "required .NET version checking" when your app is started would start the wrong version.

Check your project properties, and look for "ASP.NET Core 5.0"


这篇关于程序集引用编译时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆