471,310 Members | 968 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Sharing programs with friends

Hello,

I want to show my friends my c# work, but sending them the
bin/release/progname.exe program doesnt work. Research
has indicated this is because they have the .net framework
v1.1 - whereas I have v2.0

I have worked out that if I hit the menu 'Build, Publish progname'
it works on most of my friends PC's (but not all) so I have a
few questions.

1. Why doesnt it work on all PC's?

2. The standard exe is just 28k, yet the published files are
460kb, I expected it to be larger to accommodate the 2.0
framework bits required - but didnt expect it to be over 16
times larger. Is this right?

3. Ideally I'd like to give them just one .exe for them to run,
is there any way to do this?

Many, many thanks for your help. James.

Dec 1 '05 #1
3 962
James <c_********@yahoo.co.uk> wrote:
I want to show my friends my c# work, but sending them the
bin/release/progname.exe program doesnt work. Research
has indicated this is because they have the .net framework
v1.1 - whereas I have v2.0

I have worked out that if I hit the menu 'Build, Publish progname'
it works on most of my friends PC's (but not all) so I have a
few questions.

1. Why doesnt it work on all PC's?
That's hard to say without a bit more information.
2. The standard exe is just 28k, yet the published files are
460kb, I expected it to be larger to accommodate the 2.0
framework bits required - but didnt expect it to be over 16
times larger. Is this right?
That's not including .NET 2.0 (which would be much, much larger). It's
just a "ClickOnce" deployment. Look up ClickOnce on MSDN for more
information.
3. Ideally I'd like to give them just one .exe for them to run,
is there any way to do this?


Yes - get them to run Windows Update and install .NET 2.0.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Dec 1 '05 #2
Hi Jon,

Firstly thanks for the help.

I've looked up click once and it appears that that's the publishing
method I've been using. I cannot get everyone to install .Net 2.0
and so I guess I'm stuck with large archives and multiple files
until the latest windows becomes more prevelant!

Unless any other reader knows something special.... :o)
Many thanks, James.

Dec 1 '05 #3
If you are writing .NET 2 code (e.g. using some flavor of VS2005), then this
simply isn't going to work regardless of how you publish it, what files you
bundle, etc (short of bundling the CLR itself, which I don't think you can
do without major hacks). The CLR is a necessary prerequisite; note that we
are talking about the .NET 2 *framework*, and not Visual Studio or
anything...

If you want to target machines that only have v1.1 of the framework, then
you need to write v1.1 code, i.e. using VS2003 (or at least, the 1.1 version
of csc).

Marc

"James" <c_********@yahoo.co.uk> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi Jon,

Firstly thanks for the help.

I've looked up click once and it appears that that's the publishing
method I've been using. I cannot get everyone to install .Net 2.0
and so I guess I'm stuck with large archives and multiple files
until the latest windows becomes more prevelant!

Unless any other reader knows something special.... :o)
Many thanks, James.

Dec 2 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Vibhajha | last post: by
8 posts views Thread by Brandon McGinty | last post: by
8 posts views Thread by Kissi Asiedu | last post: by
reply views Thread by Emily | last post: by
6 posts views Thread by Rajesh | last post: by
reply views Thread by Dom Rout | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.