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
New: NAPS2 (Feb 24, 2025), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads!, Please donate today
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.
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
I hadn't thought of that. Too bad there isn't a way to distribute the framework installer and extract the files on installation.