.net应用程序是否独立于平台 [英] does .net applications are platform independent

查看:89
本文介绍了.net应用程序是否独立于平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个.net Windows基础应用程序.我制作了该应用程序的安装文件.我的问题是我可以在不安装Visual Studio的情况下在任何Windows系统上运行我的应用程序.我使用sql server2005.因此,我应该安装我将在其中安装应用程序的系统中的sql server.请回复

I made a .net windows base application.I made a setup file of the application.My question is that can I run my application on any windows system without installing visual studio.I use sql server 2005. So,should I install sql server in the system where i will install my application. Please reply

推荐答案

您不了解您的要求.在没有Visual Studio的情况下运行应用程序与平台无关"的概念无关,这意味着.NET应用程序不仅可以在Windows上运行. CLR是根据ECMA和ISO标准进行标准化的;以及if Mono项目( http://en.wikipedia.org/wiki/Mono_%28software %29 [ ^ ])被最突出.

为了使您的应用程序与平台无关,您只需要使用标准化的库,并且可以根据CLR实现使用支持的用途使用一些非标准的库.参见 http://www.ecma-international.org/publications/standards/Ecma-335.htm [^ ] , http://standards.iso.org/ittf/PubliclyAvailableStandards/c042927_ISO_IEC_23271_2006(E)_Software.zip [ ^ ] .

至于在没有Visual Studio的情况下运行.NET应用程序……此类应用程序从不从不需要Visual Studio仅需要.NET Framework,它是可重新分发的运行时,它是免费的.应该安装与您的编译的目标平台设置兼容的版本.您可以轻松,合法地将其与应用程序一起部署.

SQL Server(仅用于客户端安装)应该是您的应用程序的单独前提条件.它需要单独的许可证.

-SA
You do not understand what you''re asking about. Running applications without Visual Studio has nothing to do with the notion of "platform independent", which means that .NET applications can run not only on Windows. CLR is standardized under ECMA and ISO standards; and there are alternative multiplatform implementations of if Mono project (http://en.wikipedia.org/wiki/Mono_%28software%29[^]) being most prominent.

To make your application platform-independent you need to use only standardized library and you can use some of the non-standard according to what is supported to CLR implementation use use. See http://www.ecma-international.org/publications/standards/Ecma-335.htm[^], http://standards.iso.org/ittf/PubliclyAvailableStandards/c042927_ISO_IEC_23271_2006(E)_Software.zip[^].

As to running .NET application without Visual Studio… such applications never require Visual Studio only the .NET Framework, its redistributable runtime which is free of charge. A version compatible with the target platform setting of your compilation should be installed. You can easily and legitimately deploy it with your application.

SQL Server (its client installation only) should be a separate prerequisite for your application; it requires a separate license.

—SA


.Net应用程序需要在该计算机上安装的框架.任何操作系统(XP或更高版本)都适用于.Net应用程序.如果您的应用程序在Framework 2.0上,则可以在列表中添加Windows 2000和98.
对于数据库,您需要在客户端安装数据库.在大多数情况下,Express Edition都可以.
.Net application required framework installed on that machine. Any OS (XP onwards) are fine for .Net application. If your application is on Framework 2.0, then Windows 2000 and 98 can be added in list.
For database, you need to install database at client. Express edition are fine in most of the cases.


目标计算机不需要安装Visual Studio.这里是一篇有关应用程序部署的文章:部署.NET Framework和应用程序 [< ^ ].

基本上Windows XP SP 3是可以运行.Net Framework 4的最旧平台.请参阅: http://msdn.microsoft.com/en-us/library/ee942965.aspx#installation_requirements [ ^ ]

Sql Server部署取决于您使用的版本.如果您具有Sql Server Express版本,请通读以下内容:将SQL Server Express嵌入到自定义应用程序 [ ^ ].在CodeProject中也有一篇不错的文章:使用Installer类轻松部署SQL Server数据库 [ ^ ]

对于Sql Server Compact Edition,请参阅: http://msdn.microsoft.com /en-us/library/ms171938(v=SQL.90).aspx [
The target machine doesn''t need to have Visual Studio. Here''s one article to start with concerning the application deployment: Deploying the .NET Framework and Applications[^].

Basically Windows XP SP 3 is the oldest platform that can run .Net framework 4. See: http://msdn.microsoft.com/en-us/library/ee942965.aspx#installation_requirements[^]

The Sql Server deployment depends on the edition you have used. If you have Sql Server Express edition then read through this: Embedding SQL Server Express into Custom Applications[^]. There''s also a good article in CodeProject: Deploy SQL Server databases easily with an Installer class[^]

For Sql Server Compact Edition, see: http://msdn.microsoft.com/en-us/library/ms171938(v=SQL.90).aspx[^].

If your application uses Sql Server from several clients (it''s not serving just the local application) then you should install it centralized. Also backups should be configured correctly, no matter where the Sql Server is.

And from the license point of view, Standard, Enterprise etc. editions are not freely distributable as they need a separate license (in case you have used a ''bigger'' edition).


这篇关于.net应用程序是否独立于平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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