Skip to content

Commit b19a790

Browse files
committed
update code base to c# 11
1 parent b9ea377 commit b19a790

File tree

111 files changed

+6553
-6713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+6553
-6713
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,11 @@ end_of_line = crlf
4242
[*.sh]
4343
end_of_line = lf
4444

45+
[*.{cs,vb}]
46+
dotnet_sort_system_directives_first = true
47+
dotnet_separate_import_directive_groups = true
48+
dotnet_style_namespace_match_folder = true
49+
50+
[*.cs]
51+
csharp_using_directive_placement = outside_namespace
52+
csharp_style_namespace_declarations = file_scoped:warning

EntityFrameworkCore.Generator.sln

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{6A18343D-8DEC-4FCC-861E-FA8312E25153}"
1515
ProjectSection(SolutionItems) = preProject
1616
appveyor.yml = appveyor.yml
17-
build\common.props = build\common.props
18-
build\sourcelink.props = build\sourcelink.props
19-
build\version.props = build\version.props
17+
src\Directory.Build.props = src\Directory.Build.props
2018
EndProjectSection
2119
EndProject
2220
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AA406DDA-50E2-40C8-BCC9-3A2194771231}"

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ init:
1212

1313
dotnet_csproj:
1414
patch: true
15-
file: 'build\version.props'
15+
file: 'src\Directory.Build.props'
1616
version: '{version}'
1717
package_version: '{version}'
1818
assembly_version: '{version}.0'

build/sourcelink.props

Lines changed: 0 additions & 12 deletions
This file was deleted.

build/version.props

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
<Project>
2-
<Import Project="version.props" />
3-
4-
<PropertyGroup Label="Source Link">
5-
<ProjectParentDirectory>$([System.IO.Path]::GetDirectoryName('$(MSBuildProjectDirectory)'))</ProjectParentDirectory>
6-
<ProjectParentDirectoryName>$([System.IO.Path]::GetFileName('$(ProjectParentDirectory)'))</ProjectParentDirectoryName>
7-
</PropertyGroup>
8-
9-
<Import Project="sourcelink.props" Condition="'$(ProjectParentDirectoryName)' == 'src'" />
102

113
<PropertyGroup Label="Package">
124
<Product>EntityFrameworkCore.Generator</Product>
135
<Title>EntityFrameworkCore.Generator</Title>
146
<Description>.NET Core command-line (CLI) tool to generate Entity Framework Core source files.</Description>
157
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) LoreSoft</Copyright>
168
<Authors>LoreSoft</Authors>
9+
<NeutralLanguage>en-US</NeutralLanguage>
1710
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1811
<PackageTags>Entity Framework Core;EF;Data;EntityFramework;EntityFrameworkCore;EFCore;Generation;Generator</PackageTags>
1912
<PackageOutputPath>$(SolutionDir)artifacts</PackageOutputPath>
2013
<PackageProjectUrl>https://github.com/loresoft/EntityFrameworkCore.Generator</PackageProjectUrl>
21-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
14+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2215
<PackageIcon>logo.png</PackageIcon>
2316
<RepositoryType>git</RepositoryType>
2417
<RepositoryUrl>https://github.com/loresoft/EntityFrameworkCore.Generator</RepositoryUrl>
18+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2519
<NoWarn>1591</NoWarn>
20+
<CheckEolTargetFramework>false</CheckEolTargetFramework>
21+
</PropertyGroup>
22+
23+
<PropertyGroup>
24+
<Version>5.0.0.0</Version>
25+
<PackageVersion>5.0.0.0</PackageVersion>
26+
<AssemblyVersion>5.0.0.0</AssemblyVersion>
27+
<FileVersion>5.0.0.0</FileVersion>
28+
<InformationalVersion>5.0.0.0</InformationalVersion>
2629
</PropertyGroup>
2730

2831
<ItemGroup>
29-
<None Include=".\..\..\LICENSE">
30-
<Pack>True</Pack>
31-
<PackagePath></PackagePath>
32-
</None>
32+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
3333
</ItemGroup>
34-
34+
3535
<ItemGroup>
3636
<None Include=".\..\..\logo.png">
37-
<Pack>True</Pack>
38-
<PackagePath></PackagePath>
37+
<Pack>true</Pack>
38+
<PackagePath>\</PackagePath>
39+
<Visible>false</Visible>
3940
</None>
4041
</ItemGroup>
4142

42-
</Project>
43+
</Project>

0 commit comments

Comments
 (0)