ASP.NET Core updates in .NET 8 Preview 1

Daniel Roth

.NET 8 Preview 1 is now available! This is the first preview of the next major version of .NET, which will include the next wave of innovations for web development with ASP.NET Core.

In .NET 8 we plan to make broad investments across ASP.NET Core. Below are some of the areas we plan to focus on:

Full stack web UI with Blazor

Note: Previously this section was titled “Blazor United”, but to avoid confusion we’re no longer using that name. Instead we’re focusing on the new features and enhancements we’re adding to Blazor in .NET 8 to enable full stack web UI development.

In ASP.NET Core today, we have a few different ways to build web UI:

  • MVC & Razor Pages: The frameworks use server-side rendering (SSR) to dynamically generate HTML from the server in response to requests. Rendering from the server helps apps to load fast 🚀 because all of the hard work of fetching the data and deciding how to display it has already been done on the server – the client just has to display the already rendered HTML. They can take advantage of powerful server hardware and directly access backend data and services.
  • Blazor: Blazor’s component model is focused on handling UI interactions from the client. Server-side rendering requires every UI interaction be sent to the server, so it isn’t great for richly interactive UI. For rich interactivity 🎮 you want to use client-side rendering (CSR), which has much lower latency and can readily access client capabilities.

Many modern web apps need to use a combination of these approaches, both server-side rendering and client-side rendering. Maybe your home page or blog is best handled with server-side rendering so that it loads fast and is easily indexed, while the more elaborate functionality of your app needs the responsiveness of running from the client. Currently, with .NET, this requires using multiple different frameworks together: MVC, Razor Pages, and Blazor.

In .NET 8 we’re working to combine the benefits of server-side and client-side rendering into a single full-stack programming model based on Blazor. Blazor in .NET 8 will enable you to use a single Blazor-based architecture for server-side rendering and full client-side interactivity with Blazor Server or WebAssembly. That’s all within a single project with the ability to easily switch between different rendering modes and even mix them in the same page. Blazor in .NET 8 will also enable new rendering capabilities, like streaming rendering and progressive enhancement of navigations and form posts.

Check out the following video of an early prototype that demonstrates many of these new capabilities in action:

Related GitHub issue: dotnet/aspnetcore#46636

Improved authentication & authorization experience

Authentication and authorization can be difficult to implement in ASP.NET Core apps for certain scenarios. In .NET 8 our goal is to:

  • Create an easy, intuitive, and well-documented experience for working with web-based authentication and authorization that is straightforward to develop and test.
  • Provide a clear set of steps and tools to support deployment to production environments.
  • Deliver meaningful diagnostics that help troubleshoot security issues quickly and effectively.

Native AOT

.NET 7 introduced support for publishing .NET console projects as native AOT, producing a self-contained, platform-specific executable without any runtime JIT. Native AOT apps start up very quickly and use less memory. The application can be deployed to a machine or container that doesn’t have any .NET runtime installed. In .NET 8 we will extend support for native AOT to ASP.NET Core, starting with cloud-focused, API apps built with Minimal APIs that meet expectations regarding published file size, startup time, working set, and throughput performance.

Related GitHub issue: dotnet/aspnetcore#45910

ASP.NET Core Roadmap for .NET 8

In additional to above themes, we plan to make many addition improvements across ASP.NET Core. You can find a full list of the ASP.NET Core work planned for .NET 8 in the ASP.NET Core roadmap for .NET 8 on GitHub.

What’s new in .NET 8 Preview 1?

.NET 8 Preview 1 is the first of many .NET 8 preview releases in preparation for the .NET 8 release in November 2023.

Here’s a summary of what’s new in ASP.NET Core in this preview release:

  • Route tooling
  • Route constraint performance improvements
  • New analyzers for API development
  • Dispatch exceptions to Blazor’s SynchronizationContext
  • Hot reload support for instance fields, properties, and events for .NET on WebAssembly
  • Support for symbol servers when debugging .NET on WebAssembly
  • Blazor WebAssembly debugging in Firefox
  • Experimental Webcil format for .NET assemblies
  • Specify initial URL for BlazorWebView to load
  • New option to keep the SPA development server running
  • Support for named pipes in Kestrel
  • HTTP/3 enabled by default
  • HTTP/2 over TLS (HTTPS) support on macOS
  • gRPC JSON transcoding no longer requires http.proto and annotations.proto
  • Specify server timeout and keep alive interval settings using the HubConnectionBuilder
  • IPNetwork.Parse and TryParse
  • HTTP_PORTS and HTTPS_PORTS config support
  • Warning when specified HTTP protocols won’t be used

Get started

To get started with ASP.NET Core in .NET 8 Preview 1, install the .NET 8 SDK.

If you’re on Windows using Visual Studio, we recommend installing the latest Visual Studio 2022 preview. Visual Studio for Mac support for .NET 8 previews isn’t available yet but is coming soon.

Upgrade an existing project

To upgrade an existing ASP.NET Core app from .NET 7 to .NET 8 Preview 1:

  • Update the target framework of your app to net8.0.
  • Update all Microsoft.AspNetCore.* package references to 8.0.0-preview.1.*.
  • Update all Microsoft.Extensions.* package references to 8.0.0-preview.1.*.

See also the full list of breaking changes in ASP.NET Core for .NET 8.

Route tooling

ASP.NET Core is built on routing. Minimal APIs, Web APIs, Razor Pages and Blazor all use routes to customize how HTTP requests map to your code.

In .NET 8 we’ve invested in a suite of new features to make routing easier to learn and use. These include:

  • Route syntax highlighting
  • Autocomplete of parameter and route names
  • Autocomplete of route constraints
  • Route analyzers and fixers
  • Supports Minimal APIs, Web APIs, and Blazor

Grouped all together, we call these new features route tooling. Route tooling is built on Roslyn, and features automatic light up depending upon what IDE you’re using. Please try it out in preview 1 and give us feedback. A blog post that looks at route tooling’s cool new features is coming soon.

Screenshot of routes with route tooling in .NET 8

Route constraint performance improvements

ASP.NET Core routing is powerful, high-performance technology that is used by almost all ASP.NET Core apps. A commonly used feature of routing is route constraints. Apps use route constraints to match requests to the right endpoint:

// Endpoint only matches requests with a URL slug. For example: article/my-article-name
app.MapGet("article/{name:regex(^[a-z0-9]+(?:-[a-z0-9]+)*$)}", (string name) => { /* ... */ });

In .NET 8, we’ve made several performance improvements to constraints:

  • Regex constraints are now compiled. Creating compiled regexes has a one-time cost at startup, but they maximize run-time performance.
  • Duplicate constraints are now shared between routes. Sharing cached constraints reduces startup time and memory use, particularly for apps with many routes and regex constraints.
  • The alpha constraint now uses a source generated regex.

New analyzers for API development

High quality code is easier to debug, test, and service. In .NET 8, we’re investing in a suite of analyzers that will help you leverage ASP.NET Core’s APIs more affectively. Starting in preview1, you can take advantage of new analyzers that:

Recommends setting or appending to a HeaderDictionary instead of adding

The IHeaderDictionary.Add API throws if duplicate keys are added. Typically, you’ll want to set, override, or append to a header using the indexer or IHeaderDictionary.Append API. This analyzer warns on usage of the IHeaderDictionary.Add API and provides a codefixer that recommends leveraging an indexer or the Append API.

var context = new DefaultHttpContext();

context.Request.Headers.Add("Accept", "text/html"); // ASP0019 warning
context.Request.Headers["Accept"] = "text/html"; // Apply codefix using indexer
context.Request.Headers.Append("Accept", "text/html"); // Apply codefix using IHeaderDictionary.Append

Thanks to community member @david-acker for this contribution!

Warns if a parameter type passed to a route handler does not implement the correct interfaces

Minimal APIs support simple binding from the elements of the HttpContext using rules defined in the TryParse or BindAsync implementations of a type. These implementations must conform to a certain signature in order to be leveraged by the binding logic in the framework. Starting in .NET 8, you’ll receive a warning if a type that doesn’t implement the appropriate interface is used.

For example, the code sample below will trigger a warning because the Customer type does not implement a BindAsync method with the appropriate signature.

var app = WebApplication.Create();

app.MapGet("/customers/{customer}", (Customer customer) => {}); // ASP0021 warning

public class Customer
    public async static Task<Customer> BindAsync(HttpContext context) => new Customer();

Detects if a RequestDelegate is implemented incorrectly

RequestDelegates implement a signature that takes an HttpContext and returns a Task. Because Task is the base type of Task<T>, generic variance means it’s possible to write code like following:

var app = WebApplication.Create();

Task<string> HelloWorld(HttpContext c) 
  => Task.FromResult("Hello " + c.Request.RouteValues["name"]); // ASP0016 warning

app.MapGet("/", HelloWorld);

However, the string response will be discarded at runtime. In .NET 8, a warning will be produced for the scenario above which can be resolved by making the following code change:

var app = WebApplication.Create();

Task HelloWorld(HttpContext c) => c.Response.WriteAsync("Hello " + c.Request.RouteValues["name"]);
app.MapGet("/", HelloWorld);

Or by leveraging minimal APIs:

var app = WebApplication.Create();

app.MapGet("/{name}", (string name) => $"Hello {name}");

We’d also like to thank to community member @Youssef1313 for submitting a collection of quality improvements and bug fixes to our existing analyzers!

Dispatch exceptions to Blazor’s SynchronizationContext

You can now dispatch exceptions to Blazor’s SynchronizationContext using the new DispatchExceptionAsync methods on ComponentBase and RenderHandle. This allows you to handle these exceptions using Blazor’s error handling features, like error boundaries.

Hot reload support for instance fields, properties, and events for .NET on WebAssembly

.NET on WebAssembly now supports adding instance fields, properties and events to existing classes when using Hot Reload. This also enables other C# and Razor language features that use instance fields under the hood, such as certain types of C# lambdas and some uses of Razor’s @bind directive.

Support for symbol servers when debugging .NET on WebAssembly

When debugging .NET on WebAssembly, the debugger will now download symbol data from symbol locations that are configured in Visual Studio preferences. This improves the debugging experience for apps that use NuGet packages.

Blazor WebAssembly debugging in Firefox

You can now debug Blazor WebAssembly apps using Firefox. Debugging Blazor WebAssembly apps requires configuring the browser for remote debugging and then connecting to the browser using the browser developer tools through the .NET WebAssembly debugging proxy. Debuggin Firefox from Visual Studio is not supported at this time.

To debug a Blazor WebAssembly app in Firefox during development:

  1. Open the Blazor WebAssembly app in Firefox.
  2. Open the Firefox Web Developer Tools and go to the Console tab.
  3. With Blazor WebAssembly app in focus type the debugging command SHIFT+ALT+D.
  4. Follow the instructions in the dev console output to configure Firefox for Blazor WebAssembly debugging:
    • Open about:config in Firefox
    • Enable devtools.debugger.remote-enabled
    • Enable
    • Disable devtools.debugger.prompt-connection
  5. Close all Firefox instances and reopen Firefox with remote debugging enabled by running firefox --start-debugger-server 6000 -new-tab about:debugging.
  6. In the new Firefox instance, leave the about:debugging tab open and open the Blazor WebAssembly app in a new browser tab.
  7. Type SHIFT+ALT to open the Firefox Web Developer tools and connect to the Firefox browser instance.
  8. In the Debugger tab of the Web Developer Tools, open the app source file you wish to debug under the file:// node and set a breakpoint. For example, set a breakpoint in the IncrementCount method of Pages/Counter.razor.
  9. Navigate to the Counter page and click the counter button to hit the breakpoint.

Debugging Blazor WebAssembly in Firefox

Experimental Webcil format for .NET assemblies

In some environments, firewalls and anti-virus tools block the download or use of .dll files, which prevents the use of web apps based on .NET assemblies, like Blazor WebAssembly apps. To address this issue, the wasm-experimental workload now supports a new .webcil file format that can be used to package .NET assemblies for browser-based web apps. Currently the Webcil format is only available for the experimental WebAssembly Browser Apps, but we plan to enable it for Blazor WebAssembly apps in a future update.

To try out the new Webcil format with a WebAssembly Browser App:

  1. Install the wasm-experimental workload: dotnet workload install wasm-experimental

  2. Create a new app: dotnet new wasmbrowser

  3. Add the WasmEnableWebcil property to the .csproj file:

  4. Run the app and verify in the browsers DevTools that .webcil files are being downloaded, not .dll files.

If you encounter issues with using .webcil files in your environment, please let us know by creating an issue on GitHub.

Specify initial URL for BlazorWebView to load

The new StartPath property on BlazorWebView allows you to set the path to initially navigate to. This is useful when you want to take the user straight to a specific page once the BlazorWebView is loaded.

New option to keep the SPA development server running

When building a single-page app (SPA) with ASP.NET Core, both the SPA development server and the backend ASP.NET Core need to execute during development. The SPA development server is configured to proxy API requests to the ASP.NET Core backend. When the ASP.NET Core process is terminated, the SPA development server is by default terminated as well. Restarting the SPA development server can be time consuming and cumbersome. The new KeepRunning option on SpaDevelopmentServerOptions enables leaving the SPA development server running even if the ASP.NET Core process is terminated.

Support for named pipes in Kestrel

Named pipes is a popular technology for building inter-process communication (IPC) between Windows apps. You can now build an IPC server using .NET, Kestrel, and named pipes.

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(serverOptions =>

For more information about this feature and how to use .NET and gRPC to create an IPC server and client, see Inter-process communication with gRPC.

HTTP/3 enabled by default

HTTP/3 is an exciting new Internet technology that was standardized in June 2022. HTTP/3 offers several advantages over older HTTP protocols, including:

  • Faster connection setup.
  • No head-of-line blocking.
  • Better transitions between networks.

.NET 7 added support for HTTP/3 to ASP.NET Core and Kestrel. ASP.NET Core apps could choose to turn it on. In .NET 8 we’re enabling HTTP/3 (alongside HTTP/1.1 and HTTP/2) by default.

A screenshot of a browser. HTTP/3 in the network tab is highlighted

For more information about HTTP/3 and its requirements, see Use HTTP/3 with the ASP.NET Core Kestrel web server.

HTTP/2 over TLS (HTTPS) support on macOS

You can now use TLS and HTTP/2 with ASP.NET Core on macOS. .NET 8 adds support for Application-Layer Protocol Negotiation (ALPN) to macOS. ALPN is a TLS feature used to negotiate what HTTP protocol a connection will use. For example, ALPN allows browsers and other HTTP clients to request an HTTP/2 connection. This feature is especially useful for gRPC apps, which require HTTP/2.

It’s great to see this point of friction on macOS disappear!

gRPC JSON transcoding no longer requires http.proto and annotations.proto

gRPC JSON transcoding is an extension for ASP.NET Core that creates RESTful JSON APIs for gRPC services. Once configured, transcoding allows apps to call gRPC services with familiar HTTP concepts such as HTTP verbs, URL parameter binding and JSON requests/responses.

We’ve made it easier to add JSON transcoding to a .NET gRPC app. Copying http.proto and annotations.proto files into your app is no longer required. In .NET 8 preview 1 those files are included in the NuGet package and automatically referenced for you.

Specify server timeout and keep alive interval settings using the HubConnectionBuilder

You can now specify the server timeout and keep alive interval settings for a SignalR client using the HubConnectionBuilder. This is useful in Blazor Server apps when you want to increase the timeouts while debugging to avoid hitting the timeouts while execution has been paused.

    configureSignalR: function (builder) {

IPNetwork.Parse and TryParse

The new Parse and TryParse methods on IPNetwork add support for creating an IPNetwork using an input string in CIDR notation or “slash notation”.


// Using Parse
var network = IPNetwork.Parse("");

// Using TryParse
bool success = IPNetwork.TryParse("", out var network);

// Ctor equivalent
var network = new IPNetwork(IPAddress.Parse(""), 32);


// Using Parse
var network = IPNetwork.Parse("2001:db8:3c4d::1/128");

// Using TryParse
bool success = IPNetwork.TryParse("2001:db8:3c4d::1/128", out var network);

// Ctor equivalent
var network = new IPNetwork(IPAddress.Parse("2001:db8:3c4d::1"), 128);

Thanks @david-acker for this contribution!

HTTP_PORTS and HTTPS_PORTS config support

Applications and containers are often only given a port to listen on, like 80, without additional constraints like host or path. HTTP_PORTS and HTTPS_PORTS are new config keys that allow specifying the listening ports for the Kestrel and HttpSys servers. These may be defined with the DOTNET_ or ASPNETCORE_ environment variable prefixes, or specified directly through any other config input like appsettings.json. Each is a semi-colon delimited list of port values.


This is shorthand for the following, which specifies the scheme (HTTP or HTTPS) and any host or IP.


These new config keys are lower priority and will be overriden by URLS or values provided directly in code. Certificates will still need to be configured seperately via server specific mechanics for HTTPS.

Warning when specified HTTP protocols won’t be used

If TLS is disabled and HTTP/1.x is available, HTTP/2 and HTTP/3 will be disabled, even if they’ve been specified. This can cause some nasty surprises, so we’ve added warning output to let you know when it happens.

Give feedback

We hope you enjoy this preview release of ASP.NET Core in .NET 8. Let us know what you think about these new improvements by filing issues on GitHub.

Thanks for trying out ASP.NET Core!


Discussion is closed. Login to edit/delete existing comments.

  • Stavros Kasidis 1

    Love the webcil solution. Seems like the right way to go to solve the antivirus issues and make my package obsolete. Cheers.

    • Daniel RothMicrosoft employee 3

      Hi Stavros. That’s the hope! For folks that aren’t familiar with Stavros’ BlazorWasmAntivirusProtection package, he’s been pioneering mitigations for environments that block the use of DLLs for a while now and his package remains the best option if you’re currently running into these issues in your environment. Our goal is to put these issues to rest in .NET 8.

  • Craig Johnson 4

    Fantastic direction and progress! Blazor United is a game changer.

  • Rod Macdonald 0

    Hi Daniel, I appreciate Blazor United is not about Blazor Hybrid. Can I please ask if there are plans for VS next/.NET 8 to continue the cool stuff in the hybrid direction? The reason I ask is that I would love to use a common UI stack for a new web and Windows development Im planning. Whilst there are 3rd party stacks like Uno to do this, I feel HTML and CSS are technologies that MS continues to support, whereas XAML derivatives seem to be a little stuck. One UI stack to rule them all! Thank you

    • Daniel RothMicrosoft employee 1

      Hi Rob. I replied to a similar question you posted on the main .NET 8 Preview 1 blog post, but I’ll cross post here for folks that are interested. You can use Blazor components today to build a common UI for mobile, desktop, and web using a combination of Blazor Hybrid and a Blazor web app. The Blazor team is looking at whether we could create a single project experience for Blazor Hybrid + Web, but we don’t expect to get to that in .NET 8. The .NET MAUI team is also tracking providing direct web platform support, similar to what React Native Web, Uno, and Flutter provide, but this is also not planned for .NET 8.

      • Rod Macdonald 1

        Thank you for cross posting. As per this cross post(!): Its been a dream since .NET 1 to have a common UI stack across web and Windows.

        Thank you for the update on ‘Hybrid’.

  • Bastian Buchholz 0

    I think the


    is missing in the install command:

    dotnet workload install wasm-experimental
  • Jacob Stamm 0

    I’m watching Blazor United closely and looking forward to getting my hands on it. Do you guys know at this time how likely BU is to have major API changes in between now and RTM? I’m trying to estimate how much time I should spend learning it in its current state.

    • Daniel RothMicrosoft employee 0

      Hi Jacob. In general, we don’t consider the API shape of new features final until they ship with the stable release in November. We try really hard to avoid breaking API changes after the first release candidate in September, but changes are still possible. We want to make sure we ship the right APIs, so that’s why giving feedback on early .NET 8 previews is so vital.

  • Horacio Diez 0

    Hi! I´m so happy Blazor continues growing and improving.
    Just a question: will there be a “Blazor Native AOT”?
    I´m just thinking about balance of total footprint and performance.
    Which are the pros and cons?

    Thank you again!

    • Daniel RothMicrosoft employee 1

      Hi Horacio. Blazor supports ahead of time (AOT) compilation to WebAssembly already. The AOT support in Blazor is a bit different than Native AOT in that with Blazor we seek to maintain a higher level of compatibility with existing .NET patterns that full Native AOT will break. That’s why AOT in Blazor still relies on the .NET interpreter for some cases. We don’t have any concrete plans at this time to support full Native AOT with Blazor.

      • Horacio Diez 0

        Hi Daniel, thank you!
        I saw the Blazor AOT example you recorded (the one with the tennis ball i think), where you were advising to use AOT with care because of the growing in total payload size. So i thought may be the “tree shaking” and the “native” magic words could reduce the binaries size while improving performance. I browsed a little bit and I realized It´s not a new “idea” (as allways) 🙂
        Thank you again.

  • Sarin Na Wangkanai 0

    @Daniel Roth Blazor United is very impressive. I like to start trying it out with .NET 8 preview 1. But do I try out the new feature?? Does this work?

    dotnet new blazorunited
    • Daniel RothMicrosoft employee 0

      Hi Sarin. Blazor United isn’t included yet with .NET 8 Preview 1. The Blazor United features will be included incrementally in upcoming .NET 8 preview reelases. For example, we plan to start integrating the server-side rendering support with Blazor components in .NET 8 Preview 3. If you want to try out the prototype implementation that Steve used in his video, you can check out the blazor-united branch in the dotnet/aspnetcore GitHub repo but expect lots of rough edges.

      • Sarin Na Wangkanai 0

        thank you very much for the heads up. I will have a look at this awesome new feature/framework.

  • Bhrugen Patel 0

    Any hint on in which preview will we see the auth updates that are planned under Improved authentication & authorization experience? Is there any ticket for this one to track?

  • Steve Naidamast 3

    I have been following the Microsoft directions for the ASP.NET Core frameworks and tools for many years. And try as I might, even after working on a major MVC project, I don’t see the benefit of what in my view, has simply become a mess in the web development arena.

    I hate throw water on this announcement but it appears that Microsoft really has no vision of where it wants web development to go or how it wants to achieve it. We go from “MVC” to “Razor” to “Blazor” to “Blazor Hybrid” to “Blazor United”. And god only knows what will come next.

    Does anyone really believe that when working with WebForms we were incapable of producing quality web applications that satisfied the needs of the organizations they were built for?

    And forget this bulls**t about performance improvements. That is about as verifiable as US government lies. There is no such thing as efficiency in development. For everything you believe you are doing to make an application more efficient you are trading it in for certain less efficient processes in other areas, such as application maintenance. Besides, when it comes to the Internet there is simply no way to make applications truly more efficient through software. It is a hardware thing and will always be a hardware thing until the underlying topologies are reworked to be more efficient than they already are. This was proven by software engineering analysis in the 1990s and again in the early 2000s with the publication of “High Performnace ASP.NET Applications”, which demonstrated the requirements to configure hardware properly to make WebForms blazingly fast.

    If one were to follow this part of the profession closely they would find very slowly but assuredly that MIcrosoft after around 10 years is coming back to the WebForms paradigm. True, there are quite a few differences between the current models and the original ones. Nonetheless, when Microsoft is touting server-side Blazor along with the ability to use code-behind modules, there is no doubt that this is where the current models are headed.

    The idea that one would build a fat-client browser interface is absurd on the face of it. Between the use of WebAssembly and tons of JavaScript, amongst other tools, there are enough vulnerabilities in such developments that are big enough to drive a Mack Truck through. Nothing screams more the breaking of standardized n-tier application distributed paradigms than this nonsense that has been so willingly accepted by so many in the Microsoft web development environments. And yet these same professionals are starting to voice in unison the same thing I have been saying for years; such web development environments are a mess.

    One also has to understand that Microsoft has historically always thrown “the baby out with the bathwater”. In other words, instead of really refining the internals of what they already have produced, they simply get rid of it to start anew. And this was done with WebForms, which has been superseded first by ASP.NET MVC and now by ASP.NET Core, the web environments now receiving their 8th upgrade.

    Interestingly enough, WebForms never saw such massive upgrades once the core system was in place.

    But of course, Microsoft promoted the excuse that they simply couldn’t refine WebForms to the extent that they could with rewriting it into this gobbledygook we have now. Why not!?!? These people are not stupid. They are just marketing people first.

    The fact that so many upgrades and new tools have been introduced over the years is a testament to the thinning knowledge bases that all of us as professionals must rely in order to be able to do our work efficiently with quality results. But from the many C# language enhancements to this latest preview, the professional development community has been stressed to the max with all this changing turmoil in its development infrastructure.

    All of it was totally unnecessary but here we are…

    Steve Naidamast
    Sr. Software Engineer
    Black Falcon Software, Inc.

    • Horacio Diez 3

      Oh boy!

    • Song LAN 0

      Blazor has come too late ,
      Our Web App (a simple calendar) use .Net Core Web Api and Vanilla Javascript, and this combo works great.
      I don’t think Blazor is a game changer anyway.

    • Tim Shepherd 1

      I must say, I agree with this post a lot.

      I have been with ASP.NET from the .Net 2 days, with ASPX, through VB into C#, etc. In the .Net world, we stayed on .Net 4.52 up until mid last year when we made the “jump” to .Net 7/ASP.NET Core and because we also chose to use the Identity system, we’ve come back into the MVC space. Wow….what a minefield! With developing the small number of MVC pages/forms that we have, most of our dev time has been spent in Google, trying to figure out how to do things that once seemed pretty easy/straightforward with ASPX, such as implementing a custom validator for a form field…hmmmm…that was a fun day (not). Hot Reload…huh? That worked once for me and hasn’t worked since.

      Most examples that I found for many things are out-of-date or don’t quite fit “the-way-that-Core-works-now”…or there are 2-3 ways of doing a particular thing, like setting up an API, and it is (usually) unclear which method is best/appropriate/modern/current/future-proof/etc.

      It all makes developing difficult and quite literally takes us away from writing code for our JOBS. Sometimes it feels like the Framework gets in the way, almost intentionally. Yes, we know MS have their .Net code on Github but the time spent reading through that is time that we are not spending on our own work 😉

      Of course, things change and we all do our best to keep up but like many many places, we are a small software outfit (3-4 devs plus myself) – we don’t have the resources (time/money) to constantly revise our platform and our own knowledge everytime there is an update like this. We tend to stick with a particular technology because we have our code, we have our customers and we have our work/families/lives – these don’t leave a lot of time for much else 🙂

    • Burton Rodman 0

      welcome to modern web development — the land of constant decision fatigue.

      .Net is definitely not immune to this phenomenon, but I for one appreciate the relatively more opinionated platform and guidance Microsoft provides.

      I’m absolutely not disagreeing with you, but saying that MS provides a “lesser evil”.

    • Clement Siby 1

      Change is a hard thing.

    • Daniel RothMicrosoft employee 1

      ASP.NET and Web Forms in the .NET Framework were certainly (and still are!) very capable web frameworks that continue to power many large and successful web apps. For some web apps the level of performance provided by ASP.NET Core may not be needed. But for many apps that need to operate at scale or when cost is a concern, the performance benefits of ASP.NET Core are real and compelling. You can find numerous published developer stories of Microsoft teams that made the move to ASP.NET Core and were rewarded with dramatic performance improvements and cost savings. We just published a new one for the Microsoft Teams Permission Service team that moved from .NET Framework to ASP.NET Core in .NET 6 and realized dramatic improvements and savings. It’s definitely worth a read!

    • Jon Miller 0

      100% agree. Microsoft needs to move Web Forms forward onto the current .NET runtime. MVC was a downgrade from Web Forms, and things haven’t got better since then. It is a constant churn. Things don’t get easier, they get more complicated. Not moving Web Forms forward is 100% ridiculous. Totally agree on what you said about client-side JavaScript apps. They are incredibly slow because they require tons of web API calls. I will take a huge VIEWSTATE blob over that any day. I have a large Web Forms app that uses Telerik UI controls. I’ve been working on porting it to server-side Blazor with Telerik’s UI controls for that. Guess what. It is not any faster. It is actually slower. I am rewriting a working application for no good reason. A total waste of time because Microsoft wants to force developers to use whatever their latest and greatest way of doing things is. Which as you pointed out, constantly changes. The stuff never actually ever matures because it is constantly changed. You rightly pointed out that that wasn’t the case with Web Forms. Maybe in another 10 years Blazor United will be solid and mature? Or, will they have already come up with 5 other new ways of doing the same thing by then?

      • Daniel RothMicrosoft employee 1

        I think we agree that client-side development (including Blazor) should not be used for everything. Client-side development has its place, like for low latency, high interactivity scenarios and for offloading load from the server. But if you want to reduce app load time and leverage your server environment then server-side rendering is the way to go. The code execution should run where it makes the most sense. ASP.NET Core supports both server-rendered web UI (MVC, Razor Pages) and client-rendered UI (Blazor) and both are designed to work together. We publish guidance on how to choose the appropriate web UI technology in our ASP.NET Core docs to help with these architectural decisions. In .NET 8 we’re working to simplify this guidance with the Blazor United effort so that the seams between server-side rendering and client-side rendering are less severe.

  • Burton Rodman 0

    Sorry if I missed another comment on this, but I assume this is a typo 😉

    Get started
    To get started with ASP.NET Core in .NET 8 Preview 8, install the .NET 8 SDK.

    • Daniel RothMicrosoft employee 0

      Ugh, thank you for pointing that out! Should be fixed now.

Feedback usabilla icon