DNN Can`t add reference

736 views Asked by At

I am using Christoc DotNetNuke Module and Theme Development Template to create new module for DNN 7 and try to add reference to my external .dll file.

I am able to access my library, I have intellisense, everything seem's to be ok, but when I build my solution, it give's me an error:

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

In same solution, I was add reference with Nuget console and everything works fine. I thing the problem is in Build Script, especially in Module Package targets but I can't figure it out.

Tested my library in other project (not DNN, just pure asp.net) and works fine.

Someone help?

1

There are 1 answers

0
Harry Birimirski On BEST ANSWER

The problem was in target framework of external lib . It was .net 4.5 , but module is on 4.0 , so that was the problem. Recompiled lib in 4.0 , add it again and everything works fine now. Thank you all for the help