首页 / C# / c# – .NET框架的先决条件
c# – .NET框架的先决条件
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了c# – .NET框架的先决条件,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2690字,纯文字阅读大概需要4分钟。
内容图文
朋友你好,我需要在目标机器上安装已发布的应用程序时解释有关.NET框架的先决条件.
因为java是向下兼容的,所以我的意思是如果我已经安装了java v1.6并且如果应用程序是使用java v1.5开发的(我还意味着只使用1.5中可用的类和包来构建appln.)
我确信开发的应用程序肯定会通过安装最新或更高版本的jre或j2se来运行.
类似地,在.NET平台的情况下,如果我使用.NET framework 3.5开发我的应用程序,并且在目标机器中我安装了.NET framework 4.0(最新版本),那么它会提示安装.NET框架3.5为什么这样做呢?
实时示例是我已下载并尝试安装MySQL工作台并安装了.NET framework 4.0但它仍然要求在运行MySQL安装之前安装.NET framework 3.5.
我的问题是.NET框架是向下兼容的java还是.NET?
解决方法:
Version Compatibility in the .NET Framework:
The .NET Framework 4 is
backward-compatible with applications
that were built with the .NET
Framework versions 1.1, 2.0, 3.0, and
3.5. In other words, applications and components built with previous
versions of the .NET Framework will
work on the .NET Framework 4.However, in practice, this
compatibility can be broken by
seemingly inconsequential changes in
the .NET Framework and changes in
programming techniques. For example,
performance improvements in the .NET
Framework 4 can expose a race
condition that did not occur on
earlier versions. Similarly, using a
hard-coded path to .NET Framework
assemblies, performing an equality
comparison with a particular version
of the .NET Framework, and getting the
value of a private field by using
reflection are not backward-compatible
practices. In addition, each version
of the .NET Framework includes bug
fixes and security-related changes
that can affect the compatibility of
some applications and components.If your application or component does
not work as expected on the .NET
Framework 4, use the following
checklists.For .NET Framework 2.0, 3.0, and 3.5 applications:
Check .NET Framework 4 Migration
Issues for any changes that might
affect your application and apply the
workaround described.If you are recompiling existing source
code to run on the .NET Framework 4,
or if you are developing a new version
of an application or component that
targets .NET Framework 4 from an
existing source code base, check
What’s Obsolete in the .NET Framework
for obsolete types and members, and
apply the workaround described.
(Previously compiled code will
continue to run against types and
members that have been marked as
obsolete.)If you determine that a change in the
.NET Framework 4 has broken your
application, check the Runtime
Settings Schema to determine whether
you can use a runtime setting in your
application configuration file to
restore the previous behavior.If you encounter an issue that is not
documented, file a Microsoft Connect
bug and contact netfxcf@microsoft.com
with the bug number.
内容总结
以上是互联网集市为您收集整理的c# – .NET框架的先决条件全部内容,希望文章能够帮你解决c# – .NET框架的先决条件所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。