引用 .net 2 程序集时,.Net 4 应用程序中会发生什么情况?
我有一个应用程序想要升级到 .NET 4,但我有几个引用 .NET 2 BCL 的第 3 方程序集。
我似乎记得读过一些内容说它们应该玩得很好,但我找不到有关该主题的任何文档。 (我认为我向 Google 提出的问题太宽泛,目前还没有足够的 .Net 4 材料)
任何人都可以帮我找到有关这种情况下会发生什么的文档吗?
I have an application I want to upgrade to .NET 4, but I have a couple 3rd party assemblies that reference the .NET 2 BCL.
I seem to remember reading something that says they should play nice, but I can't find any documentation on the subject. ( I think my question posed to Google is just too broad, with not enough .Net 4 material out there yet )
Can anyone help me find documentation on what will happen in this case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果我正在阅读 Scott Guthrie 的帖子,多目标支持(VS 2010 和 .NET 4 系列),正确的话就可以正常工作。
感兴趣?:.NET 4.0 项目参考 2.0 程序集
If I'm reading Scott Guthrie's post, Multi-Targeting Support (VS 2010 and .NET 4 Series), correctly then that will work fine.
Of Interest?: .NET 4.0 project reference 2.0 assembly
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7
我想在我的一个类库中引用 StructureMap。最初它是由 VS2010 创建的,用于使用 .NET 4 客户端配置文件。事实证明,我必须将其更改为完整的 .NET 4 框架,否则结构图将无法被识别。
I wanted to reference StructureMap in one of my class libraries. Orginally it was created by VS2010 to use the .NET 4 client profile. Turns out, I had to changed this to the full .NET 4 framework, otherwise structuremap would not be recognized.