File . exe in Visual Studio 2015

Asked

Viewed 933 times

5

How do I generate an executable running on any machine without . Net installed?

The one in the briefcase bin/debug does not serve because he needs the . Net to run.

  • 2

    The platform. net (C#, VB .net, ASP .net) requires the framework to run, you can do, in visual studio using c or c++, but in my opinion, does not compensate, you can create an installation file that installs the framework next to your application you can see how to create an installed here

  • Any windows(Vista+) machine has . net installed. Or you refer to another OS?

  • I refer to Windows itself, I even managed to generate the executable that runs on any machine with the option "Publish..." but it is actually an installer, and also not what I want

  • Want a single file . exe, with all . dll soaked?

  • 1

    The answers given already give a good idea of the problem, but I suggest next you specify the language in use. Visual Studio is an IDE, not a programming language. As with most Ides, you can program in several different languages, and not all of them are based on . NET - The people are only being able to answer, because by their description, they tested with some language based on . NET, otherwise even this would be to be sure.

  • @user8465 The answer solved your problem? Do you think you can accept it? If you don’t know how to do it, see [tour]. This would help a lot to indicate that the solution was useful to you and to give an indication that there was a satisfactory solution. You can also vote on any question or answer you find useful on the entire site.

Show 1 more comment

1 answer

6

The normal thing is to need the . NET installed. It is possible to make an executable and include all dependencies without the . Standard NET installed on the machine if you can use the .NET Core (that now becomes the standard). Still need to send the structure of . NET, but at least it will not require it to be part of Windows as part of the OS engine (no need to install anything, just copy all that is required).

It also gives to obtain similar effect with Mono, but is less recommended in most cases.

Soon we’ll have .NET Native for general use that will create executables totally without dependencies if you want. (In fact it should no longer receive investments).

Otherwise the only solution is to include the . NET Framework in the installer and include it in the operating system if it does not have.

Unless there is an option to do in another language that does not require . NET, such as C or C++.

That was a little dated, made sense at the time of the question. It’s still true, but we’re talking about technologies that are now in support mode only.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.