ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

c# – .NET框架的先决条件

2019-06-30 16:05:35  阅读:267  来源: 互联网

标签:c net prerequisites pre


朋友你好,我需要在目标机器上安装已发布的应用程序时解释有关.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,prerequisites,pre
来源: https://codeday.me/bug/20190630/1338267.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有