Closed v-wenkecheng closed 1 year ago
I am also seeing this on Arch with .NET 7.0.102.
This seemed to have fixed after upgrading to extension 1.25.8 for me. At least for now..
This issue seems to be resolved when using .NET 8 Preview 4. Please reopen issue if it pop back up.
Same problem
I'm using VS Code on Mac, I've made sure C# extensions are up to date. I've deleted bin and obj folders and done a clean and a build. Nothing works, still get the warnings.
Found markup element with unexpected name 'PageTitle'. If this is intended to be a component, add a @using directive for its namespace.Razor(RZ10012)
This is a new Blazor app created with dotnet new.
`dotnet --info .NET SDK: Version: 8.0.303 Commit: 29ab8e3268 Workload version: 8.0.300-manifests.c915c39d MSBuild version: 17.10.4+10fbfbf2e
Runtime Environment: OS Name: Mac OS X OS Version: 14.5 OS Platform: Darwin RID: osx-x64 Base Path: /usr/local/share/dotnet/sdk/8.0.303/
.NET workloads installed: There are no installed workloads to display.
Host: Version: 8.0.7 Architecture: x64 Commit: 2aade6beb0
.NET SDKs installed: 5.0.103 [/usr/local/share/dotnet/sdk] 6.0.302 [/usr/local/share/dotnet/sdk] 8.0.301 [/usr/local/share/dotnet/sdk] 8.0.302 [/usr/local/share/dotnet/sdk] 8.0.303 [/usr/local/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 5.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found: None
Environment variables: Not set
global.json file: Not found
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download lee@MacBook-Pro:~/dev/code/dotnet/BlazorApp`
Try to downgrade the C# extension to version 2.22.5
This BUG
still exist in C# extension v2.45.25
VS Code: 1.76.1 C# Extension version:1.25.5 SDK: 8.0.0-Preview.3.23164.2
Platform
To reproduce:
Actual behavior: "Found markup element with unexpected name 'PageTitle'. If this is intended to be a component, add a @using directive for its namespace.".
Expected behavior:
Additional context: Note: