Andrew Mc Glone

Andrew Mc Glone

  • NA
  • 9
  • 1.9k

C# Visual Studio 2012 - Creating reference

Apr 15 2013 1:02 PM

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.


Answers (7)