[CSHARP-3798] Cannot install 2.13.1 MongoDB.Driver in latest Visual Studio Code Created: 16/Aug/21 Updated: 27/Oct/23 Resolved: 16/Aug/21 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Unknown |
| Reporter: | Torsten Spindler | Assignee: | James Kovacs |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Hello, I've tried to write a 'hello world' like C# application for MongoDB and I'm blocked on installing the MongoDB.Driver:
The csproj file states:
And the only SDK installed is 5.0.400:
Torsten |
| Comments |
| Comment by James Kovacs [ 16/Aug/21 ] | ||||||
|
Thank you for confirming that this fixed your issue. | ||||||
| Comment by Torsten Spindler [ 16/Aug/21 ] | ||||||
|
Placing the good NuGet.Config in the right place made it work. To find the right place I used thanks to your advice and checked %appdata%\NuGet\NuGet.Config . This file contained:
When I put your config in, the output of nuget list source was:
| ||||||
| Comment by James Kovacs [ 16/Aug/21 ] | ||||||
|
Microsoft relatively recently changed the behaviour of dotnet/nuget to respect empty NuGet.Config files: https://github.com/NuGet/NuGet.Client/pull/3907
Please let us know if this resolves your issue. |