DNN 模块模板给出错误 "The type or namespace name 'DotNetNuke' could not be found"

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

我正在为 .Net 使用 Christoc's Module templates。开箱即用,我收到错误

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

在 Visual Studio 2015 年尝试构建项目时。

我的参考文献中确实有 DotNetNuke

我试过添加这个库的不同版本,但还没有成功。

有什么想法吗?

非常感谢。

PS: 我的电脑目前安装了 DNN v9.0

2 小时后我找到了解决方案。

我需要我的项目 将框架定位到 4.5 而不是 4.5.1.

我从 here 那里得到了这个解决方案。 我希望这对某人有所帮助。