Developer forum

Forum » Development » Code-hinting in DW 9.10

Code-hinting in DW 9.10

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Up until now, we have been following this guide to enable code-hinting in VS.
https://doc.dynamicweb.com/get-started/introduction/implementing/code-hinting-in-templates

When creating a new project, with the latest packages I now get a bunch of syntax errors in the code (see attachment).
Am I forgetting something, or is this due to the prepared move into DW 10, and that these templates should have been rewritten?

Also attached is the list of nuget packages installed.


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Martin,

We had to move some template functionality from the Dynamicweb package and into a separate provider package, since it will be replaced with a different implementation in DW10.
Make sure that you have a reference to the Dynamicweb.Rendering.Providers package and code-hinting (IntelliSense) should work again.

Best regards,
Morten

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks Morten, that helped :)

I still get a few syntax errors though, do you have any tips regarding them?
Should I add a reference netstandard too?

 
Nicolai Pedersen
Reply

Hi Martin

You can 'build' the template solution using ctrl+b (or whatever your shortcut). Your solution will not build, and maybe give you errors. That is fine. Somehow that triggers a copy and load of the references packages/dlls. Then sometimes I have to close the solution and open it again after an update and code hinting works again.

BR Nicolai

 
Nicolai Pedersen
Reply

RenderBlockList is a Rapido feature and requires Dynamicweb.Rapido package.

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Hi Nicolai!

The Dynamicweb.Rapido package is already added, the solution has been rebuilt several times, and VS has been closed and reopened.
But I still get the two last errors. It is no big deal, since everyting else looks like it is working, but just annoying :P

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Martin,

It's a known issue with .NET Standard...

You should be able to fix it by adding a reference to your project - either by installing NETStandard.Library package or by manually adding a reference in your project file (*.csproj).

You can find more details about the issue here: https://github.com/dotnet/standard/issues/391 

 

Votes for this answer: 1
 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks! The Pageview (netstandard) issue was fixed by adding this (below) to the web.config after I did what you said.

<compilation debug="true" targetFramework="4.7.2">
  <assemblies>
    <add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />
  </assemblies>
</compilation>

 

 

You must be logged in to post in the forum