ChrisHammond / DNNTemplates

Christoc's DotNetNuke Extension Development templates for Visual Studio
http://www.christoc.com/Products/DNN-Development-Templates
Other
97 stars 38 forks source link

Intellisense Issue in MVC Templates #51

Closed swalker1595 closed 3 years ago

swalker1595 commented 6 years ago

When using the DnnHtmlHelper Expressions, Visual Studio throws the exception:

"The type 'Expression<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

For example:

@Html.TextBoxFor(m => Model.DisplayTime)

Although a reference to System.Core already exist in the project.

As a work around, I copied the System.Core.dll into the DNNPlatform /bin/ folder. Is there a better way of handling this?

cklenk commented 5 years ago

@shanewalker1595 I have the same issue too! I tried your workaround but it says this component is already automatically referenced by the build system.

ChrisHammond commented 3 years ago

This isn't something I have found a fix for.