News for hackers. Stuff that matters.
Re:.NET Team Survey: Native AOT by mariusmg on Thursday August 06, 2020 @04:36AM (#24069140)
>The new "open" development style of .NET Core is not my cup of tea. It's now riddled with MVP features that are 80% complete, bug-ridden, and undocumented other than couple of blog articles.

.NET Framework is a product, .NET Core is a OSS project.

When .NET 5 will ship it will be even worse since .NET Framework people will just expect things to work.

Re:.NET Team Survey: Native AOT by SideburnsOfDoom on Thursday August 06, 2020 @05:06PM (#24075464)
> It's now riddled with MVP features that are 80% complete, bug-ridden, and undocumented other than couple of blog articles

I work full time with ASP .NET Core 3.1 projects, and I don't recognise this at all. I don't think that it's correct.

Re:.NET Team Survey: Native AOT by GordonS on Friday August 07, 2020 @02:35PM (#24085071)
Same here, this is just utter nonsense. I have to assume the person that wrote that comment hadn't actually been using dotnet Core at all. I note how they provide no examples of bugs from this "bug-ridden" and "undocumented" platform.

I've been using dotnet since it was originally created many moons ago, and dotnet core is the best incarnation yet. Documentation is excellent - I don't think I've ever once came across an undocumented feature?!

Re:.NET Team Survey: Native AOT by SideburnsOfDoom on Friday August 07, 2020 @05:54PM (#24086846)
> dotnet core is the best incarnation yet.

To be fair, we didn't use .NET Core extensively before .NET Core 2.1, because it was not quite ready yet. But since 2.1, we haven't looked back.

Re:.NET Team Survey: Native AOT by snak on Thursday August 06, 2020 @06:44PM (#24076218)
Same here. Generic hateful statement from a developer that probably has spent a couple of days at most in .NET.
Re:.NET Team Survey: Native AOT by tonyedgecombe on Thursday August 06, 2020 @04:45AM (#24069194)
I suspect a lot of people (myself included) will just stop at 4.8.
Re:.NET Team Survey: Native AOT by jiggawatts on Thursday August 06, 2020 @04:51AM (#24069222)
Just this week I wanted to spin up a minimalist ASP.NET page for "tyre-kicking" of new infra builds. You know, something that just coughs up a single page with some basic info, such as the regional options, time zone, current time, and the latency to the SQL Server. This checks that the infra guys did their job and that the AD accounts and firewall ports are in place.

I wanted to write 1 page with just some dynamic labels, that's it. Nothing fancy. No MVC. No dependency injection. No JavaScript frameworks. No CSS. Just one ASPX or CSHTML page.

Visual Studio 2019 no longer ships with a web project template that does that. Every single project type coughs up megabytes of crap and a bunch of scaffolding.

After hours of clicking through every project type, I resorted to another hour of googling to discover that the "legacy" empty templates are still there, but only available as a hidden install option!

It's madness.

Re:.NET Team Survey: Native AOT by JamesNK on Thursday August 06, 2020 @05:13AM (#24069327)
It is strange that you couldn't find the empty web template. Every version of ASP.NET Core has come with one. Empty is the first option in the "Create a new ASP.NET Core web application" dialog in VS2019, and "dotnet new web" creates an empty website via the command line.

What did you need to do to create an empty website?

Disclaimer: I work on ASP.NET Core

Re:.NET Team Survey: Native AOT by jiggawatts on Thursday August 06, 2020 @05:51AM (#24069520)
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.

Re:.NET Team Survey: Native AOT by SideburnsOfDoom on Thursday August 06, 2020 @05:17PM (#24075555)
> The most minimalist ASP.NET Core template I could find made it too difficult to create a "page" with some code-behind.

The minimalist projects don't do "code-behind" at all.

Re:.NET Team Survey: Native AOT by arethuza on Thursday August 06, 2020 @06:04AM (#24069581)
"self-evident which framework I'm "in" for any given project"

Has that changed? It's in the project properties in Visual Studio where I think it's been for as long as I can remember?

NB I've been using .Net for about 15 years and quite happily using .Net Core 3.1

Re:.NET Team Survey: Native AOT by mariusmg on Thursday August 06, 2020 @05:07AM (#24069303)
>No dependency injection. No JavaScript frameworks. >Visual Studio 2019 no longer ships with a web project template that does that. Every single project type coughs up megabytes of crap and a bunch of scaffolding.

Yeah, the way depency injection and multiple JS frameworks are shoved down your throat in .NET Core is sooo annoying.

Re:.NET Team Survey: Native AOT by GordonS on Friday August 07, 2020 @02:49PM (#24085210)
> Yeah, the way depency injection and multiple JS frameworks are shoved down your throat in .NET Core is sooo annoying

I've been using dotnet core for years and precisely zero times I have had any JS framework shoved down my throat.

Re:.NET Team Survey: Native AOT by qes on Friday August 07, 2020 @06:24PM (#24087050)
Not sure how you miss the Empty project template: https://i2.wp.com/anthonygiretti.com/wp-content/uploads/2020...

With the new request handling pipeline you hardly need a template for a single page diagnostic.

https://anthonygiretti.com/2020/06/29/nano-services-with-asp...

Re:.NET Team Survey: Native AOT by arethuza on Thursday August 06, 2020 @05:35AM (#24069439)
I had VS 2019 open and tried this - creating an empty project is the first entry on the list of templates - all it contains is a minimal Program.cs and Startup.cs - nothing else.

When run all it does is return "Hello World!" in plain text - it doesn't even use HTML.

Re:.NET Team Survey: Native AOT by jfkebwjsbx on Thursday August 06, 2020 @06:07AM (#24069598)
GP is not talking about an empty app project.
Re:.NET Team Survey: Native AOT by arethuza on Thursday August 06, 2020 @08:13AM (#24070230)
It's a minimalist web app that responds to HTTP requests without using MVC, not a console app?
Re:.NET Team Survey: Native AOT by shanselman on Thursday August 06, 2020 @08:43PM (#24076877)
dotnet new web ?

dotnet new empty ?