#Individual
Das Dashboard von Aspire war zunächst nicht aufrufbar - Protokol musste in Code Spaces von HTTP auf HTTPS umgestellt werden:
Dann ist Aspire-Dashboard ladbar über Link in Debugging-Console:
Bei Zertifikatsfehlern (Code Spaces Github) - folgende Befehle im Terminal auf dem Codespace ausführen: dotnet tool update -g linux-dev-certs dotnet linux-dev-certs install siehe: https://learn.microsoft.com/de-de/aspnet/core/security/enforcing-ssl?view=aspnetcore-8.0&tabs=visual-studio%2Clinux-ubuntu#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos
Auch interessant: dotnet/aspire#2914
WeatherApp auf spezifischem Port dotnet/aspire#3702
var weatherApi = builder.AddProject<Projects.AspireJavaScript_MinimalApi>("weatherapi") .WithHttpEndpoint(name: "weatherapi", port: 9999, isProxied: false) .WithExternalHttpEndpoints();
Sieht so aus https://??.app.github.dev/weatherforecast Portprotokoll in Github Codespace Port Bereich: http
Swagger für WetterAPI https://??.app.github.dev/swagger/index.html
@meneasysoft ➜ .../aspire-samples/samples/AspireWithJavaScript/AspireJavaScript.Vue (main) $ npm run build
https://??.app.github.dev/
Vue: https://??.app.github.dev/main.js
Minimal-API-Swagger
https://??.app.github.dev/swagger/index.html
AppHost dotnet workload restore [/workspaces/aspire-samples/samples/AspireWithJavaScript/AspireJavaScript.AppHost/AspireJavaScript.AppHost.csproj]
Via Code Space Console
dotnet run --project samples/AspireWithJavaScript/AspireJavaScript.MinimalApi/AspireJavaScript.MinimalApi.csproj
URL https://??.app.github.dev/weatherforecast
Samples for .NET Aspire.
.NET Aspire is a stack for building resilient, observable, cloud-native apps with .NET.
Official samples hosted in this repo can be accessed via the Samples browser.
Sample highlights include:
- Aspire Shop
- Metrics with OpenTelemetry, Prometheus & Grafana
- Integrating a Node.js app
- Integrating DAPR
- Persisting data in composed containers using volume mounts
- Working with database containers
- Integrating clients apps like WinForms
eShop is a reference .NET application implementing an eCommerce web site using a services-based architecture using .NET Aspire.
.NET (including the aspire-samples repo) is licensed under the MIT license.
The sample applications provided in this repository are intended to illustrate individual concepts that may be beneficial in understanding the underlying technology and its potential uses. These samples may not illustrate best practices for production environments.
The code is not intended for operational deployment. Users should exercise caution and not rely on the samples as a foundation for any commercial or production use. See ASP.NET Core security topics for more information on security concerns related to hosting ASP.NET Core applications.
We welcome contributions to this repository of samples related to official .NET Aspire hosting and components pieces (i.e. those pieces who's code lives in the Aspire repo and that ship from the Aspire NuGet account). It's generally a good idea to log an issue first to discuss any idea for a sample with the team before sending a pull request.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.