如何在未安装.net框架的机器上运行.net应用程序 [英] how to run .net application on machin where .net framework is not installed

查看:85
本文介绍了如何在未安装.net框架的机器上运行.net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了.net控制台应用程序,该应用程序使用webbrowser加载html页面,我在本地计算机上执行了该应用程序,但是当我在未安装.net框架的机器上运行相同的exe时出现错误,我已经运行了另一个包含一些.dll文件的应用程序.任何人都可以让我将此文件保留哪些.dll文件.

谢谢

Hi
I have created .net console appplication which uses webbrowser to load html pages , i this app is executing fine on my local machine , but when i run same exe on the machin where .net framwork is not installed i m getting errors, erlier i have run the other app with includeing some .dll file. can any one please let me which .dll files i need to keep with this exe.

Thanks

推荐答案

您不能在未安装.Net(合适版本)的计算机上运行.Net应用程序.时期.故事结局.您应该做的是在解决方案中创建一个安装项目,该项目将自动设置.Net依赖性,并在必要时强制用户下载/安装.Net.
You can''t run a .Net app on a machine that doesn''t have (the appropriate version of ) .Net installed. Period. End of story. What you should do is create a setup project in your solution which automatically sets up the .Net dependancy, which forces the user to download/install .Net if necessary.


John是正确的. br/>
如果创建.NET应用程序(或dll),则需要.NET框架来加载和运行它们.
就像带有虚拟机的Java:如果没有安装虚拟机,那么您将无法运行Java二进制文件.

如果您不想安装.NET Framework,请使用经典" C/C ++而不是C#进行编码.
John is right.

If you create a .NET application (or dll), you need .NET framework to load and run them.
It is like Java with the virtual machine: if there is no virtual machine installed, then you can''t run you java binaries.

If you don''t want to install .NET framework, then code in "classical" C/C++ instead of C# for example.


这篇关于如何在未安装.net框架的机器上运行.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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