Developer forum

Forum » Development » Creating project via nuget 9.10 + issues

Creating project via nuget 9.10 + issues

Jan Sangill
Reply

Hi,
What is the proper procedure to install a DW 9.10 and above solution with nuget now?

Install-Package Dynamicweb.Admin -Version 9.12.2 –IncludePrerelease wont work in a asp.net core web application and wont work in a Net framework  project.

So, what is the procedure. Am I missing something? Or is this simply not possible from 9.10 and above now? No issues with 9.9.X.

Any advice is GREATLY appreciated.

//jan


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Jan,

To answer the question directly, however cheekily. The procedure is as you specify, or using the NuGet Package Manager in Visual Studio in lieu of the Package Manager Console. You do, however, need to make sure that you're not using any other Dynamicweb package feeds than NuGet.org. If you still reference any Dynamicweb feeds on MyGet, you must remove them.

I've just installed Dynamicweb.Admin 9.12.2 in Visual Studio 2019 on an ASP.NET Web Application running .NET Framework 4.7.2 using the command you specify, and it works as expected. Dynamicweb 9 is not now nor will it ever be .NET Core compatible, so you're right that it won't work in an ASP.NET Core application. Dynamicweb 10 will run on the new .NET stack, specifically .NET 5 (or probably .NET 6 by the time it comes out).

You say that the install command won't work in .NET Framework, why? What are you experiencing? It's not easy to assist when you don't specify what issues you're running into. Granted, I haven't tried to install a 9.10 solution using this method, but the latest 9.12 works just fine for me.

- Jeppe

 
Jan Sangill
Reply

Hi Jeppe, 
I am getting this error when installing 9.10.X and above:

Install failed. Rolling back...
Package 'Dynamicweb.SmartSearch.Providers.User.2.1.4 : Dynamicweb [9.4.49, ), Dynamicweb.Core [3.1.0, ), Dynamicweb.Ecommerce [1.8.99, ), Dynamicweb.Extensibility [3.2.4, ), Dynamicweb.Security [5.2.4, ), Dynamicweb.SmartSearch [1.2.4, )' does not exist in project 'WebApplication4'

Same procedure as I would with an older DW - 9.9.X - and it works.

Just had a colleague do it - and it works for him with 9.12.2 - as it did for you.

I just installed a 9.9.X too. Worked like a charm.

So the question is. Why dont Dynamicweb 9.10.X like me?:)
 

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

I've just repeated the excercise with Dynamicweb.Admin 9.10.17 (latest, as of released yesterday), and again it installed without errors.

Seeing as both your colleague and I were able to install these packages without incident, my guess is that the issue is local to your machine. Could you try some or all of the following?

  • Clear your local NuGet package cache
  • Make sure that you don't have any package source other that NuGet.org for Dynamicweb packages
  • Make sure your NuGet dependency resolution is set to Lowest
  • Try installing using the latest Dynamicweb.Admin 9.10 or 9.12 (9.10.17 / 9.12.2) if you haven't already
  • Try installing the package into an empty ASP.NET Web Application using .NET Framework 4.7.2 or later if you aren't already

My guess is that there's a package in your cache that is corrupt or causing the issue in some way. Clearing your local cache should fix this.

- Jeppe

Votes for this answer: 1
 
Jan Sangill
Reply

Hi Jeppe, I thank you for the indsight.

"My guess is that there's a package in your cache that is corrupt or causing the issue in some way". And you were correct!

Next time I will check that first:) Thank you!

 

You must be logged in to post in the forum