如何安装企业库5.0?
当我尝试执行此操作时,出现错误“应用程序需要 .NET Framework 3.5 SP1”。我有 .NET 4.0,如何安装 3.5 SP1?我可以两者都拥有吗?
When I try to do it I get the error "The application requires .NET Framework 3.5 SP1." I have .NET 4.0, how do I install 3.5 SP1? Can I have both?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
请随意安装 .Net 的所有版本。他们不会互相干扰!
为了向项目添加依赖项,我建议 NuGet。非常方便,通过添加引用来使项目变得干净,而不需要额外的安装包。
.Net 4.0 项目能够使用 .Net 2.0、.Net 3.0 和 .Net 3.5 库。但请注意,在“.Net 4.0 Client Profile”下运行的项目可能会出现问题,并且在尝试运行该项目时只会出现误导性错误。从 Visual Studio 内部来看,一切似乎都是正确的。
Feel free to install all versions of .Net. They will not interfere with each other!
For adding dependencies to your project I recommend NuGet. Really handy and makes the project clean by adding references into it instead of requiring additional installation packages.
.Net 4.0 projects are capable of using .Net 2.0, .Net 3.0 and .Net 3.5 libraries. But note that projects running under ".Net 4.0 Client Profile" can have problems doing this, and you only get a misleading error when attempting to run the project. From within Visual Studio everything seems right.
正如 Tedd Hansen 所说,您的计算机中可以拥有任意数量的 .NET 版本,因为它根本不会产生冲突。我认为您只是想安装一些东西。如果是这种情况,那么您始终可以使用 此链接下载引导程序,该程序将为您确定正确的 3.5 版本(x86 或 x64)并下载并安装它。
如果您正在开发应用程序,则可以通过转到项目属性页面并在编译选项卡中单击“高级编译选项”按钮来更改项目的目标框架。在那里你可以选择。
而且,也正如 Tedd 提到的,您应该避免以“客户配置文件”版本为目标,除非您明确知道其中存在的子集足够。
Just like Tedd Hansen says you can sure have as many .NET versions as you want in your computer for it creates no conflict at all. I take it you are just trying to install something. If that's the case then you can always use this link to download the bootstrapper that will determine the right 3.5 verison for you (x86 or x64) and download and install it.
If you are developing an application you can change the target framework of the project by going to the project properties page and, in the compile tab, click on the "Advanced Compile Options" button. There you'll be able to choose.
And, also as Tedd mentions, you should avoid targeting the "Client Profile" versions unless you specifically know that the subsets present therein are sufficient.
在我的机器(Windows 7 Enterprise x86)上,我安装了.Net Framework 4.0和Enterprsie Library 5.0,没有任何问题。也许您还面临其他问题?
On my machine (Windows 7 Enterprise x86) I have installed .Net framework 4.0 and Enterprsie Library 5.0 without any problems. Maybe some other issue you're facing?
I适配器,
我已经回答过这个问题了。请参阅 2011 年 2 月 5 日评论 dtd 中的我的回答和解决方法。
IAdapter,
I've answered this already. See my answer and the workaround in the comment dtd Feb 5, 2011.