Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2006, 08:22 PM
Authorized User
 
Join Date: Sep 2003
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
 
Old April 29th, 2006, 02:08 AM
Authorized User
 
Join Date: Apr 2006
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...);)
 
Old April 29th, 2006, 09:33 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old April 29th, 2006, 01:17 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
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)
 
Old April 29th, 2006, 02:43 PM
Authorized User
 
Join Date: Mar 2006
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
 
Old April 30th, 2006, 11:25 AM
Authorized User
 
Join Date: Sep 2003
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
 
Old April 30th, 2006, 04:57 PM
Authorized User
 
Join Date: Apr 2006
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 :)






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.