Open MarneeDear opened 3 years ago
In this case, you need to pin the nuget packages to specific version, like
nuget Otp.NET ~> 3.0.0
Yes, I understand. That is why I said this in my original issue report:
I have tried to specify the version in my dependencies file but I have had to do this for 6 packages so far and I am afraid I will have to do this with tons of them.
I think this is the same thing as I raised quite some time ago. Unfortunately not solved: https://github.com/fsprojects/Paket/issues/2818
I got the same issue - at some point after net5 release I ran paket update and it happily updated, everything compiled, the tests ran, so I thought: no problem.
Until I tried to run the project and got issues at runtime about tons of net5 assemblies.
Description
I have an asp.net core app (netcore 3.1). I am trying to install packages with paket. I only want it to install the packages that are compatible with netcoreapp3.1 but it is installing the latest which only work with net5.0.
This causes the app to fail to build due to incompatibility with certain packages. I have tried to specify the version in my dependencies file but I have had to do this for 6 packages so far and I am afraid I will have to do this with tons of them.
Is there a way I can tell paket to only use packages compatible with netcoreapp3.1? Am I doing something wrong?
This is the dependencies file. The ones I have commented out were the packages I had to add explicitly with a version specified.
This is an example of the error I get:
C:\Users\marnee\Documents\mister\application\mister-admin\src\WebHost\WebHost.fsproj : error NU1202: Package Microsoft.AspNetCore.Authentication.JwtBearer 5.0.1 is not compatible with netcoreapp3.1
Project file:
Paket version: