如何识别所需的.net版本 [英] How to identify required .net version

查看:85
本文介绍了如何识别所需的.net版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



有一个我编写和编译的.Net2.0应用程序。它有一个安装例程,可以为所需的框架和Windows Installer版本创建.msi包,.exe文件和子文件夹,这样用户就可以在没有Internet连接的情况下从USB介质运行安装。



一段时间以来,这对我们客户的客户有用(这是合同开发)。



现在我添加了一些功能并且想要在我从IT部门获得的Windows 8.1 PC上测试它们。



应用程序无法启动。相反,它告诉我需要.Net 3.5。



正如我上面提到的,我编译了2.0。

其中一个包含的库这里也编译了2.0版。

其他图书馆就像往常一样。





如何找出我的应用程序需要哪些部分.Net 3.5?







我在XP笔记本电脑上测试过。卸载了所有与.Net相关的内容。启动我的应用程序并得到错误0xc0000135(未找到DLL)。互联网告诉我将其视为缺少.Net框架版本。

我启动了我的安装程序并在应用程序之前安装了.Net2.0而没有错误。然后应用程序运行。



安装程序不起作用的Windows 8.1有什么不同?

[/ Edit]

Hi experts,

there's an application I have written and compiled against .Net2.0. It has an installation routine that creates an .msi package, .exe file and subfolders for the required framework and Windows Installer version so that user should be able to run the installation from USB media without internet connection.

For some time now, that has worked for our customer's customers (it's a contract development).

Now I added some features and wanted to test them on a Windows 8.1 PC that I got from our IT department.

The application doesn't start. Instead, it tells me to need .Net 3.5.

As I mentioned above, I compiled against 2.0.
One of the included libraries is also compiled here, against 2.0.
The other libraries are just as they have always been.


How can I find out what part of my application needs .Net 3.5?



I tested on an XP laptop. Uninstalled everything .Net-related. Started my application and got error 0xc0000135 (dll not found). The internet tells me to read this as "missing .Net framework version".
I started my installer and it installed .Net2.0 prior to the application without errors. App then runs as well.

What's different in a Windows 8.1 that the installer doesn't work?
[/Edit]

推荐答案

似乎Windows 8根本不支持.NET框架安装程序;相反,您必须在操作系统设置中启用较旧的.NET支持。



这可以通过控制面板完成,但这需要Internet连接。



还有一种方法可以从命令行执行此操作,但您需要Windows 8安装媒体才能执行此操作。



有关这两种方案的详细说明,请参见以下页面:



https://msdn.microsoft.com/library/hh506443.aspx [ ^ ]
It seems that Windows 8 simply does not support .NET framework installers at all; instead, you have to enable older .NET support in the OS settings.

This can be done from the Control Panel, but this requires an Internet connection.

There is also a way to do this from the command line, but you need the Windows 8 installation media to do this.

Detailed instructions for both scenarios can be found in the following page:

https://msdn.microsoft.com/library/hh506443.aspx[^]


这篇关于如何识别所需的.net版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆