Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NU1108 error while installing DotLiquid with .Net Core

I have ASP.NET Core 2.2 i am trying to install dotliquid using nuget

Install-Package DotLiquid -Version 2.0.298

but getting error

enter image description here

Does DotLiquid support .NET Core 2.2 ?

like image 618
LP13 Avatar asked Dec 18 '22 17:12

LP13


1 Answers

Update: Actually, I can reproduce your problem.

It seems to be because your solution or project is also called DotLiquid. When I create a new ASP.NET Core 2.2 web application called DotLiquid, just as you have in your screenshot, then I also get the cycles error:

Edit: This is apparently by design.

Project and solution named the same as the NuGet package

However, if I create an application with any other name, it installs fine.

Original answer

I just created a new ASP.NET Core 2.2 web application, and installed the latest version of DotLiquid - version 2.0.314 - and it installed successfully. Try that version instead of 2.0.298.

like image 112
John H Avatar answered Jan 18 '23 15:01

John H