Hello @McDonald, Ronald,
Welcome to Microsoft Q&A forum.
Please try to enable the TLS1.2(run following commands in CMD) and then try to get a NuGet package again.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" /v DisabledByDefault /t REG_DWORD /d 0 /f /reg:32
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" /v DisabledByDefault /t REG_DWORD /d 0 /f /reg:64
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" /v Enabled /t REG_DWORD /d 1 /f /reg:32
reg add "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" /v Enabled /t REG_DWORD /d 1 /f /reg:64
If this doesn’t work, please try following:
- Press Win + R, type
regedit
, navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319
, add a new registry entry calledSchUseStrongCrypto
, set its type toDWord
, set its value to1
. - Follow this document: Clearing local folders to clean NuGet cache.
- Try to repair/update Visual Studio from VS Installer.
- If possible, try to open Developer Command Prompt for Visual Studio 2022, run
devenv /ResetSettings
to reset VS settings.
Feel free to let us know if above methods work.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.