Assembling assemblies
Posted on 17 Jan 2006 at 16:25
Thomas Lee looks at what .NET assemblies are made up from and shows you how to make them
The CLR then checks to see if the assembly has previously been loaded and, if so, uses the previously loaded assembly memory image.
The CLR checks the Global Assembly Cache (GAC) and, if the assembly is found in there, it's used. I'll be covering the GAC in the next column too.
Finally, the CLR locates the assembly, either by using the codebase directive specified in the app's configuration file or via a process known as probing, described below.
Probing for an assembly isn't unlike the way Windows finds an app whose name you type at a DOS Command Prompt or into the Start/Run dialog box. The CLR first looks in the folder from which the app was launched: if not found there, the CLR then looks in the folders contained in the privatePath attribute of the
.NET gives you considerable flexibility in deployment. To deploy 'simple' apps, put all the related assemblies (the app and all of its libraries) into the same folder and just Xcopy this folder over to the client system. As I'll show you next month, for shared assemblies you can use the GAC. And you can use publisher policies to enable the CLR to redirect calls to updated versions of libraries.
In this article, we've seen what an assembly is, what it contains and how to create one. We've also examined how the .NET CLR locates and runs an assembly. Next month, I'll be looking at how you deploy .NET apps and examining the role of the GAC and the use of publisher policies.
advertisement
- Getting to grips with Microsoft's IT Health Environment Scanner
- Virtualise your servers
- The changing face of travel gadgets
- Build your own distributed file system
- The bulletproof Dell that costs an arm and a leg
- Microsoft Office 2010 Technical Preview: Q&A
- Lawnmowers, the TyTN II and one odd insurance request
- There'll never be a bulletproof OS
- How far can we trust apps?
- Five nice touches in Outlook 2010
- Why Britain's watchdogs have fewer teeth than goldfish
- Tabbed documents: how to make Office 2010 great
- Outlook 2010 People Pane – does it spell death to Xobni
- Microsoft Outlook 2010 screenshots
- Co-Authoring in Word 2010 and SharePoint Foundation 2010
- Microsoft Outlook 2010 screenshots: Backstage view
- Flash 10.1: Developing for Desktop and Device
- Microsoft Office 2010 screenshots: Recover unsaved items
- Microsoft Word 2010 screenshots: Text Effects
- Microsoft Word 2010: inserting screenshots
- Q&A: Why Conficker was a victim of its own success
- App developers losing faith in Android
- Biz Stone: Murdoch's Google veto will "fail fast"
- Google adds automatic captions to YouTube
- China ramps up cyber spying
- Mozilla maintains dependence on Google
- Windows 7 flying off the shelves
- Google Chrome OS: full details unveiled
- AOL slashes 2,500 jobs
- YouTube begins streaming full-length shows
advertisement
Printed from www.pcpro.co.uk


