[CSHARP-4608] cannot install C# driver using Windows and .NET SDK 6.0 (or 7.0) Created: 10/Apr/23 Updated: 11/May/23 Resolved: 05/May/23 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | Boris Dogadov |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||
| Description |
| Comments |
| Comment by Eric Milkie [ 05/May/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ah I see, it is something specific to how we set up our Evergreen instances then. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Boris Dogadov [ 05/May/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for validating this, I don't think any docs changes are required as having the correct nuget source is just a part of regular dotnet environment setup, and not tied to our driver. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Milkie [ 05/May/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks, that does work. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Boris Dogadov [ 05/May/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I was able to reproduce that issue following the mentioned steps (I have RDPed into the host).
The default source was missing from the initial config for some reason:
.NET frameworks installed:
Please let us know if you observe any other problems in this area. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Milkie [ 12/Apr/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks James, I'm using Linux for my purposes now. I really thought I needed to use Windows to get the best experience here – I was sorely mistaken! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by James Kovacs [ 12/Apr/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried installing .NET 7 on our Windows spawnhosts - specifically windows-2022-small and windows-64-vs2019-small - and saw similar though not identical failures. .NET 7 installed but then complained bitterly about HOME and USERPROFILE environment variables not being defined. Even when I set them it still complained that they were unset. My best guess is something weird with cygwin (because I ssh'd into the boxes), but I saw the same problem when I ran powershell.exe. Our EG scripts are bash running on cygwin and launch powershell.exe as needed. We use Microsoft's dotnet-install.ps1 to download and install .NET Core 2.1, .NET Core 3.1, .NET 5, and .NET 6 on the Windows spawnhosts to run our driver tests. So I know this works. We will continue investigating but in the meantime if you're not doing anything Windows specific, .NET on Linux (and MacOS) works quite well. Feel free to reach out if you have any questions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Milkie [ 12/Apr/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Interesting data point: I have now successfully installed the driver on both MacOS and on Fedora Linux with .NET 7.0, so it's really mysterious why it's not working for me on Windows. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eric Milkie [ 10/Apr/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Output of Command Prompt during step 3 reproducer step:
|