I have business layer in my solution. I added console project to the solution. Added necessary reference to console application. Created instances of classes in business layer. I’m using resharper so code looks correct.
when I try to build I get the error like
Error 127 The type or namespace name 'BusinessLayer' could not be found (are you missing a using directive or an assembly reference?) C:\ConsoleApplication\Program.cs 13 25
if I reference business layer from web project under the same solution it compiles, but with console it’s not.
do you have any idea what can be the problem?
Add
using BusinessLayer;in the top of your application, if you already did that, then try to clean and rebuild the solution.Also make sure that both the library and the console application have the same .net framework version, for example both are 4.0 and not one of them 4.0 client profile…