项目结构目录规划。

This commit is contained in:
administrator committed 2023-12-08 15:22:20 +08:00
1 parent a054944e6e
commit b32b8a78da
122 files changed
+3045 -1

No files matched your search

@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\HelloShop.ApiService\HelloShop.ApiService.csproj" />
<ProjectReference Include="..\HelloShop.BasketService\HelloShop.BasketService.csproj" />
<ProjectReference Include="..\HelloShop.IdentityService\HelloShop.IdentityService.csproj" />
<ProjectReference Include="..\HelloShop.OrderingService\HelloShop.OrderingService.csproj" />
<ProjectReference Include="..\HelloShop.ProductService\HelloShop.ProductService.csproj" />
<ProjectReference Include="..\HelloShop.WebApp\HelloShop.WebApp.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting" Version="8.0.0-preview.1.23557.2" />
</ItemGroup>
</Project>
+16
View File
@@ -0,0 +1,16 @@
var builder = DistributedApplication.CreateBuilder(args);
var apiservice = builder.AddProject<Projects.HelloShop_ApiService>("helloshop.apiservice");
builder.AddProject<Projects.HelloShop_IdentityService>("helloshop.identityservice");
builder.AddProject<Projects.HelloShop_ProductService>("helloshop.productservice");
builder.AddProject<Projects.HelloShop_BasketService>("helloshop.basketservice");
builder.AddProject<Projects.HelloShop_OrderingService>("helloshop.orderingservice");
builder.AddProject<Projects.HelloShop_WebApp>("helloshop.webfrontend").WithReference(apiservice);
builder.Build().Run();
@@ -0,0 +1,16 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:15166",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:16248"
}
}
}
}
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Aspire.Hosting.Dcp": "Warning"
}
}
}