Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 28th, 2006, 08:22 PM
Authorized User
 
Join Date: Sep 2003
Location: Ipswich UK, , United Kingdom.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MattLeek
Default Compiling

Hi,

I bought Professional C# today. I was trying to learn C++ but I couldn't really get into it. I had a bit of money to spend so I thought I'd upgrade :P. I'm still downloading Visual C# so I'm waiting at the start of Chapter 2 still. My problem is about what C# compiles to. As it is compiled at run-time I'm assuming the person running it is going to need .NET Framework (I say assume but I think I read it in the book). Is there anyway to get around this? I'm not sure most people have it on their computers (I didn't until I downloaded it for some reason).

I would mainly be writing software and wouldn't want to create something that can't be used by people unless they download this extra stuff.

Thanks,
Matthew
__________________
Thanks,
Matthew
Reply With Quote
  #2 (permalink)  
Old April 29th, 2006, 02:08 AM
Authorized User
 
Join Date: Apr 2006
Location: Horsens, , Denmark.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can't run a .NET (C#,VB.NET,J#) program on a computer without the .NET framework installed.

I have never had any problems with customers not want to download and install it though.

Just explain what it is and what it does.

(I think Windows Vista will have the .NET Framework preinstalled - not sure though...);)
Reply With Quote
  #3 (permalink)  
Old April 29th, 2006, 09:33 AM
Registered User
 
Join Date: Mar 2006
Location: chongqing, chongqing, China.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thing the main proble is that you don't install the VS.

Reply With Quote
  #4 (permalink)  
Old April 29th, 2006, 01:17 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You can compile to native images, using ngen.exe, which comes with the SDK.

However all future versions of Windows will have the .NET framework installed and most instances of XP already have it.
It's a bit like the early days of VB, originally people needed to install the runtime but after a while all machines had it.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #5 (permalink)  
Old April 29th, 2006, 02:43 PM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Moreover, I feel it, would be worthwhile installing .NET frameworks on machines without it, as .NET apps are coming up in plenty.

Sreeram
Reply With Quote
  #6 (permalink)  
Old April 30th, 2006, 11:25 AM
Authorized User
 
Join Date: Sep 2003
Location: Ipswich UK, , United Kingdom.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MattLeek
Default

Ok Thanks!

I suppose .NET is something that could be included in the installer like DirectX is...providing the installer doesn't require it.

Thanks,
Matthew
Reply With Quote
  #7 (permalink)  
Old April 30th, 2006, 04:57 PM
Authorized User
 
Join Date: Apr 2006
Location: Horsens, , Denmark.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The installer doesn't require it - it is a msi installer and as such has the same requirements as all other msi files. Meaning the OS system has to know them - XP SP 2 knows them, but older Windows versions may need a patch installment of the msi loader.
But the installer can be made to check for an existing framework on the target machine and redirect to a Framework installer if needed - either an URL to the internet or a Path on a CD - your imagination is the limit :)

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors Compiling Jiffyman C++ Programming 5 October 16th, 2008 01:27 AM
help with compiling mastrgamr C++ Programming 5 November 13th, 2006 08:04 AM
Compiling Zweiglumen C# 0 February 3rd, 2005 10:38 AM
Compiling mod_jk2 eacostl Apache Tomcat 10 September 7th, 2004 08:06 PM
Compiling erro amc VB.NET 2002/2003 Basics 1 August 15th, 2004 10:51 AM



All times are GMT -4. The time now is 01:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.