[英]How to run C# Windows application from USB without installing .NET framework on client system
Is it possible to run a C# .NET Windows application (.exe) from pendrive or USB without installing the .NET framework on the client system? 是否可以从pendrive或USB运行C#.NET Windows应用程序(.exe)而无需在客户端系统上安装.NET框架?
If so, how can I make it work? 如果是这样,我怎样才能使它工作?
I came across this product a couple of years ago - Salamander .net Linker . 几年前我偶然发现了这款产品 - Salamander .net Linker 。
No idea if it actually works as I didn't test it but it claims to do what you want. 不知道它是否真的有效,因为我没有测试它,但它声称做你想要的。 I cam across a couple of other products that claim the same thing but they were all fairly expensive for my needs hence the lack of testing them out.
我想到了其他一些声称同样的东西的产品,但它们对我的需求都相当昂贵,因此缺乏测试它们。
In order to run a C#.NET application in a computer you have to install de .NET framework on that target computer. 要在计算机中运行C#.NET应用程序,您必须在该目标计算机上安装de .NET框架。
At this time any machine with Windows XP SP3 or higher windows version (Windows Vista or Windows 7) have the .NET framewok installed. 此时,任何装有Windows XP SP3或更高版本Windows(Windows Vista或Windows 7)的计算机都安装了.NET framewok。
.NET applications require the .NET Framework to be installed. .NET应用程序需要安装.NET Framework。 However, there are some commercial "packers" that may be able to give you a deployable package that contains all the required dependencies.
但是,有一些商业“打包器”可能会为您提供包含所有必需依赖项的可部署包。 I'm not sure whether this would be a supported solution.
我不确定这是否是一个受支持的解决方案。
No, .NET sits on top of the windows API and needs the CLR and other dependencies to run. 不,.NET位于Windows API之上,需要运行CLR和其他依赖项。 Installers aren't the problem.
安装人员不是问题。 It does not matter if the exe runs from a pen drive, gets copied to the desktop or explicitly installed.
如果exe从笔式驱动器运行,被复制到桌面或显式安装,则无关紧要。
You could build a shell on another platform and have it call a .NET service, wcf API. 您可以在另一个平台上构建一个shell,并让它调用.NET服务,即wcf API。
I'd question the security and integrity of any 3rd party hacks that try to bypass the need for .NET runtime. 我质疑任何试图绕过.NET运行时需求的第三方黑客的安全性和完整性。 Especially if you plan to execute said product on a client's machine.
特别是如果您计划在客户的机器上执行所述产品。
You may use so called ".NET Framework client profile" - reduced set of assemblies that may be deployed through ClickOnce installation. 您可以使用所谓的“.NET Framework客户端配置文件” - 可以通过ClickOnce安装部署的减少的程序集集。 Anyway installation is required.
无论如何安装是必需的。
You can use VMware ThinApp. 您可以使用VMware ThinApp。 I used it a few years ago for a .Net application.
几年前我用它作为.Net应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.