The name 'section' does not exist in the current context in .net core 3
See original GitHub issueDescribe the bug
Since upgrading to the latest version of Razorlight official release (I was using unofficial before) I am experience the issue that sections aren’t working anymore. I keep getting the error: The name 'section' does not exist in the current context
.
To Reproduce I am working on a unit test which coverage this breakage
Expected behavior
Information (please complete the following information):
- OS: Ubuntu
- Platform .net Core 3.0
- RazorLight version 2.0-beta4
- Are you using the OFFICIAL RazorLight package? Yes
- Visual Studio version I am using Rider 2019.3
Additional context I had to upgrade from the unofficial package to the official beta 4 because it has net core 3 support before I was using the .net core 2.2 which worked happilly
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:28
Top Results From Across the Web
Name does not exist in the current context
I know this error means that the control being referenced generally doesn't exist or is not a part of the class that's referencing...
Read more >ERROR: The name '' does not exist in the current context
I am having these much errors in my project, as I recently created a new project in Visual Studio 2022 those names actually...
Read more >The name SqlServerModelBuilderExtensions does not exists ...
Fix: The name SqlServerModelBuilderExtensions does not exists in the current context ASP. NET CORE. 1K views · 11 months ago ...more ...
Read more >The name 'section' does not exist in the current context in . ...
The name 'section' does not exist in the current context in .net core 3 · Describe the bug · To Reproduce · Expected...
Read more >The name **** does not exist in the current context : r/dotnet
I've created a brand new ASP.NET Core Web App via the VS 2019 project wizard which complies and runs just fine. But I'm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for your efforts on this project.
Just wondering if there has there been any progress on this issue? Seems can’t use RazorLight version 2.0-beta4 in .net core 3.1 if you define a @section ?
Can you show me a repro? Is this problem related to sections or should you open a new issue so we can discuss your problems there? Thanks.