简体   繁体   English

从.NET 3.5项目中引用时,作为.NET 3.5构建的clr DLL“需要更高版本”。

[英]clr DLL built as .NET 3.5 “requires later version” when referenced from a .NET 3.5 project.

I built the dll using Visual Studio 2008 for .NET 3.5 targeted framework. 我使用Visual Studio 2008 for .NET 3.5目标框架构建了dll。

Loading it into a .NET project built in 3.5 gives the error 将其加载到内置3.5的.NET项目中会出现错误

"OpenGLControl.dll", or one of its dependencies, requires a later version of the .NET Framework.... etc.

The dll shows a 'runtime version' of v2.0.50727. 该dll显示v2.0.50727的“运行时版本”。

Anyone experienced something similar? 任何人都经历过类似的事情吗? Any solutions? 有什么办法吗?

According to this site: that should be acceptable for a .NET 3.5 build. 根据本网站的说法 .NET 3.5构建应该可以接受。

Thanks! 谢谢!

In the end the issue was an unversioned dependency, although not listed as a higher framework version it seems VS2008 'assumed' it to be higher. 最后,问题是未版本化的依赖关系,尽管没有列出为更高版本的框架,但VS2008似乎“假定”了更高版本。 So not only must the dependencies by the same version or less, they must all have an explicit framework version. 因此,不仅依赖项必须具有相同或更少的版本,而且它们都必须具有显式的框架版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM