How to create complete .exe in WPF .net framework application?

How to create a lightweight WPF application including .NET Framework 4.5?

  • I want to create an application which is dependent on .NET Framework 4.5. If I am binding the framework with application setup the size of application increases to much but I need to bind the .NET Framework 4.5 with my setup. Is there any other option to bind the framework with application setup besides downloading it from the website during installation?

  • Answer:

    To deploy your application, you can use either: ClickOnce, a proprietary technology made by Microsoft to provide seamless way to install and update .NET Framework applications. ClickOnce can contain among its prerequisites .NET Framework itself, which means that you simply need to check the correct version of .NET Framework in the prerequisites window. Different tools for setup packages (which produce .msi files). They also often have the prerequisites part in them. It was, for sure, the case in Visual Studio 2010. If I remember well, the component was later removed in Visual Studio 2012, but I suppose that third party tools have the same feature as well. Note: at any moment you should embed .NET Framework in your application, nor there is a need to. Microsoft provides servers and bandwidth for the deployment of .NET Framework, so use it; also, as a customer, I wouldn't especially trust an application which deploys .NET Framework from somewhere else than the official Microsoft website: what if .NET Framework was altered and doesn't do what it is expected to do (or is doing what it is not expected to do).

neelb2 at Programmers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.