-
Notifications
You must be signed in to change notification settings - Fork 10.3k
VS Community Preview 16.1.0 - Razor Components intellisense errors #9320
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
Comments
@aford22 a few questions to properly diagnose what you're seeing.
|
I'm having the same issue with SDK
Also the HTML tags don't get their correct colorization: The csproj looks like this: <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<LangVersion>7.3</LangVersion>
<_RazorComponentInclude>Components\**\*.cshtml</_RazorComponentInclude>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Server" Version="3.0.0-preview3-19153-02" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0-preview3-19153-02" />
</ItemGroup>
</Project> |
Thanks for contacting us folks. |
@mkArtakMSFT Any idea when the release that fixes this will come out? |
Updating to Preview 4 fixed this for me, using the same VS 16.1 Preview 1 version. |
@henkmollema oh I see. I'm having the same issue with VS 16.0.2 (public release) running core preview 4. Guess they fixed it in VS 16.1. I'll probably just deal with it until 16.1 goes public. |
I would like to reopen this issue, as this is present also in 3.0.100-preview5-011568. If I clone this repo: and replace the version of core in global.json with "3.0.100-preview5-011568", the exact behaviour as above appears:
Im running VS2019 Preview, v 16.2.0 Preview 1.0 Here is my dotnet --info:
|
Hi, it looks like you are posting on a closed issue/PR/commit! We're very likely to lose track of your bug/feedback/question unless you:
Thanks! |
INdeed, i thought it would be good to re-open an issue that wasnt really resolved, but I can create a new one of course =) |
Same error on 3.0.100-preview6-012264 / Razor.VSCode. |
Hi, it looks like you are posting on a closed issue/PR/commit! We're very likely to lose track of your bug/feedback/question unless you:
Thanks! |
Describe the bug
Regression with VS Community Preview 16.1.0 that was not present in previous Preview release. When authoring Razor Components the "Errors" window and Intellisense both show the same compilation "errors" that are not errors. The project still builds and runs despite those errors. See screenshot of error window:

These false compilation errors were not present in previous VS Community preview release.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
False compilation errors should not be present in the "Errors" window nor as red wavy lines in the main "Code Editor" window
Additional context
These issues were not present in previous VS Community Preview release
The text was updated successfully, but these errors were encountered: