Hi,
I am going through some examples in a book called Pro C# 5.0 and the .NET 4.5 Framework and I can't get an example to work. In Chapter 15 there is one example, I think it needs a .dll as a reference in order to run but I am not sure.
It says create a new C# Console Application named VehicleDescriptionAttributeReader. Then set a reference to the AttributedCarLibrary assembly (an earlier example in the book). Finally enter some code and run it. From what I can gather it wants me to create a reference to a .dll file that AttributedCarLibrary would have generated when I built it. When I look in bin\Debug or release\ there is no .dll file there.
I tried creating a reference but the only reference I can link it to is AttributedCarLibrary.exe. There is no .dll file. When I run it I still get an error
Error 1 The type or namespace name 'AttributedCarLibrary' could not be found (are you missing a using directive or an assembly reference?)
Any ideas ? Maybe I need to generate a .dll file somewhere. I cannot figure it out.

Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 15, 2013, 9:33 AM EDT
I took a look at this chapter and it says that you need to copy the AttributedCarLibrary.dll in the bin/Debug folder, so i guess the .dll has to be present so can you check may be it is with the sample projects that might have come with the book.
Andrew Mc Glone9 reputationPosted Apr 15, 2013, 10:35 AM EDT
It says ....A project with an Output Type of Class Library cannot be started directly.
Andrew Mc Glone9 reputationPosted Apr 15, 2013, 10:48 AM EDT
Andrew Mc Glone9 reputationPosted Apr 15, 2013, 10:53 AM EDT
I can't figure out why I didn't get a .dll when I executed the program.
Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 15, 2013, 11:02 AM EDT
Andrew Mc Glone9 reputationPosted Apr 15, 2013, 11:07 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 15, 2013, 11:23 AM EDT