简体   繁体   English

在Windows 98上安装使用VS2012开发的.NET应用程序

[英]Install .NET app developed with VS2012 on Windows 98

Can I install .Net app developed in Visual Studio 2012 in Windows 98??? 我可以在Windows 98中安装在Visual Studio 2012中开发的.Net应用程序吗?

I am using .NET framework 4.5.1 and i have developed desktop application in Windows 7 Ultimate I have to install this app in different PCs but one of them has win-98 so I need to know whether i install it same way as i did for other PCs or i have to do something else. 我正在使用.NET Framework 4.5.1,并且我已经在Windows 7 Ultimate中开发了桌面应用程序,我必须在不同的PC上安装此应用程序,但是其中一台具有Win-98,所以我需要知道我是否以与我相同的方式进行安装对于其他PC或我必须做其他事情。

Because formatting OS is last option as there are some important programs working perfectly on Win-98 and can't afford to lost old things for just one app. 因为格式化操作系统是最后的选择,因为有些重要程序可以在Win-98上完美运行,并且不能仅凭一个应用程序就可以丢掉旧东西。

I have installed in Windows 07 as well as in Xp but don't know whether it'll work properly in Win98 or Not. 我已经在Windows 07和Xp中安装了,但是不知道它是否可以在Win98正常工作。

Is there any Solution if your answer is No. ? 如果您的答案是否定的,有什么解决方案吗?

According to Microsoft , Windows 98 supports .NET 2.0 based apps. 根据Microsoft的说法 ,Windows 98支持基于.NET 2.0的应用程序。

So technically it should be possible for you to deploy one you made with VS2012, if you set the target framework option at 2.0 in the project build options. 因此,从技术上讲,如果在项目构建选项中将目标框架选项设置为2.0,则应该可以部署使用VS2012制作的版本。

BE CAREFUL: this does not guarantee that the exact same code that runs on other windows versions will work exactly the same in Win98. 请注意:不能保证在其他Windows版本上运行的完全相同的代码在Win98中将完全相同。 There could be very subtle variations if for example you are using COM interopt, P/Invoke calls or if you're using a 3rd party control library. 例如,如果您使用COM interopt,P / Invoke调用,或者使用第三方控件库,则可能会有非常细微的变化。

Also, be aware that targeting 2.0 takes away many great things that came with .NET over the years, such as LINQ, Xaml and async/await. 另外,请注意,多年来,瞄准2.0剥夺了.NET附带的许多出色功能,例如LINQ,Xaml和async / await。

If I may suggest (please note that I don't know what your requirements are), rather than trying to directly support a 16 years old OS, why don't you develop a web front with an ASP.NET backend instead? 如果我可以提出建议(请注意,我不知道您的要求是什么),而不是直接尝试支持16年的OS,那么为什么不使用ASP.NET后端开发Web前端呢? This will allow you to remain up to date with .NET goodness and reuse any business logic code you may already have. 这将使您可以保持.NET的最新状态,并重用您可能已经拥有的任何业务逻辑代码。

根据此问题的答案,如果将目标平台设置为.NET 2.0,则可能会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM