-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Failed to resolve well-known type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions' #73651
Comments
Definitely related to #70927 @JohnGalt1717 would you mind providing a little more info
@JamesNK any initial thoughts on what might be going wrong here? Potentially a mismatch somehow between the analyzer being loaded and the versions of the aspnet core libraries? |
This has been an ongoing issue for me as well. Same versions of VS Code, C# Dev Kit, and C# Extension. Often accompanied by |
Oddly, if I open the same project in VS.net 2022 Preview, it gets the same error. This may not be related to VS Code as I thought. StreamJsonRpc.RemoteInvocationException: Failed to resolve well-known type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions'. |
Same issue. Dotnet 8.0.101. Blazor. Mac os. Vs code 1.85.2 |
As a less than perfect workaround I find that closing the folder and reloading the same folder again eliminates the issue for an indeterminate length of time. Sometimes as long as four hours but other times as short as 15 minutes. Maybe this can also offer a clue and help with reproducing. In my case these pop up’s don’t start to appear immediately. |
I am getting the same issue. The constant notifications are a real pain almost every key stroke once they start coming. If they could go away I could manage. I tried turning off C# notifications via the gear in the notification message, but still get the notification. I would guess that setting only covers general notifications, but not errors. How can I help solve this? I am new to this process, but want to contribute to a solution. Can you point me to source of notification. I could work back from there. If you beat me to a solution we all win. |
@Asdfg75 I have created a separate issue for this here: dotnet/vscode-csharp#6977 |
I'm experiencing the same issue, Intellisense stops working after a this notification appears. It's quite frustrating because I have to visit every Razor component to reactivate correct Intellisense every time I reload the project (this is propably another issue related to razor/vscode). I've noticed that this issue often correlates with version control. Specifically, when I open file changes and then edit the file, this notification triggers. |
Same, I have to close VS Code and reopen |
Same issue here, disabled all extensions except C# on my Windows machine using .Net8 Blazor SSR Error occurs when, as soon as a
in the following circumstances:
|
Summary: seems to be inconsistent error in the route embedded language feature, both in VS and VSCode. Stack trace
|
Razor issues with semantic tokens are tracked here - dotnet/razor#9598 |
Type: Bug
Issue Description
I'm constantly getting this error after opening a project.
Steps to Reproduce
Open C# project.
Expected Behavior
Should work without error
Actual Behavior
Throws error with popup and in the C# output. Won't follow any links, errors, warnings, or lookup implmentations etc.
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.85.1
C# Extension: 2.14.8
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 8.0.100 Commit: 57efcf1350 Workload version: 8.0.100-manifests.71b9f198Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.100\
.NET workloads installed:
Workload version: 8.0.100-manifests.71b9f198
[aspire]
Installation Source: SDK 8.0.100, VS 17.9.34321.82
Manifest Version: 8.0.0-preview.1.23557.2/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.0.0-preview.1.23557.2\WorkloadManifest.json
Install Type: Msi
[maui-windows]
Installation Source: VS 17.8.34330.188
Manifest Version: 8.0.3/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.3\WorkloadManifest.json
Install Type: Msi
[maccatalyst]
Installation Source: VS 17.8.34330.188
Manifest Version: 17.0.8478/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.0.8478\WorkloadManifest.json
Install Type: Msi
[ios]
Installation Source: VS 17.8.34330.188
Manifest Version: 17.0.8478/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.0.8478\WorkloadManifest.json
Install Type: Msi
[android]
Installation Source: VS 17.8.34330.188
Manifest Version: 34.0.43/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.43\WorkloadManifest.json
Install Type: Msi
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
.NET SDKs installed:
6.0.417 [C:\Program Files\dotnet\sdk]
7.0.404 [C:\Program Files\dotnet\sdk]
8.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension version: 2.14.8
VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: