.netdotnetnukedotnetnuke-moduledotnetnuke-9

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


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


Solution

  • 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.