Last post Jan 09, 2009 11:21 PM by RaeKC
Jan 09, 2009 04:48 PM|RaeKC|LINK
I'm on page 109 in Beerhouse book.
What kind of project do I need to make for the website? The book doesn't instruct on this. Do I choose New project --> Windows Form Application
or Class Library? I'm assuming its a class library but this is all new to me.
Jan 09, 2009 05:04 PM|Lee Dumond|LINK
Class Library. If you notice in the code download, TBHCustomEvents is a class library. Then, you need to add a reference to it in the web site.
Jan 09, 2009 05:12 PM|RaeKC|LINK
Thanks. So when you add the reference while in the solution for the website, it adds in that project file to the website?
Jan 09, 2009 05:34 PM|Lee Dumond|LINK
You add the class library project to the solution first (right click on Solution, Add Project, Class Library).
Then, you build whatever functionality you want into the library.
Then, you add a reference to the above project from the web site (right click on web site, Add Reference, Projects tab).
Jan 09, 2009 06:53 PM|RaeKC|LINK
Thanks a lot, Lee.
Jan 09, 2009 08:23 PM|RaeKC|LINK
Why do they have two projects under the downloaded chapters for the Beerhouse project? Under chapter 3, 4 & 5 they have a project called TBHCustomEvents AND TBH_CustomEvents .
Jan 09, 2009 09:13 PM|Lee Dumond|LINK
Do they? I have never looked at the individual chapter downloads. That's not right if they have that.
If you look at the main complete download, you will see there is only one class library project called TBHCustomEvents that corresponds to the MB.TheBeerHouse.CustomEvent.dll.
(You will also see TBH_Setup and TBH_Deploy projects which are not class libraries. Don't worry about them for now.)
Jan 09, 2009 11:21 PM|RaeKC|LINK
I double clicked on both of them separately to see what the diff was. When one opened, the entire project opened, with the website solution. On the other one, "TBHCustomEvents" opens by itself without the web solution. Looking at both, its the same code.