You are here

making a C#.net application as Portable application

4 posts / 0 new
Last post
shalinigoel09
Offline
Last seen: 14 years 9 months ago
Joined: 2010-05-19 03:28
making a C#.net application as Portable application

hello
i am working on an application in C#.net windows environment. can i make the portable version of my application. If yes, then tell me the procedure for the same.

Thanks
Shalini

dagardner
dagardner's picture
Offline
Last seen: 5 years 7 months ago
Developer
Joined: 2007-09-20 14:41
Not possible

C# applications require that the version of .NET used in development to be installed on the computer running the program. As a portable developer, you cannot be sure what will be installed on a computer, and there is no way to make a portable installation of .NET.

Hmm, do .NET applications eventually look in the assembly's directory for dependencies? You could try putting the .NET DLLs you are using in the same directory as the assembly to see if that work on a computer without .NET installed. I've not tried this, but I haven't seen anyone say that it wouldn't work.

I would say it would be worth a try.

Jimbo
Offline
Last seen: 5 years 1 month ago
Joined: 2007-12-17 05:43
Licencing issues there

You can't legally redistribute the dlls or other components of .NET except as the framework installer downloaded from Microsoft.

That said, it would be interesting to know if it could be made to work

dagardner
dagardner's picture
Offline
Last seen: 5 years 7 months ago
Developer
Joined: 2007-09-20 14:41
Good point

I hadn't thought of that. Too bad there isn't a way to distribute the framework installer and extract the files on installation.

Log in or register to post comments