一知半解可能是件危险的事情。
现在,我已经根据用户机器上安装的不同.NET运行时进行了“磨合”,我希望尽可能地“安全”和编写防御性的代码。
但是,如果我将此代码添加到App.config文件中:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v1.0.3705"/>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v3.0"/>
<supportedRuntime version="v3.5"/>
<supportedRuntime version="v4.0"/>
<supportedRuntime version="v4.0.30319"/>
</startup>...is它等同于穿吊带裤,腰带和猫咪套装?
(我的目标是.NET 4“标准版”)
发布于 2012-06-20 06:47:46
没有,但您真的在使用.NET 2.0+的零功能吗?
发布于 2012-06-20 07:42:45
嗯..。没有3.0或3.5。只有2.0.xxx,然后是v4.0
看看这个msdn链接。特别地,第一个图形
.NET Framework Versions and Dependencies
https://stackoverflow.com/questions/11110522
复制相似问题