DNN Module Templates giving error "The type or namespace name 'DotNetNuke' could not be found"

1k Views Asked by At

I'm using Christoc's Module templates for .Net. Right out of the box I'm getting the error

The type or namespace name 'DotNetNuke' could not be found 

when trying to build the project in Visual Studio 2015.

I do have the DotNetNuke library in my references

I've tried adding different versions of this library, but no luck yet.

Any ideas?

Many thanks in advance.

PS: I currently have DNN v9.0 installed in my computer

1

There are 1 best solutions below

2
Hugo Nava Kopp On BEST ANSWER

After 2 hours I found the solution.

I need my project to target framework to 4.5 instead of 4.5.1.

I got this solution from here. I hope this helps someone.