Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Issue with NuGet package Dynamicweb.Admin.9.6.5

Issue with NuGet package Dynamicweb.Admin.9.6.5

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

When trying to install Dynamicweb.Admin.9.6.5, we get this error;

Attempting to resolve dependencies for package 'Dynamicweb.Admin.9.6.5' with DependencyBehavior 'Lowest'
Unable to resolve dependency 'RazorEngine.Roslyn'.

 

We also see an issue with the Dynamicweb-package:

Attempting to resolve dependencies for package 'Dynamicweb.9.6.20' with DependencyBehavior 'Lowest'
Unable to find a version of 'Dynamicweb.Caching' that is compatible with 'Dynamicweb 9.6.20 constraint: Dynamicweb.Caching (>= 2.1.0)', 'Dynamicweb.DataProcessing 1.0.10 constraint: Dynamicweb.Caching (>= 2.1.0)', 'Dynamicweb.SmartSearch 1.1.5 constraint: Dynamicweb.Caching (>= 1.2.1)'.

 

I seems to be a 9.6-issue as it is working for 9.5.x.

 

Best regards, Anders


Replies

 
Martin Gammelholm
Martin Gammelholm
Reply

Hi Anders,

This is a known issue. Unfortunately we can't fix it, but there is a workaround.
I've got an answer from a developer, that I will paste here:

The issue is caused by the fact that RazorEngine.Roslyn is a prerelease package and apparently the NuGet package manager does not support stable release packages with prerelease dependencies. There is an open issue on github related to this: https://github.com/NuGet/Home/issues/2944

There is no stable release of the RazorEngine.Roslyn package and since the RazorEngine project seems to be abandoned there probably never will be a stable release.

This means that there is no simple fix, because we have no control over those issues.

We could remove the dependency on RazorEngine.Roslyn, but that would break all sites that use C# 6 syntax in razor templates.

The only viable option is to replace RazorEngine and RazorEngine.Roslyn with something else which will probably not happen before Dynamicweb 10 (feature 62514).

Until then the initial installation of packages should be done by using the package manager console workaround.

 

Workaround:

Install using the package manager console:

Install-Package Dynamicweb.Admin -Version 9.6.4 –IncludePrerelease

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am having the same situation but with an existing solution.

How do I upgrade in this situation?

Thank you,
Adrian

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Install using the package manager console:

Install-Package Dynamicweb.Admin -Version 9.6.4 –IncludePrerelease

Votes for this answer: 2
 
Hans Kloppenborg
Reply

Hi Nicolai,

Maybe you could put this message/warning also in the release notes/download page. 

Greets Hans

 

You must be logged in to post in the forum