Unplanned
Last Updated: 03 Dec 2024 09:24 by ADMIN
Peter
Created on: 02 Dec 2024 20:05
Category: Installer and VS Extensions
Type: Feature Request
0
MapStaticAssets vs UseStaticFiles, also bug when submitting a "Contact Support" (this)

Hi,

I created a new .net 9 Blazor WebApp from the template (lastest version). 

Shouldn't we be using the new app.MapStaticAssets(); vs the old app.UseStaticFiles() ?

Also in the App.razor, should we not also be using the @Assets[] in the <link href? /> ie:

<link rel="stylesheet" href="@Assets["app.css"]" />

Not sure if the ImportMap is required.  Anyway getting my information from the Microsoft website for updating from 8 to 9.

See Here: MS link to upgrade from 8 to 9.

Also, when I posted this "Contact Support", I am not able to select .Net 9 as my framework and WebApp as my blazor hosting model, so put it as .net 8

Peter

1 comment
ADMIN
Dimo
Posted on: 03 Dec 2024 09:24

Hello Peter,

The new .NET 9 asset mechanism is optional, so we can regard this as a missing feature. We intend to revamp our Visual Studio project template in early 2025 and MapStaticAssets will be part of this initiative.

.NET 9 was added earlier today, so it's available now in the submission form.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.