tags:

views:

580

answers:

4

Hi this is jalpesh I am newbie to the stackoverflow site. But I like the cocepts of the stackoverflow. I am asking a question How can i convert a wpf appplication to a .exe which will run on all microsft windows operating system.

+1  A: 

If you're in visual studio, hit F7.

The application will be compiled into an exe file that can then be executed. It will usually be located underneath your solution directory:

SolutionDir\Bin\(Debug|Release)\Solution.exe

This file will only be able to run on Windows computers that have the necessary version of the CLR installed. As far as I know there's no way around that requirement.

Eclipse
+1  A: 

Build it in Visual Studio. It should run on any Windows system that has the correct framework installed. (Potentially .NET 3.5sp1, depending on what you included.)

Reed Copsey
+1  A: 

:) Compile in VS2008 and remember to check out the Bin{Debug|Release} folder of the project location to see the exe

Jobi Joy
+1  A: 

WPF is by default an .exe, but will need .NET 3+. You can't create a WPF .exe and expect it to work on all Windows version, regardless whether the platform you've compiled your application for is installed.

It's like a library dependency in C/C++. Certain libraries don't work on older versions of Windows.

taoufik