Answer the question
In order to leave comments, you need to log in
Does it make sense to learn ASP.NET?
I write small web pages (purely a hobby), like a blog or some kind of chat, in general, they are not complicated. I always got by with the standard HttpListener from the C# library. Now I have learned about the existence of such a thing as Asp net core.
As I understand it, this is such a huge combine of everything, I slightly overdid it from the look of the "empty asp net project" in visual studio.
The question is this...
Write in Russian (not like on Wikipedia) what it is and why it is needed.
Does it make sense to study it for the sake of sites that are small in a couple of pages (but still server-side functionality, not just "give html by link")?
What killer features does it have that make life easier?
Answer the question
In order to leave comments, you need to log in
Does it make sense to study it for the sake of sites that are small in a couple of pages (but still server-side functionality, not just "give html by link")?
What killer features does it have that make life easier?
I'm a bit overwhelmed by the "empty asp net project" view in visual studio.
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
Host.CreateDefaultBuilder(args)
.ConfigureWebHost(webBuilder =>
{
webBuilder.UseKestrel(o =>
{
o.ListenLocalhost(5000);
});
webBuilder.ConfigureServices(services =>
{
services.AddRouting();
});
webBuilder.Configure(app =>
{
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapGet("/", async context =>
{
await context.Response.WriteAsync("Hello World!");
});
});
});
})
.Build()
.Run();
var app = WebApplication.Create(args);
app.MapGet("/", string () => "Hello World!");
app.Run();
Does it make sense to study it for the sake of sites that are small in a couple of pages (but still server-side functionality, not just "give html by link")?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question