Odd downgrade warning for nuget packages rider 2024.3
After upgrading to Rider 2024.3 my solution has started complaining about package downgrade from version 0.0.0 to 1.1.6. In my opinion this should not be a downgrade…
Error NU1605 : Warning As Error: Detected package downgrade: knockout.TypeScript.DefinitelyTyped from 0.0.0 to 1.1.6. Reference the package directly from the project to select a different version.
BN.Web.PublicPortal.Tests -> BN.Web.PublicPortal -> knockout.mapping.TypeScript.DefinitelyTyped 0.2.8 -> knockout.TypeScript.DefinitelyTyped
BN.Web.PublicPortal.Tests -> BN.Web.PublicPortal -> knockout.TypeScript.DefinitelyTyped (>= 1.1.6)Anyone experiencing the same problem? Is this Rider related, or nuget?
Please sign in to leave a comment.
Have been dealing with this for about a week now. Have found that nuget restore appears to be where the issue happens in rider (i.e. the errors appear first in the nuget restore step). Then on solution build, they're the first build errors that display (we have warning as error on, so the build fails).
I've found that nuget restore at the command line works fine - and doesn't display the same errors as the rider restore.
Also building in Visual Studio is fine and it doesn't display any errors.
I initially got around this by adding the errors to the “NoWarn” collection or similar in the project config, but this doesn't seem to be the best approach.
I'm also on Rider 2024.3
I solved the problem by removing the package references, which was way overdue in my case, but that is of course not the solution for everybody :)
Notice the same error in my project as well. Looks like Rider has the errors but `dotnet restore` works just fine as does visual studio. However, unlike Garmann I am not able to remove these package references so that fix wont work for me this time around. Also only started happening in Rider 2024.3. Anyone know if a bug ticket for this has been created yet?
Hello,
Thank you for reporting the issue. It might be related to this issue:
To take a closer look at the issue, we will need some additional information. Please do the following:
Thank you in advance and have a great day!