Standalone executable 3.5 app

  • Thread starter Tommy Holm Jakobsen
  • Start date
T

Tommy Holm Jakobsen

Hello,

I have developed a small application in .NET 3.5 (using LINQ). This app is
supposed to run on lots of different servers. Some of these servers do not have
..NET Framework 3.5, only 2.0, so the app doesn't run on those.

I tried compiling my application to target the 2.0 framework, but that doesn't
work since I'm using LINQ, of course.

Is there a way to "bundle" all the references into a single standalone
executable, so I can run my application thats compiled for the 3.5 framework on
a machine with 2.0 framework only?

Thanks in advance,
Tommy
 
M

Miha Markic

Check out XenoCode's Postbuild for .NET and Virtual Application Studio.
I am not exactly sure why don't you (or your clients) install .net 3.5 on
those servers instead...
 
S

Scott M.

Not really. The whole point is that you've used features of the .NET
framework that require that framework for the application to run. You can't
just package the pieces that a server may be missing into your application.
The taget machine either has the full framework version your program needs
or it doesn't.

Interestingly though, your subject to this post is "Standalone executable",
which implies not a server application, but a client application. In this
case, you can certainly package the 3.5 framework redistributable with your
..exe and the installer will install the 3.5 framework on the target machine
if it is not present.

-Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top