|
|
|
|
|
by jiggawatts
2143 days ago
|
|
The most minimalist ASP.NET Core template I could find made it too difficult to create a "page" with some code-behind. I could create a CSHTML page and inline expressions worked, but I couldn't convince it to execute anything from a matching cs class. I did google this, and it's not like I hadn't written Razor syntax pages before, but that was a few years ago and my memory was fuzzy. What I found was that Razor pages are now part of any number of very similar sounding but wildly different frameworks, and code samples for one do literally nothing in the other. It's not even self-evident which framework I'm "in" for any given project. Half of it seems to be just convention, the other half is explicit configuration, and it's all version specific. I tried to go back to classic ASP.NET, thinking that that's actually a better fit for the type of legacy web app server testing that I need to do. That's where I found the new project templates that pull in more code by default into an "empty" project than I've written in the past half a decade. |
|
The minimalist projects don't do "code-behind" at all.