- 新增 .dockerignore 文件,忽略多种临时及中间文件 - 新增 .gitattributes 文件,配置文本文件换行及合并行为 - 新增详细的 .gitignore 文件,排除多种开发及生成文件 - 新增 VS Code C# 代码片段,提升开发效率 - 添加 Directory.Build.props,统一 MSBuild 配置和代码分析规则 - 添加空的 Directory.Build.targets,预留构建任务扩展位置 - 添加 Directory.Packages.props,实现依赖包版本集中管理和声明
69 lines
3.3 KiB
XML
69 lines
3.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
|
<DockerfileContext>..\..</DockerfileContext>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="AspNet.Security.OAuth.Feishu" />
|
|
<PackageReference Include="AspNet.Security.OAuth.Weixin" />
|
|
<PackageReference Include="DotNetCore.CAP.Dashboard" />
|
|
<PackageReference Include="DotNetCore.CAP.RedisStreams" />
|
|
<PackageReference Include="FastEndpoints" />
|
|
<PackageReference Include="FastEndpoints.Swagger" />
|
|
<PackageReference Include="FastEndpoints.Swagger.Swashbuckle" />
|
|
<PackageReference Include="FluentValidation.AspNetCore" />
|
|
<PackageReference Include="Hangfire.AspNetCore" />
|
|
<PackageReference Include="Hangfire.Redis.StackExchange" />
|
|
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
|
|
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
|
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" />
|
|
<PackageReference Include="NetCorePal.Context.AspNetCore" />
|
|
<PackageReference Include="NetCorePal.Context.CAP" />
|
|
<PackageReference Include="NetCorePal.Context.Shared" />
|
|
<PackageReference Include="NetCorePal.Extensions.AspNetCore" />
|
|
<PackageReference Include="NetCorePal.Extensions.CodeAnalysis" />
|
|
<PackageReference Include="NetCorePal.Extensions.DistributedLocks.Redis" />
|
|
<PackageReference Include="NetCorePal.Extensions.MultiEnv" />
|
|
<PackageReference Include="NetCorePal.Extensions.MicrosoftServiceDiscovery" />
|
|
<PackageReference Include="NetCorePal.Extensions.Primitives" />
|
|
<PackageReference Include="NetCorePal.Extensions.Jwt.StackExchangeRedis" />
|
|
<PackageReference Include="prometheus-net.AspNetCore" />
|
|
<PackageReference Include="prometheus-net.AspNetCore.HealthChecks" />
|
|
<PackageReference Include="Refit.HttpClientFactory" />
|
|
<PackageReference Include="Refit.Newtonsoft.Json" />
|
|
<PackageReference Include="Serilog.AspNetCore" />
|
|
<PackageReference Include="Serilog.Enrichers.ClientInfo" />
|
|
<PackageReference Include="Serilog.Sinks.OpenTelemetry" />
|
|
<PackageReference Include="StackExchange.Redis" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Fengling.Backend.Domain\Fengling.Backend.Domain.csproj" />
|
|
<ProjectReference Include="..\Fengling.Backend.Infrastructure\Fengling.Backend.Infrastructure.csproj" />
|
|
</ItemGroup>
|
|
|
|
|
|
<ItemGroup>
|
|
<PackageReference Update="SonarAnalyzer.CSharp">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="wwwroot\" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|