Hello MVC

This commit is contained in:
2023-08-22 16:35:04 +09:00
parent 77c42e60bc
commit 303c7ce898
184 changed files with 78592 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using HelloRazor;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
namespace HelloRazor
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
await builder.Build().RunAsync();
}
}
}