razor
razor copied to clipboard
VS Code: Error after creating blazor project: "The name 'routeData' does not exist in the current context."
This issue was originally reported at https://github.com/OmniSharp/omnisharp-roslyn/issues/2352
REPRO CONFIGURATION: Win10 x64 ENU 20H2 + SDK 7.0.100-preview.2.22152.5 Latest SDK Version: 7.0.100-preview.2.22152.5 Latest Runtime Version: 7.0.0-preview.2.22128.3
INSTALL STEPS:
- Clean machine: Win 10 x64 ENU 20h2
- Install the sdk 7.0.100-preview.2.22152.5 from: https://aka.ms/dotnet/7.0.1xx-preview2/daily/dotnet-sdk-win-x64.exe
- Install VS Code from: https://code.visualstudio.com/Download
- Install C# Extensions version: v1.24.1.vsix from: https://github.com/OmniSharp/omnisharp-vscode/releases
Testcases Affected SimpleBlazorRazorEditingWithVSCode
Platform
- [x] Windows
- [x] macOS
- [x] Linux
Repro Steps
- Open a normal Terminal Emulator
- Create blazor project and open it using VS code
md Blazor
cd Blazor
dotnet new blazorserver
code .
- Go to https://github.com/OmniSharp/omnisharp-vscode/releases > Download the csharp-1.24.1.vsix.
- In VS Code and go to the Extensions Tab, select "Install from VSIX" > install the file you downloaded.
- Navigation to the problems window will encounter a error: "The name 'routeData' does not exist in the current context."
Note: 1. Error will disappear if you open the App.razor file 2. This issue works fine on C# Extensions is v1.24.0.
Actual Result
Expected Result The problems window does not have error.