My first app (what about runtime)

  • Thread starter Thread starter Marc Logemann
  • Start date Start date
M

Marc Logemann

Hi,

i created my first application with c# (normally i am programming the
other language where C# borrowed from) and i am impressed about the IDE
and the language itself. I used the Whidbey C# Express Beta.

But because i am a newbie, my questions is also quite beginner like. I
created a screensaver with c# and want to test it on another machine
than my development machine.

I tested on XP and 2000 without any .NET runtimes installed and got an
Error Window on XP and a not running screensaver on 2000 without any
Error Windows at all.

I assume that these errors are there because the target machine cant
execute the code thus lacking a Runtime correct? If this is the case, do
i have to install a 23Mb Microsoft .NET Framework Version 1.1
Redistributable Package just to execute my ScreenSaver? This wouldnt be
a good choice, because nobody like downloading a 23+1 MB large Screensaver.

Can someone gimme some infos about this issue?

Thanks.

marc
 
Marc Logemann said:
i created my first application with c# (normally i am programming the
other language where C# borrowed from) and i am impressed about the IDE
and the language itself. I used the Whidbey C# Express Beta.

But because i am a newbie, my questions is also quite beginner like. I
created a screensaver with c# and want to test it on another machine
than my development machine.

I tested on XP and 2000 without any .NET runtimes installed and got an
Error Window on XP and a not running screensaver on 2000 without any
Error Windows at all.

I assume that these errors are there because the target machine cant
execute the code thus lacking a Runtime correct? If this is the case, do
i have to install a 23Mb Microsoft .NET Framework Version 1.1
Redistributable Package just to execute my ScreenSaver? This wouldnt be
a good choice, because nobody like downloading a 23+1 MB large Screensaver.

Can someone gimme some infos about this issue?

If you've built the application using Whidbey, it's probably expecting
the v2.0 framework rather than the v1.1 framework. I suspect the
redistributable for v2.0 will be about the same size.

Bear in mind that as .NET becomes more prevalent, more people will have
the framework. Many people will already have it due to using Windows
Update, and I wouldn't be surprised if XP SP2 contained the 1.1
framework, too.
 
The runtime is a prerequisite for running .NET managed applications.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
 
Jon said:
If you've built the application using Whidbey, it's probably expecting
the v2.0 framework rather than the v1.1 framework. I suspect the
redistributable for v2.0 will be about the same size.

Bear in mind that as .NET becomes more prevalent, more people will have
the framework. Many people will already have it due to using Windows
Update, and I wouldn't be surprised if XP SP2 contained the 1.1
framework, too.

How can i check if a Runtime (whatever version) is installed on my system?

How can i define that my app should use 1.1 instead of 2.0 in the IDE?

Could this solve my problem regarding distribution?
(http://www.remotesoft.com/linker/index.html)

Thanks.

Marc
 
Marc Logemann said:
How can i check if a Runtime (whatever version) is installed on my system?

As a user, the easiest way is to look in the Windows directory for
another directory called "Microsoft .NET". If it's there, look in the
Framework directory inside it to see what versions are installed.

Programatically, you can get an installer to either install the
framework directly or point the user at the appropriate MS website -
IIRC, you put the framework as one of the dependencies of the
installer.
How can i define that my app should use 1.1 instead of 2.0 in the IDE?

I don't know how to do it in Whidbey, as I don't have that installed. I
suspect it'll be entirely different from in VS.NET2003, where it's a
bit clunky.
Could this solve my problem regarding distribution?
(http://www.remotesoft.com/linker/index.html)

Possibly
 
Jon said:
Programatically, you can get an installer to either install the
framework directly or point the user at the appropriate MS website -
IIRC, you put the framework as one of the dependencies of the
installer.

Yeah, i created an installer which checks for some registry entries
regarding .NET Framework, so this issue is solved.
I don't know how to do it in Whidbey, as I don't have that installed. I
suspect it'll be entirely different from in VS.NET2003, where it's a
bit clunky.

is someone here who can comment on Whidbey on this one. Because i just
discovered that my resulted Application needs in fact 2.0, but 1.1 would
be sufficient, but i dont know a way how to define that inside VS, so
that the its building based on 1.1

Come on, there are some beta testers out arent? ;-)

THanks.
 
Marc Logemann said:
Yeah, i created an installer which checks for some registry entries
regarding .NET Framework, so this issue is solved.

Rather than create your own, why not use the install action supplied
with VS.NET?

<snip>
 
Marc Logemann said:
Jon Skeet [C# MVP] wrote:
is someone here who can comment on Whidbey on this one. Because i just
discovered that my resulted Application needs in fact 2.0, but 1.1 would
be sufficient, but i dont know a way how to define that inside VS, so that
the its building based on 1.1

Come on, there are some beta testers out arent? ;-)
You can't build v1.0 or 1.1 compatible assemblies using vs2005.
You can't run programs built with vs2005 Beta on anything lower than the
v2.0 CLR is is built against.
You can run v1.0/1.1 programs on a higher version CLR than the one they are
built against.

Nota also that you better post VS2005 beta questions to the
Microsoft.Private.Whidbey NG's, this NG are for released products, not for
beta drops.

Willy.
 
Back
Top