Verschlanken: kein Root-Node-Projekt, zwei direkte PowerShell-Skripte

This commit is contained in:
Demo committed 2026-10-11 18:13:11 +02:00
1 parent 302faa395c
commit 6d33015097
25 files changed
+133 -467

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>
+3 -2
View File
@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Serilog.AspNetCore" />
<PackageReference Include="Swashbuckle.AspNetCore" />
</ItemGroup>
+2 -12
View File
@@ -1,13 +1,3 @@
using Demo.Core;
using Serilog;
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseSerilog((_, cfg) => cfg.WriteTo.Console());
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
app.UseSwagger();
app.UseSwaggerUI();
app.MapGet("/", () => Greeter.Greet("monorepo"));
var app = WebApplication.CreateBuilder(args).Build();
app.MapGet("/", () => Demo.Core.Greeter.Greet("monorepo"));
app.Run();
+3
View File
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Serilog" />
+1 -4
View File
@@ -1,9 +1,6 @@
using Newtonsoft.Json;
namespace Demo.Core;
public static class Greeter
{
public static string Greet(string name) =>
JsonConvert.SerializeObject(new { message = $"Hello, {name}!" });
public static string Greet(string name) => Newtonsoft.Json.JsonConvert.SerializeObject(new { message = $"Hello, {name}!" });
}