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 ShaikhPosted Apr 15, 2013, 3:23 PM
Andrew Mc GlonePosted Apr 15, 2013, 3:07 PM
Javeed M ShaikhPosted Apr 15, 2013, 3:02 PM
Andrew Mc GlonePosted Apr 15, 2013, 2:53 PM
I can't figure out why I didn't get a .dll when I executed the program.
Andrew Mc GlonePosted Apr 15, 2013, 2:48 PM
Andrew Mc GlonePosted Apr 15, 2013, 2:35 PM
It says ....A project with an Output Type of Class Library cannot be started directly.
Javeed M ShaikhPosted Apr 15, 2013, 1:33 PM
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.