简体   繁体   中英

Visual C#: Compile with Runtime DLLs

I'm trying to compile my program in Visual C#. However, the machine I need it to run on (well, I need it to be able to run on any Windows Machine, at least Windows XP) does not have the .NET DLLs installed. I'm new to this, so how can I compile my Visual C# program with the runtime DLLs so that it will run on other machines?

There is no way. You need .NET runtime installed prior running any .NET application.

If you use Click-Once deployment, you can set a setting in the installer that the installer should install the .NET framework before running. If that's not an option (such as target machine has slow/no internet connection) you can install the redistributable version of .NET

You can't. .Net programs can only run if the .Net framework / CLR is installed on the target machine. There is no pure XCOPY deployment story for this scenario.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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