Rider does not solve local artifax server nuget references.
Rider does not solve local our nuget references from local server, Nuget server is hosted by ProGet v4.8.9.
In the project I have. In the solution folder I have nuget.conig, which clears.
I would gues it is realetd that we have mixed projects in the solution. Some is new SDK and some is old VS csproj style projects. Most of the pjojects is targeting 4.7.2 framework.
Tried to tweak nuget source add local user package folder (C:\Users\<USER>nuget\packages) - did not helped.
Ether package is downloaded to "C:\Users\Vidmantas\.nuget\packages" but looks like it is not resolved. And it is for packages from our local nuget server.
Tried different option in the Nuget settings - but did not helped.
Any ideas - how I could solve it?
Using latest Rider v2023.1.3
Note: VS resolves dependencies without any issue.
Please sign in to leave a comment.
Hello Vdrasutis,
Thank you for reaching Rider Forum.
Could you please provide me with the following details :
Thank you in advance!
1. When I opening solution and/or trying to build project i see errors like this:
XXXX.cs(13, 7): [CS0246] The type or namespace name 'Viavi' could not be found (are you missing a using directive or an assembly reference?)
2. local server - Nuget server in the organization network (not public ones like nuget.org :) )
3. Uploaded logs and some screenshots, use latest log.
I do not see any error except - in UI shows that can`t resolve reference.
Upload id: 2023_07_02_YHFvGQTYxQmEkA4ErPJodJ (file: Rider_Nugets_IsNotResolved.zip).
Hello Vdrasutis,
Thank you for the provided details.
After close consideration it has been decided to take a closer look alongside Rider's developers. I have created issue with the ID RIDER-96621, so you could monitor the progress ( please press the Watch issue button).
Have a nice day!
Solved
In Rider go to:
File -> Settings ->"Build, Execution, Deployment" -> "Tools and Build" ->
By default "MSBuild version" was ""C:\Program Files\dotnet\sdk\7.0.306\MSBuild.dll"" - which was cousing those nugets to be not resolved. Commented solution in RIDER-96621