1
0

Ça a l'air que DotNet Aspire c'est ben sweet.

This commit is contained in:
MarcEricMartel
2023-11-15 09:38:06 -05:00
parent f48a58c8a5
commit 699fcdcb66
53 changed files with 697 additions and 1270 deletions

View File

@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting" Version="8.0.0-preview.1.23557.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BlazorCanvas.Server\BlazorCanvas.Server.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,8 @@
var builder = DistributedApplication.CreateBuilder(args);
var cache = builder.AddRedisContainer("cache");
builder.AddProject<Projects.BlazorCanvas_Server>("canvasServer")
.WithReference(cache);
builder.Build().Run();

View File

@@ -0,0 +1,16 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:15071",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:16047"
}
}
}
}

View File

@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

View File

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Aspire.Hosting.Dcp": "Warning"
}
}
}