0

I added a project reference of my Business Logic project to my console application. I can reference the project and its classes in the code of my console application. Weirdly, when I build the project, the build fails and the classes which referenced says Type is not defined.Has anybody come across an issue like this?

4
  • Have your tried building just your Business Logic project first, and then the console application? Perhaps the Business Logic project does not build and therefore not move a new DLL to your console application? Commented Nov 19, 2012 at 8:50
  • yes I tried it. No luck. Commented Nov 19, 2012 at 8:51
  • @Joshua:What type of project your Business Logic project ? Isn't it a class library project? Commented Nov 19, 2012 at 9:08
  • its a class library project... Commented Nov 19, 2012 at 10:07

2 Answers 2

1

You have to import name space in your console application class where you are trying to use the business logic application class.

Sign up to request clarification or add additional context in comments.

1 Comment

Then you have to show code file (.cs or .vb) with which you are trying.
0

I have selected the incorrect target framework .net framework client profile 4.0 where it should be .net framework 4. Issue rectified and now I can build the project.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.