Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Professional ASP.NET 4.5 in C# and VB by Jason N. Gaylord, Christian Wenz, Pranav Rastogi, Todd Miranda, Scott Hanselman; ISBN: 978-1-1183-1182-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 4.5 : in C# and VB 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
  #1 (permalink)  
Old August 28th, 2013, 10:04 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Build Providers

I was having a play with the book's C# download code relating to build providers pages 87-93, chapter 3.

I have it all working fine however one thing is puzzling me. When I create my own solution and add a custom build provider in a class library, as described in the book, I find I need to add a reference to the class library. Now that is what I would expect, and it all works fine when I do so. What is a mystery to me is that the book's download code appears not to need this reference to work.

Furthermore, when a new class library is added to the book's download code and defines a new build provider, then a reference is needed for that new build provider to work while the original car build provider continues to works happily without one. I wonder if someone can tell me how the CarBuildProvider is being referenced and how that technique can be similarly applied to a new build provider class library.

Thank you.
  #2 (permalink)  
Old September 1st, 2013, 05:06 PM
Authorized User
Points: 175, Level: 3
Points: 175, Level: 3 Points: 175, Level: 3 Points: 175, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2013
Location: St.Petersburg, Russia
Posts: 36
Thanks: 1
Thanked 4 Times in 4 Posts
Default

May be I did not get your question completely, but it looks like it is in web.config:

Code:
<buildProviders>
   <add extension=".car" type="CarBuildProvider.Car"/>
</buildProviders>
type="Namespace.ClassName"


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Providers arun_babu_a BOOK: Beginning Visual C# 2010 1 November 1st, 2011 11:55 PM
Microsoft Access Providers to Replace the Built-In SQL Server Providers turben_1 ASP.NET 2.0 Basics 1 March 14th, 2010 05:57 AM
Providers!!! dpkbahuguna Beginning VB 6 0 July 2nd, 2007 07:17 AM
Personalization Providers AGS BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 December 3rd, 2005 08:44 AM
Custom Providers bmains ASP.NET 2.0 Basics 1 September 15th, 2004 12:30 PM





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