我的项目可以参考的装配瞄准.NET Framework的较低版本? [英] Can my project reference an assembly targeting a lower version of .net framework?

查看:140
本文介绍了我的项目可以参考的装配瞄准.NET Framework的较低版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我心中已经没有太长对.NET platform.less比2个月。
我在这个无法从装配等等加载类型blah.blah.blah。

I'v not been too long on the .net platform.less than 2months. I'm having this "could not load type blah.blah.blah from assembly blah.

所以,我心中已经得到了很多资源,包括差异后here.Still没有运气的建议决胜负。但最近的建议似乎表明,一些参考的可能是针对.NET的较低版本。
其实有很多很多的引用针对不同的版本,并在一些this引用有一些可能的目标差异的版本更多的依赖程序集。

So i'v been battling it with several resources including the suggestions in diff post here.Still no luck. but the closest suggestion seems to indicate that some of references might be targeting a lower version of .net. Actually there are many many references targeting different versions and within some of this references there are many more dependent assemblies that possibly are targeting diff versions.

我心中已经在努力将一些程序集,我有使用VS 2010(.NET 4.0),整个东西几乎压倒了我的来源。

i'v been struggling to convert some of the assemblies i have the source using VS 2010(.net 4.0) and the whole stuff is almost overwhelming me.

,所以我要问的无奈:我必须引用程序集(和它们的依赖)和我的项目目标相同版本的

And so i'm asking in frustration: MUST MY REFERENCE ASSEMBLIES(and their dependencies) AND MY PROJECT TARGET the same version?

推荐答案

只要库针对一个版本是< = 的版本的code希望,那是好的。注意,当然,任何行为的变化可能导致微妙的错误,但这是罕见的 - 从根本上它应该工作确定

As long as the libraries target a version that is <= the version your code wants, then that is fine. Note, of course, that any behavior changes could cause subtle bugs, but this is rare - fundamentally it should work ok.

如果库一个目标的的版本:糟糕的事情

If the libraries target a higher version: bad things.

我怀疑有关特定更多上下文无法从装配等等加载类型blah.blah.blah。将是有益的。

I suspect more context about the specific "could not load type blah.blah.blah from assembly blah." would be useful.

这篇关于我的项目可以参考的装配瞄准.NET Framework的较低版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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