Wrox Programmer Forums
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 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 October 1st, 2007, 06:18 AM
Registered User
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Common Language Runtime

What is the exact role of CLR in dot net framework?

Old October 1st, 2007, 07:58 AM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts

Our book Professional .NET Framework 2.0 would be a very good source to answer a question like this:

Here's the explanation of the CLR from chapter 1 of that book, which you can read along with 200 other Wrox books as part of a wrox.books24x7.com subscription:

First, the Common Language Runtime (CLR) is the virtual execution environment — sometimes called a virtual machine — that is responsible for executing managed code. Managed code is any code written in a high-level language such as C#, Visual Basic, C++/CLI, IronPython, and the like, which is compiled into the CLR's binary format, an assembly, and which represents its executable portion using Intermediate Language (IL). Assemblies contain self-descriptive program metadata and instructions that conform to the CLR's type system specification. The CLR then takes this metadata and IL, and compiles it into executable code. This code contains hooks into CLR services and Win32, and ultimately ends up as the native instruction set for the machine being run on. This happens through a process called just-in-time (JIT) compilation. The result of that can finally be run.

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Wrox online library: http://wrox.books24x7.com
Old October 2nd, 2007, 12:02 AM
Registered User
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

What about Visual Studio IDE? Is it having built in CLR? When we build the solution, we can execute the application. How does it happen?

Old October 3rd, 2007, 01:02 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Visual Studio is presumably built in .NET. It runs on the CLR. The CLR is not built into Visual Studio. When you "run" a program in Visual Studio, you are really compiling the application using msbuild, starting the program in its own process and attaching the Visual Studio debugger to that process.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Profile common bendjoe BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 13 October 12th, 2010 02:26 AM
Common value scandalous Excel VBA 1 December 21st, 2007 11:01 PM
svchost .exe common language runtime error supasue VS.NET 2002/2003 0 October 25th, 2006 05:11 AM
common code austinf XSLT 3 May 3rd, 2006 09:38 AM
Common question, not so common answer? flyin ADO.NET 5 March 24th, 2004 06:50 PM

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