Reputation: 4931
I have to give my customer my application. It's a simple application(3Mo). I think it's really unnecessary to oblige my client to install the whole .NET framework (the 3.5) to work with a simple application (3 mo). I mean I'm sure that there is a way to avoid that, just include some dlls or something like that. Well I have the dll in my project reference(LINQ dll, core Dll, system Dll, winfom Dll, office Dll and some other) is it possible to give the application with those dll and that way I avoid installing the whole .NET framework? Well I don't even need to make an MSI or setup project, just give him the exe generated with Visual Studio and that's it.
I'm using VS 2010, C#, 3.5.NET
Upvotes: 1
Views: 672
Reputation: 6545
Have you considered making it a web app, with asp.net? The effort of porting should be less than a complete rewrite (depends on the applications functionality).
Upvotes: 0
Reputation: 7025
If these conditions are true:
a) you really want to avoid .NET framework dependency
b) it's a really easy/small application
Consider the option of porting it to c++
If not
use default framework (.NET 2, or 3.5 or 3.5SP1) that comes by default in windows as Dan Puzey said.
Upvotes: 1
Reputation: 5422
Your client should have .net, there's no reason not to and if they haven't, they are a fool. Running XP with less than Service Pack 2 is dangerous. For the non-technically-inclined, compare it to using a van that's been subject to a manufacturer's recall. It may not necessarily be faulty, but the manufacturer has told you that it's no longer fit for use and are willing to make good at their own expense. As a responsible business owner, you wouldn't shirk that responsibility. In a similar vein, maintaining your Windows installation to the manufacturer's recommendation is not optional.
Upvotes: 0
Reputation: 36856
Most people have some flavor of .NET installed although most don't yet have 3.5. But you can create an installer that will download an install transparently to the user. Also if you target the Client Profile this dependency will be smaller.
Upvotes: 0
Reputation: 364399
No it is not possible. Client has to install .NET Framework 3.5 (with SP1) redistributable package.
Edit: If you didn't want client dependency on .NET Framework you should choose another application type: Web application where .NET dependency is only on the server.
Upvotes: 1
Reputation: 34218
It's worth noting that Windows comes with various flavours of .Net installed depending on the version of Windows. If I remember correctly...
Depending on your target audience you might find that this is good enough!
Upvotes: 3