CC#•Created by ekalavya on 5/15/2023 in #help ❔ How can I solve this error "does not exist in current context" in C#?
I found the answer the issue was discontinuation of support for webform in visual studio. For webform to work as intended I had to install .NET Framework project and item templates. Then It worked fine.