question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The name 'section' does not exist in the current context in .net core 3

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:28

github_iconTop GitHub Comments

4reactions
dotnetshadowcommented, Mar 4, 2020

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 ?

1reaction
jzabroskicommented, Jun 18, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found