Hey Guys and Gals
I'm looking to write a portable app in C# with .NET Framework 3.0. Does anyone have experience deploying a C# .NET App on to a USB drive and did the app have any issues running with the .NET framework from the USB?
Thanks
Bunis
New: Kanri (Oct 9, '24), Platform 29.5.3 (Jun 27, '24)
1,100+ portable packages, 1.1 billion downloads
No Ads November!, Please donate today
Hey Guys and Gals
I'm looking to write a portable app in C# with .NET Framework 3.0. Does anyone have experience deploying a C# .NET App on to a USB drive and did the app have any issues running with the .NET framework from the USB?
Thanks
Bunis
C# as I'm sure you know need the .net library installed on the host computer. This isn't a very common thing to see on most computers. It will work provided that the .net is installed but if not it won't work and I doubt people will appritate you installing on their computer.
Release Team Member
Unfortunately, C# and the .NET Framework are impossible (otherwise very hard) to portableize. Simply because not all computers have that exact same version of .NET, and not all PC's will be able to run it . Try some other language, please. There is a portable version of .NET (with viruses). Anyway, when writing a portable program, just make sure everything stays in it's own folder or a specified folder. Nothing in the registry. And welcome to PortableApps
Insert original signature here with Greasemonkey Script.
Well, it's not quite as dire as the previous comments imply. .Net can actually be fairly frugal with registry usage, keeping a lot of settings in ini files and such. I think it will let you define those things fairly readily, to keep settings and files off the host PC. Feel free to experiment.
The problems cited are quite real, though. The resulting program is likely to present issues for distributing it from an Open Source site, and there really are lots of machines where the right .Net runtime is not present.
But that probably won't stop you from learning a lot, or having a program you can run portably for your own purposes on machines you control (so you can make sure the right runtime is installed).
On the other hand, there are other programming languages...
MC
thanks for the help!!!!! I'll use C++.
Bunis Walker
C++ is a very portable language :). Maybe you want to check out sourceforge for Dev C++ Portable
Insert original signature here with Greasemonkey Script.
I'd rather recommend Code::Blocks. It's way more powerful.
"Those people who think they know everything are a great annoyance to those of us who do." Asimov