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

[BUG] C# Dev kit not working on Surface laptop 7th edition (arm) #1708

Open
zachsteffens opened this issue Jan 4, 2025 · 1 comment
Open

Comments

@zachsteffens
Copy link

zachsteffens commented Jan 4, 2025

Describe the Issue

I am having the following issues when trying to get the C# dev kit installed on a surface laptop.

Failed to listen to project initialization status: Error: Activating the "Microsoft.VisualStudio.ProjectSystem.ProjectInitializationStatusService (0.1)" service failed.
Failed at 'Query for all projects' (719ms) with error: Error: Activating the "Microsoft.VisualStudio.ProjectSystem.Query.Remoting.QueryExecutionService (0.3)" service failed.
IdeBenefitsSource: Failed to fetch entitlements. Error: 'Error: Request to https://api.subscriptions.visualstudio.microsoft.com/Me/Entitlements/IDEBenefits?api-version=2023-03-26&caller=vscode failed with status code: 401 and response ""'

I followed along with the steps to fix covered in this issue #141, but they did not fix my problem.
After removing the extensions, deleting the folders and reinstalling the extensions, I get the following versions listed in the extensions folder

ms-dotnettools.csdevkit-1.15.13-win32-x64
ms-dotnettools.csharp-2.60.26-win32-x64

The same errors persist after re-installation.

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

  • OS: Windows_NT x64 10.0.26100
  • VSCode Version: 1.96.2
@zachsteffens zachsteffens added the bug Something isn't working label Jan 4, 2025
@zachsteffens zachsteffens changed the title [BUG] C# Dev kit not working on Surface laptop 7th (arm) [BUG] C# Dev kit not working on Surface laptop 7th edition (arm) Jan 4, 2025
@zachsteffens
Copy link
Author

I uninstalled VSCode and explicitly installed the ARM64 version from here https://code.visualstudio.com/download
and now my OS version is listed as
Windows_NT arm64 10.0.26100

I'm still having issues though.

Checking the dotnet version in the terminal returns
8.0.404

The C# dev kit output shows the following messages.

Using preinstalled .NET runtime at "C:\Program Files\dotnet\dotnet.exe" to load Dev Kit processes.
Found installed dotnet location "C:\Program Files\dotnet\dotnet.exe" to load projects.
.NET server STDERR: Failed to load the dll from [C:\Program Files\dotnet\host\fxr\8.0.11\hostfxr.dll], HRESULT: 0x800700C1

.NET server STDERR: The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\host\fxr\8.0.11\hostfxr.dll failed
  - Installing .NET prerequisites might help resolve this problem.
     https://go.microsoft.com/fwlink/?linkid=798306

.NET server exited with 2147516546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants