ErikTJ
ErikTJ

Reputation: 2009

Problem with references; have to manually copy dll's to prevent error every build

I have just started my project but have run into problems which is preventing me from working.

The error is:

The type or namespace name 'NHibernateImportLib' could not be found (are you missing a using directive or an assembly reference?)

Now, if i set 'Copy Local' to False for the NHibernate reference in 'NHibernateImportLib' it build but later i have to copy my NHibernate dll to my output directory for the application to work properly.

What is going on here?

Upvotes: 0

Views: 499

Answers (2)

Unmesh Kondolikar
Unmesh Kondolikar

Reputation: 9312

Is the assembly added to GAC? It might be possible that on your deployment target machine this assembly is not present in GAC and hence it works only when you copy it into the local directory.

Upvotes: 0

ErikTJ
ErikTJ

Reputation: 2009

Mismatching target frameworks.

Upvotes: 1

Related Questions