Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloads .net Runtime fails #1263

Open
bflyman opened this issue Aug 17, 2023 · 4 comments
Open

Downloads .net Runtime fails #1263

bflyman opened this issue Aug 17, 2023 · 4 comments
Labels
client:csharp Issues raised by the C# extention(s) or users of that extension.

Comments

@bflyman
Copy link

bflyman commented Aug 17, 2023

VSCode always downloads.net Runtime 7.0.10 when it starts.

Found because the c# Dev kit extension is installed.

Disable the c# Dev kit and it will no longer download.

If installing the extension c# Dev kit., and downloading the.net runtime fails. LSP will assume that there is no Runtime.

I suspect there is a problem with the logic of detecting.NET runtime versions, because I already have the 7.0.400 sdk installed locally. Maybe it's a permission issue. He's not allowed to test. But there is no log explanation that it is a permission issue.

In addition I have added dotnetAcquisitionExtension existingDotnetPath configuration, but did not use.

It may be that the download address is not accessible in my area, but not detected after manual installation is a problem.

@baronfel baronfel added the client:csharp Issues raised by the C# extention(s) or users of that extension. label Aug 17, 2023
@gamefish
Copy link

gamefish commented Aug 22, 2023

If you are using unity, in settings file make sure you edit your dotnetAcquisitionExtension.existingDotnetPath like this:

"dotnetAcquisitionExtension.existingDotnetPath": [
        {
            "extensionId": "ms-dotnettools.csharp",
            "path": "/usr/local/share/dotnet/dotnet"
        },
        {
            "extensionId": "ms-dotnettools.csdevkit", 
            "path": "/usr/local/share/dotnet/dotnet"
        },
        {
            "extensionId": "visualstudiotoolsforunity.vstuc", 
            "path": "/usr/local/share/dotnet/dotnet"
        }
    
    ]

then restart vscode

@lifengl
Copy link

lifengl commented Nov 20, 2023

For C# Dev Kit:

to prevent the extension to download .NET runtime, you need install NET 7 SDK to the machine, and make sure it can be resolved through PATH environment. Also, the extension will always download the runtime, if the option to work with ad-hoc signed SDK is turned on for Mac machines. The option is only for developers to test daily SDK builds, and should not be used for common developing environment.

@Jillinger
Copy link

Jillinger commented Jan 12, 2024

I'm not using Unity.
I have the NET 7 SDK installed, and it can be resolved through PATH environment.

dotnet --list-runtimes
Microsoft.AspNetCore.All 2.1.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

dotnet --list-sdks
3.1.423 [C:\Program Files\dotnet\sdk]
5.0.401 [C:\Program Files\dotnet\sdk]
5.0.403 [C:\Program Files\dotnet\sdk]
6.0.405 [C:\Program Files\dotnet\sdk]
7.0.312 [C:\Program Files\dotnet\sdk]
8.0.101 [C:\Program Files\dotnet\sdk]

I'm still getting...

ms-dotnettools.csdevkit requested to download the .NET Runtime.
Downloading .NET version(s) 7.0.15~x64 .....

I'm on Windows.
Has this been resolved?

EDIT
Ah. I understand now from looking here.
Only, the colons (:) after "extensionId" and "path" are returning an error.

Expected cmma.

EDIT
Okay. That was my mistake.
I think it's fine now. after restarting VS Code.

ms-dotnettools.csdevkit requested to download the .NET Runtime.
Using configured .NET path: C:\Program Files\dotnet\dotnet.exe

@skroliks
Copy link

If you are using unity, in settings file make sure you edit your dotnetAcquisitionExtension.existingDotnetPath like this:

"dotnetAcquisitionExtension.existingDotnetPath": [
        {
            "extensionId": "ms-dotnettools.csharp",
            "path": "/usr/local/share/dotnet/dotnet"
        },
        {
            "extensionId": "ms-dotnettools.csdevkit", 
            "path": "/usr/local/share/dotnet/dotnet"
        },
        {
            "extensionId": "visualstudiotoolsforunity.vstuc", 
            "path": "/usr/local/share/dotnet/dotnet"
        }
    
    ]

then restart vscode

Where can I find this file? I'm so tied from all this bugs (((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client:csharp Issues raised by the C# extention(s) or users of that extension.
Projects
None yet
Development

No branches or pull requests

6 participants