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 .
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.)
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.
RaeKC
Member
101 Points
366 Posts
which type of project is needed for Beerhouse site?
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.
Rachel
Lee Dumond
Contributor
6404 Points
1173 Posts
Re: which type of project is needed for Beerhouse site?
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.
Follow Me on Twitter
RaeKC
Member
101 Points
366 Posts
Re: which type of project is needed for Beerhouse 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?
Rachel
Lee Dumond
Contributor
6404 Points
1173 Posts
Re: which type of project is needed for Beerhouse site?
Jan 09, 2009 04:34 PM|LINK
Not exactly.
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).
Follow Me on Twitter
RaeKC
Member
101 Points
366 Posts
Re: which type of project is needed for Beerhouse site?
Jan 09, 2009 05:53 PM|LINK
Thanks a lot, Lee.
Rachel
RaeKC
Member
101 Points
366 Posts
Re: which type of project is needed for Beerhouse site?
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 .
Rachel
Lee Dumond
Contributor
6404 Points
1173 Posts
Re: which type of project is needed for Beerhouse site?
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.)
Follow Me on Twitter
RaeKC
Member
101 Points
366 Posts
Re: which type of project is needed for Beerhouse site?
Jan 09, 2009 10:21 PM|LINK
Hi:
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.
Rachel