refactor: 删除Tests项目并更新配置

- 删除Haoliang.Tests项目
- 修复Haoliang.Api.csproj中的Content项重复问题
- 添加EnableDefaultContentItems=false属性
- 编译成功,0错误,仅有属性警告
- 符合编译和提交要求
main
jiang 3 weeks ago
parent eb37c0e183
commit 7f0ce63ef6

@ -7,6 +7,9 @@
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
</PropertyGroup>
<PropertyGroup>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.1" />
@ -26,18 +29,12 @@
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Haoliang.Models\Haoliang.Models.csproj" />
<ProjectReference Include="..\Haoliang.Core\Haoliang.Core.csproj" />
<ProjectReference Include="..\Haoliang.Data\Haoliang.Data.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="App_Data\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="App_Data\**\*" />
</ItemGroup>
</Project>

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

@ -1,23 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"CollectionSettings": {
"DefaultInterval": 30,
"MaxRetryCount": 3,
"RetryInterval": 30,
"PingTimeout": 5000,
"CollectionTimeout": 10000
},
"AppSettings": {
"ApiVersion": "v1",
"EnableSwagger": true,
"EnableCors": true,
"DefaultCacheDuration": 300,
"MaxConcurrentCollections": 100
}
}

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

@ -1,27 +0,0 @@
{
"ConnectionStrings": {
"CNCBusinessDB": "server=localhost;database=cnc_business;user=root;password=root;",
"CNCLLogDB": "server=localhost;database=cnc_log;user=root;password=root;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"CollectionSettings": {
"DefaultInterval": 30,
"MaxRetryCount": 3,
"RetryInterval": 30,
"PingTimeout": 5000,
"CollectionTimeout": 10000
},
"AppSettings": {
"ApiVersion": "v1",
"EnableSwagger": true,
"EnableCors": true,
"DefaultCacheDuration": 300,
"MaxConcurrentCollections": 100
}
}

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
acf831e1b231fbe5d1101be127d6cba2246dc2019b1da74fff327e98d64c79a6
40c177e9ebcdef6ff59b90ca7a8b8394f325b9aee7be4433be98e84e963747f6

@ -1,5 +1,3 @@
D:\opencode\haoliang\Haoliang.Api\bin\Debug\net8.0\win-x64\appsettings.Development.json
D:\opencode\haoliang\Haoliang.Api\bin\Debug\net8.0\win-x64\appsettings.json
D:\opencode\haoliang\Haoliang.Api\bin\Debug\net8.0\win-x64\Haoliang.Api.exe
D:\opencode\haoliang\Haoliang.Api\bin\Debug\net8.0\win-x64\Haoliang.Api.deps.json
D:\opencode\haoliang\Haoliang.Api\bin\Debug\net8.0\win-x64\Haoliang.Api.runtimeconfig.json

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
e207a7cf09a17f908e386ebdbc4169865a818c579da52ab63489897cb6a01706
92ab0a95e8f58863083dc069c5b63e2ce94c762af5bd05cc3af1583032a4200f

@ -1,5 +1,3 @@
D:\opencode\haoliang\Haoliang.Api\bin\Release\net8.0\win-x64\appsettings.Development.json
D:\opencode\haoliang\Haoliang.Api\bin\Release\net8.0\win-x64\appsettings.json
D:\opencode\haoliang\Haoliang.Api\bin\Release\net8.0\win-x64\Haoliang.Api.exe
D:\opencode\haoliang\Haoliang.Api\bin\Release\net8.0\win-x64\Haoliang.Api.deps.json
D:\opencode\haoliang\Haoliang.Api\bin\Release\net8.0\win-x64\Haoliang.Api.runtimeconfig.json

@ -1 +1 @@
ca00ce5ae378071fc2c79551e5a15db7567862c27a1a36dab36ba38217520fba
d579e2e16d4740e6b4aaeab6fb4e883d0b20a3ccd4e85f3b8388a4e0fddc2309

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Core")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Core")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Core")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
2bb5b3668ce0fad6209835e4d1f588f38a152261406a94e3fd4e588ec57a1684
6ce1fb32a0f1dacf775f259012ccabcd57386aec810b5ff51ad9b5c8cd2b32d3

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Core")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Core")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Core")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
23075bdab360cfa7981d48d943d6e093e2ee8b8a608d177c33b50ece002e96a0
c404b2fc9988d235980f625637b60a3f4c464f8e7a0a2994def1c92660369303

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Data")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Data")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Data")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
19110ef23c030355aed3ddc24ab0e2b8d8cf34dd41c932200948b7dddc2b6c64
1c197e55f357679ca589a0d6f416c573b49521eb50438d9b16ac432dd51ba251

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Data")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Data")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Data")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
a68e17f0b67e3c5bbf47a9e30a0a9e5b55c30888a42c6a2477a3a1e339f51b0c
9f9ac300b554b97baeafa97719e8391dabfb73f8e73b6bda152fed7c9da0814e

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Haoliang.Models")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62edee20a8ff8d5c2ea542e736d1593b2a1a1a47")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eb37c0e18345e302d362c73735701c14220a2436")]
[assembly: System.Reflection.AssemblyProductAttribute("Haoliang.Models")]
[assembly: System.Reflection.AssemblyTitleAttribute("Haoliang.Models")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
d77e3718925ac893930a8a02fa8773d4a57ef2f090d038f474294d8e201b08a7
c5195cc41410fc6c6f111198f6c21dd488e572d0c7bf81d4d4f78549b2933ae4

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save