Skip to content

Commit 02eb8ca

Browse files
committed
chore: 更新项目结构
1 parent 29b0438 commit 02eb8ca

File tree

7 files changed

+34
-77
lines changed

7 files changed

+34
-77
lines changed

.editorconfig

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ end_of_line = crlf
77
indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
10-
dotnet_style_qualification_for_field = false:silent
11-
dotnet_style_qualification_for_property = false:silent
12-
dotnet_style_qualification_for_method = false:silent
13-
dotnet_style_qualification_for_event = false:silent
14-
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
15-
indent_size = 4
16-
tab_width = 4
17-
dotnet_style_operator_placement_when_wrapping = beginning_of_line
10+
indent_size = 2
11+
tab_width = 2
1812

1913
# c# 文件
2014
[*.cs]
@@ -119,6 +113,7 @@ csharp_style_prefer_readonly_struct = true
119113
# 代码块首选项
120114
csharp_prefer_braces = true:silent
121115
csharp_prefer_simple_using_statement = true:suggestion
116+
csharp_prefer_system_threading_lock = true:suggestion
122117
csharp_style_namespace_declarations = file_scoped:suggestion
123118
csharp_style_prefer_method_group_conversion = true:silent
124119
csharp_style_prefer_top_level_statements = true:silent
@@ -134,6 +129,7 @@ csharp_style_prefer_null_check_over_type_check = true
134129
csharp_style_prefer_range_operator = true
135130
csharp_style_prefer_tuple_swap = true
136131
csharp_style_prefer_utf8_string_literals = true
132+
csharp_style_prefer_primary_constructors = true:suggestion
137133
csharp_style_throw_expression = true
138134
csharp_style_unused_value_assignment_preference = discard_variable
139135
csharp_style_unused_value_expression_statement_preference = discard_variable
@@ -300,11 +296,3 @@ dotnet_naming_style.以_为前缀.required_prefix = _
300296
dotnet_naming_style.以_为前缀.required_suffix =
301297
dotnet_naming_style.以_为前缀.word_separator =
302298
dotnet_naming_style.以_为前缀.capitalization = camel_case
303-
304-
[*.csproj]
305-
indent_size = 2
306-
tab_width = 2
307-
308-
[*.props]
309-
indent_size = 2
310-
tab_width = 2

Cuture.CodeAnalysis.LoggingCodeFixes.sln

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Solution>
2+
<Folder Name="/solution items/">
3+
<File Path=".editorconfig" />
4+
<File Path=".gitattributes" />
5+
<File Path=".gitignore" />
6+
<File Path="CodeMaid.config" />
7+
<File Path="Directory.Build.props" />
8+
<File Path="global.json" />
9+
<File Path="LICENSE.txt" />
10+
<File Path="README.md" />
11+
</Folder>
12+
<Folder Name="/src/">
13+
<Project Path="src/Cuture.CodeAnalysis.LoggingCodeFixes.Package/Cuture.CodeAnalysis.LoggingCodeFixes.Package.csproj" />
14+
<Project Path="src/Cuture.CodeAnalysis.LoggingCodeFixes/Cuture.CodeAnalysis.LoggingCodeFixes.csproj" />
15+
</Folder>
16+
<Folder Name="/test/">
17+
<Project Path="test/Cuture.CodeAnalysis.LoggingCodeFixes.Test/Cuture.CodeAnalysis.LoggingCodeFixes.Test.csproj" />
18+
</Folder>
19+
</Solution>

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0</TargetFrameworks>
3+
<TargetFrameworks>net10.0</TargetFrameworks>
44

55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
@@ -23,7 +23,7 @@
2323
<RepositoryType>git</RepositoryType>
2424
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
2525

26-
<PackageTags>CA1727 CA2253 CA2254 logging log codefix code-fix</PackageTags>
26+
<PackageTags>CA1727 CA2253 CA2254 logging log codefix code-fix logger log-format format log-msg message</PackageTags>
2727
</PropertyGroup>
2828

2929
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">

global.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"msbuild-sdks": {
3-
"MSTest.Sdk": "3.4.3"
3+
"MSTest.Sdk": "4.0.2"
4+
},
5+
"test": {
6+
"runner": "Microsoft.Testing.Platform"
47
}
58
}

src/Cuture.CodeAnalysis.LoggingCodeFixes.Package/Cuture.CodeAnalysis.LoggingCodeFixes.Package.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
<IsPackable>true</IsPackable>
99

1010
<PackageId>Cuture.CodeAnalysis.LoggingCodeFixes</PackageId>
11-
11+
1212
<IncludeBuildOutput>false</IncludeBuildOutput>
1313
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
1414
<DevelopmentDependency>true</DevelopmentDependency>
1515
<NoPackageAnalysis>true</NoPackageAnalysis>
1616

17-
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput</TargetsForTfmSpecificContentInPackage>
17+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_AddLoggingCodeFixesAnalyzersToOutput</TargetsForTfmSpecificContentInPackage>
1818
</PropertyGroup>
1919

2020
<ItemGroup>
2121
<None Include="..\..\README.md" Link="README.md" Pack="true" PackagePath="/" />
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<ProjectReference Include="..\Cuture.CodeAnalysis.LoggingCodeFixes\Cuture.CodeAnalysis.LoggingCodeFixes.csproj" />
25+
<ProjectReference Include="..\Cuture.CodeAnalysis.LoggingCodeFixes\Cuture.CodeAnalysis.LoggingCodeFixes.csproj" PrivateAssets="All" />
2626
</ItemGroup>
2727

28-
<Target Name="_AddAnalyzersToOutput">
28+
<Target Name="_AddLoggingCodeFixesAnalyzersToOutput">
2929
<ItemGroup>
3030
<TfmSpecificPackageFile Include="$(OutputPath)\Cuture.CodeAnalysis.LoggingCodeFixes.dll" PackagePath="analyzers/dotnet/cs" />
3131
</ItemGroup>

src/Cuture.CodeAnalysis.LoggingCodeFixes/Cuture.CodeAnalysis.LoggingCodeFixes.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
6+
<AssemblyName>Cuture.CodeAnalysis.LoggingCodeFixes_</AssemblyName>
67
</PropertyGroup>
78

89
<ItemGroup>

0 commit comments

Comments
 (0)