Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 09, 2009 10:21 PM by RaeKC
Jan 09, 2009 03:48 PM|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 04:04 PM|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 04:12 PM|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 04:34 PM|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 05:53 PM|LINK
Thanks a lot, Lee.
Jan 09, 2009 07:23 PM|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 08:13 PM|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 10:21 PM|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.