Събитие
Създаване на AI приложения и агенти
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаТози браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
Includes:
Hosting integration not
Client integration
Бележка
This integration is part of the .NET Aspire Community Toolkit and isn't officially supported by the .NET Aspire team.
In this article, you learn how to use the .NET Aspire Azure Static Web Apps emulator hosting integration to run Azure Static Web Apps locally using the emulator. The emulator provides support for proxying both the static frontend and the API backend using resources defined in the app host.
This integration requires the Azure Static Web Apps CLI to run, and only supports hosting the emulator for local development, not deploying to Azure Static Web Apps.
To get started with the .NET Aspire Azure Static Web Apps emulator hosting integration, install the 📦 CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps NuGet package in the AppHost project.
dotnet add package CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps
For more information, see dotnet add package or Manage package dependencies in .NET applications.
In the Program.cs file of your app host project, define the backend and frontend resources. Then, call the AddSwaEmulator
method to create the emulator and pass the resources using the WithAppResource
and WithApiResource
methods.
var builder = DistributedApplication.CreateBuilder(args);
// Define the API resource
var api = builder.AddProject<Projects.Aspire_CommunityToolkit_StaticWebApps_ApiApp>("api");
// Define the frontend resource
var web = builder
.AddNpmApp("web", Path.Combine("..", "CommunityToolkit.Aspire.StaticWebApps.WebApp"), "dev")
.WithHttpEndpoint(env: "PORT")
.WithExternalHttpEndpoints();
// Create a SWA emulator with the frontend and API resources
_ = builder
.AddSwaEmulator("swa")
.WithAppResource(web)
.WithApiResource(api);
builder.Build().Run();
The preceding code defines the API and frontend resources and creates an emulator with the resources. The emulator is then started using the Run
method.
Обратна връзка за .NET Aspire
.NET Aspire е проект с отворен код. Изберете връзка, за да предоставите обратна връзка:
Събитие
Създаване на AI приложения и агенти
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаОбучение
Модул
A .NET Aspire bemutatása - Training
Ebben a modulban megismerheti a natív felhőbeli alkalmazásokat, valamint azt, hogy a .NET Aspire verem hogyan teszi egyszerűbbé a mikroszolgáltatások fejlesztését és összekapcsolását egymással és a támogató szolgáltatásokkal.
Сертифициране
Microsoft Certified: Azure Developer Associate - Certifications
A Microsoft Azure-ban végpontok közötti megoldásokat hozhat létre az Azure Functions létrehozásához, webalkalmazások implementálásához és kezeléséhez, az Azure Storage használatával történő megoldások fejlesztéséhez stb.