Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Normalize line endings so files written by the generator and committed to a repository
# (see EntityLengthsOutputPath) do not show up as modified on a different platform.
* text=auto

*.cs text eol=lf
*.csproj text eol=lf
*.props text eol=lf
*.targets text eol=lf
*.md text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.sln text eol=crlf
6 changes: 5 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
# The tests and samples multi-target net8.0-net10.0, so every runtime must be present.
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
11 changes: 11 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project>

<PropertyGroup>
<!--
Target frameworks supported by the samples and exercised by the tests. The generator itself
stays on netstandard2.0, which is what Roslyn loads analyzers from.
-->
<SupportedTargetFrameworks>net8.0;net9.0;net10.0</SupportedTargetFrameworks>
</PropertyGroup>

</Project>
38 changes: 38 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<Project>

<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
<!--
The generator itself targets netstandard2.0 and must keep a low Roslyn floor: the referenced
version is the minimum compiler a consuming project needs.
-->
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="[4.8.0, 4.12.0]"/>
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.6.0"/>
</ItemGroup>

<ItemGroup>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
<PackageVersion Include="xunit" Version="2.9.3"/>
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5"/>
</ItemGroup>

<!--
EF Core follows the target framework, so multi-targeted projects exercise the generator against
every supported EF Core line instead of only the newest one.
-->
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.29"/>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="9.0.18"/>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.10"/>
</ItemGroup>

</Project>
78 changes: 78 additions & 0 deletions EntityLengths.Generator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,106 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityLengths.Generator.Tes
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityLengths.Generator.Sample", "src\EntityLengths.Generator.Sample\EntityLengths.Generator.Sample.csproj", "{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{5D20AA90-6969-D8BD-9DCD-8634F4692FDA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp.Domain", "samples\CleanArchitecture\MyApp.Domain\MyApp.Domain.csproj", "{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp.Infrastructure", "samples\CleanArchitecture\MyApp.Infrastructure\MyApp.Infrastructure.csproj", "{114FC924-E94B-4E08-9712-D7427E85FD72}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp.Api", "samples\CleanArchitecture\MyApp.Api\MyApp.Api.csproj", "{228539D1-6D4B-4FEF-81B6-C097315848E9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Debug|x64.ActiveCfg = Debug|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Debug|x64.Build.0 = Debug|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Debug|x86.ActiveCfg = Debug|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Debug|x86.Build.0 = Debug|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Release|Any CPU.Build.0 = Release|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Release|x64.ActiveCfg = Release|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Release|x64.Build.0 = Release|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Release|x86.ActiveCfg = Release|Any CPU
{F7847EAA-4D47-4180-9C86-0F1738A45573}.Release|x86.Build.0 = Release|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Debug|x64.ActiveCfg = Debug|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Debug|x64.Build.0 = Debug|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Debug|x86.ActiveCfg = Debug|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Debug|x86.Build.0 = Debug|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Release|Any CPU.Build.0 = Release|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Release|x64.ActiveCfg = Release|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Release|x64.Build.0 = Release|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Release|x86.ActiveCfg = Release|Any CPU
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476}.Release|x86.Build.0 = Release|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Debug|x64.ActiveCfg = Debug|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Debug|x64.Build.0 = Debug|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Debug|x86.ActiveCfg = Debug|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Debug|x86.Build.0 = Debug|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Release|Any CPU.Build.0 = Release|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Release|x64.ActiveCfg = Release|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Release|x64.Build.0 = Release|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Release|x86.ActiveCfg = Release|Any CPU
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE}.Release|x86.Build.0 = Release|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Debug|x64.ActiveCfg = Debug|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Debug|x64.Build.0 = Debug|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Debug|x86.ActiveCfg = Debug|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Debug|x86.Build.0 = Debug|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Release|Any CPU.Build.0 = Release|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Release|x64.ActiveCfg = Release|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Release|x64.Build.0 = Release|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Release|x86.ActiveCfg = Release|Any CPU
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0}.Release|x86.Build.0 = Release|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Debug|x64.ActiveCfg = Debug|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Debug|x64.Build.0 = Debug|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Debug|x86.ActiveCfg = Debug|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Debug|x86.Build.0 = Debug|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Release|Any CPU.Build.0 = Release|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Release|x64.ActiveCfg = Release|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Release|x64.Build.0 = Release|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Release|x86.ActiveCfg = Release|Any CPU
{114FC924-E94B-4E08-9712-D7427E85FD72}.Release|x86.Build.0 = Release|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Debug|x64.ActiveCfg = Debug|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Debug|x64.Build.0 = Debug|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Debug|x86.ActiveCfg = Debug|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Debug|x86.Build.0 = Debug|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Release|Any CPU.Build.0 = Release|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Release|x64.ActiveCfg = Release|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Release|x64.Build.0 = Release|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Release|x86.ActiveCfg = Release|Any CPU
{228539D1-6D4B-4FEF-81B6-C097315848E9}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{F7847EAA-4D47-4180-9C86-0F1738A45573} = {D9D6AABE-DCD5-495B-BB51-1AF62B40444D}
{71E8CAA4-F0B9-4066-8DF8-078E1B9CC476} = {6DF2B2EA-130F-427B-A61D-E153B5D938BC}
{BB1E9BFB-AAC4-4539-884F-A98BAFCA75BE} = {D9D6AABE-DCD5-495B-BB51-1AF62B40444D}
{8730DF44-3CD8-4AAC-8121-9A3D688AD1C0} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA}
{114FC924-E94B-4E08-9712-D7427E85FD72} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA}
{228539D1-6D4B-4FEF-81B6-C097315848E9} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA}
EndGlobalSection
EndGlobal
Loading
Loading