Create a new project under a projectname\src**blazorapp** folder
Open the projectname\src\blazorapp folder on VSCode then compile. Open a .razor file the editor show "Found markup element with unexpected name"
Close the folder on VSCode
Open the blazorapp folder on vscode, compile and open a razor file, the error go away.
Description of the problem:
When opening a workspace where the blazor project is under other folders the error is popped up but when I directly open the blazor folder the errors goes away
Expected behavior:
No warning errors whatever the nested levels of the blazor folder are.
Actual behavior:
The folders tree matters on show warnings.
Other info
When I move the mouse over the HTML tag with warning the razor log popup with this message
Is this a Bug or Feature request?:
Bug
Steps to reproduce
Description of the problem:
When opening a workspace where the blazor project is under other folders the error is popped up but when I directly open the blazor folder the errors goes away
Expected behavior: No warning errors whatever the nested levels of the blazor folder are.
Actual behavior: The folders tree matters on show warnings.
Other info
When I move the mouse over the HTML tag with warning the razor log popup with this message
Directory tree
├───.vs │ └───SongOrganizer │ ├───config │ └───v17 └───src ├───SongsOrganizer.Domain │ ├───Aggregates │ │ ├───SongAggregate │ │ └───SongsListAggregate │ ├───bin │ │ ├───Debug │ │ │ └───net6.0 │ │ │ └───ref │ │ └───Release │ │ └───net6.0 │ │ └───ref │ └───obj │ ├───Debug │ │ └───net6.0 │ │ └───ref │ └───Release │ └───net6.0 │ └───ref ├───SongsOrganizer.Infrastructure │ ├───Aggregates │ │ ├───SongAggregate │ │ │ ├───Commands │ │ │ ├───Handlers │ │ │ ├───Queries │ │ │ │ ├───GetSongs │ │ │ │ └───GetTags │ │ │ └───Validators │ │ ├───SongsListAggregate │ │ │ ├───Commands │ │ │ ├───Handlers │ │ │ └───Validators │ │ └───UsersAggregate │ │ └───Queries │ │ └───GetUsers │ ├───bin │ │ ├───Debug │ │ │ └───net6.0 │ │ │ └───ref │ │ └───Release │ │ └───net6.0 │ │ └───ref │ └───obj │ ├───Debug │ │ └───net6.0 │ │ └───ref │ └───Release │ └───net6.0 │ └───ref ├───SongsOrganizer.Kernel │ ├───bin │ │ ├───Debug │ │ │ └───net6.0 │ │ │ └───ref │ │ └───Release │ │ └───net6.0 │ │ └───ref │ ├───Domain │ ├───Exceptions │ ├───Extensions │ ├───obj │ │ ├───Debug │ │ │ └───net6.0 │ │ │ └───ref │ │ └───Release │ │ └───net6.0 │ │ └───ref │ └───Repository └───SongsOrganizer.UI ├───.vscode ├───Areas │ ├───Admin │ │ └───Pages │ │ └───Tags │ └───Public │ └───Pages │ ├───ListsSongs │ └───Songs │ ├───Components │ ├───Models │ ├───Services │ └───Validators ├───bin │ └───Debug │ └───net6.0 │ ├───ref │ └───Resources │ └───Areas │ └───Public │ └───Pages │ └───Songs │ └───Components ├───Configurations ├───Extensions ├───obj │ └───Debug │ └───net6.0 │ ├───ref │ └───staticwebassets ├───Pages │ ├───Components │ └───Shared ├───Properties ├───Resources │ └───Areas │ └───Public │ └───Pages │ └───Songs │ └───Components └───wwwroot ├───css ├───images └───js
Error image
Logs
OmniSharp
Starting OmniSharp server at 2/2/2022, 11:25:17 Target: d:\Developz\Solidcube\SongOrganizer\src\SongsOrganizer.sln
OmniSharp server started. Path: C:/Users/massimo/scoop/apps/omnisharp/current/omnisharp.exe PID: 19852
Razor
Expand
``` [Client - 11:36:01] -- Starting Issue Data Collection-- [Client - 11:36:04] -- Stopping Issue Data Collection-- ```
Workspace information
Razor document:
Expand
```Razor Non Razor file as active document ```
Projected CSharp document:
Expand
```C# Could not determine CSharp content ```
Projected Html document:
Expand
```Html Could not determine Html content ```
Machine information
VSCode version: 1.63.2 Razor.VSCode version: 1.24.0
dotnet --info
Expand
``` .NET SDK (reflecting any global.json): Version: 6.0.101 Commit: ef49f6213a Runtime Environment: OS Name: Windows OS Version: 10.0.22000 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.101\ Host (useful for support): Version: 6.0.1 Commit: 3a25a7f1cc .NET SDKs installed: 3.1.403 [C:\Program Files\dotnet\sdk] 3.1.416 [C:\Program Files\dotnet\sdk] 5.0.104 [C:\Program Files\dotnet\sdk] 5.0.210 [C:\Program Files\dotnet\sdk] 5.0.303 [C:\Program Files\dotnet\sdk] 5.0.404 [C:\Program Files\dotnet\sdk] 6.0.101 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.9 [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 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download ```
Extensions
Expand
|Extension|Author|Version| |---|---|---| |auto-using|Fudge|0.7.15| |azure-account|ms-vscode|0.9.11| |code-settings-sync|Shan|3.4.3| |color-highlight|naumovs|2.5.0| |csharp|ms-dotnettools|1.24.0| |debugger-for-edge|msjsdiag|1.0.15| |docthis|joelday|0.7.1| |dotnet-core-add|solidcube|0.1.2| |dotnet-test-explorer|formulahendry|0.7.7| |eslint-disable-snippets|drKnoxy|1.3.0| |fluent-icons|miguelsolorio|0.0.16| |git-graph|mhutchie|1.30.0| |github-vscode-theme|GitHub|5.2.1| |gitlens|eamodio|11.7.0| |markdown-all-in-one|yzhang|3.4.0| |material-icon-theme|PKief|4.12.1| |msbuild-project-tools|tintoy|0.4.3| |mssql|ms-mssql|1.12.0| |npm-intellisense|christian-kohler|1.4.0| |nugetpackagemanagergui|aliasadidev|1.1.9| |numbered-bookmarks|alefragnani|8.2.0| |output-colorizer|IBM|0.1.2| |powershell|ms-vscode|2021.12.0| |prettier-vscode|esbenp|9.2.0| |project-manager|alefragnani|12.4.0| |remote-containers|ms-vscode-remote|0.209.6| |remote-ssh|ms-vscode-remote|0.70.0| |remote-ssh-edit|ms-vscode-remote|0.70.0| |remote-ssh-explorer|ms-vscode-remote|0.56.0| |remote-wsl|ms-vscode-remote|0.63.13| |test-adapter-converter|ms-vscode|0.1.5| |theme-dracula|dracula-theme|2.24.1| |todo-tree|Gruntfuggly|0.0.215| |trxviewer|scabana|1.0.1| |user-secrets|adrianwilczynski|2.0.1| |vetur|octref|0.35.0| |vsc-material-theme|Equinusocio|33.1.2| |vscode-blink-mind|awehook|0.0.10| |vscode-docker|ms-azuretools|1.19.0| |vscode-drawio|hediet|1.6.4| |vscode-eslint|dbaeumer|2.2.2| |vscode-import-cost|wix|2.15.0| |vscode-markdownlint|DavidAnson|0.46.0| |vscode-nuget-gallery|patcx|0.0.24| |vscode-nupkg|eridem|1.0.1| |vscode-remote-extensionpack|ms-vscode-remote|0.21.0| |vscode-taskexplorer|spmeesseman|2.9.0| |vscode-thunder-client|rangav|1.11.1| |vscode-versionlens|pflannery|1.0.9| |vscode-wakatime|WakaTime|18.0.4| |vscode-yaml|redhat|1.3.0| |vscodeintellicode|VisualStudioExptTeam|1.2.16| |vtpw|snovakovic|0.1.2| |Vue2|ducksoupdev|0.1.3| |xml|DotJoshJohnson|2.5.1|;