Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedRazor Intellisense?Razor Intellisense?
Previous
 
Next
New Post
7/23/2015 12:37 PM
 

Is there a way to add intellisense in Visual Studio for the DotNetNuke.Web.Razor.Helpers classes?  What would the entries be in web.config so that when editing a .cshtml file and typing @Dnn. or @Html. or @Url. I would get intellisense on the available properties/methods, and also so that I would not get a compiler error like CS0103 "The name 'Dnn' does not exist in the current context"?

 
New Post
2/23/2017 8:40 PM
 
Pity this post hasn't gotten any answer so far as I'm struggling now with the same problem (the error code changed to CS0234 The type or namespace name 'ModuleID' does not exist in the namespace 'Dnn.Module' (are you missing an assembly reference?)

Anyone out there?

English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
New Post
2/24/2017 9:44 AM
 
Not that I didn't look for possible solutions.
The keys of

  opening square bracket system.web.webPages.razor  closing square bracket
        opening square bracket pages pageBaseType="DotNetNuke.Web.Razor.DotNetNukeWebPage"closing square bracket
          opening square bracket namespaces closing square bracket
            opening square bracket add namespace="WebMatrix.Data"closing square bracket
            opening square bracket add namespace="Microsoft.Web.Helpers"closing square bracket
          opening square bracket /namespacesclosing square bracket
        opening square bracket t /pagesclosing square bracket
 
as specified by Charles Nurse on http://www.dnnsoftware.com/community-blog/cid/136311/razor-tips-and-tricks-2-ndash-razorrsquos-custom-webconfig-file are indeed applied to the web host root of my DNN 8.0.3 installation on 4.6 .NET.

Have also tried to place a web.config file directly in the RazorModulesFolder but without any effect.

Therefore, should anyone have a handy solution to this, their help would be welcome.

English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
New Post
2/24/2017 9:56 AM
 
On the other hand the same Charles Nurse states on http://www.dnnsoftware.com/community-... that the web.config section should contain the key of
 "add namespace="DotNetNuke.Web.Razor.Helpers"

What a mess!

Where can I find the DotNetNuke.Web.Razor.Helpers library? Cannot find it myself on the web.
Anyone?
EDIT: the editor stripped the code as always therefore I had to add the key manually without the square brackets.


English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
New Post
2/24/2017 7:37 PM
 
Never mind my posts. I can do without the Dnn helpers. Can always use DotNetNuke.Entities namespace or leave the Dnn Razor objects as they are even though Visual Studio signals errors.
Yet it would be neat if there were such aids.

English-Polish translations, one-to-one English/Polish tutoring, Windows server management, website development - HTML/JS/CSS/Razor
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedRazor Intellisense?Razor Intellisense?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out