代码结构创建
This commit is contained in:
1 parent
561dadd54e
commit
8b1bda52f5
116 files changed
+2648
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>
|
||||
@@ -0,0 +1,15 @@
|
||||
var builder = DistributedApplication.CreateBuilder(args);
|
||||
|
||||
var apiservice = builder.AddProject<Projects.HelloShop_ApiService>("helloshop.apiservice");
|
||||
|
||||
builder.AddProject<Projects.HelloShop_WebApp>("helloshop.webfrontend").WithReference(apiservice);
|
||||
|
||||
builder.AddProject<Projects.HelloShop_IdentityService>("helloshop.identityservice");
|
||||
|
||||
builder.AddProject<Projects.HelloShop_OrderingService>("helloshop.orderingservice");
|
||||
|
||||
builder.AddProject<Projects.HelloShop_ProductService>("helloshop.productservice");
|
||||
|
||||
builder.AddProject<Projects.HelloShop_BasketService>("helloshop.basketservice");
|
||||
|
||||
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:15016",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"DOTNET_ENVIRONMENT": "Development",
|
||||
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:16173"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Aspire.Hosting.Dcp": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user