diff --git a/Recyclable.Collections.sln b/Recyclable.Collections.sln index 9e0491f..12edb6c 100644 --- a/Recyclable.Collections.sln +++ b/Recyclable.Collections.sln @@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Recyclable.CollectionsTests EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Recyclable.Collections.Benchmarks", "Recyclable.Collections.Benchmarks\Recyclable.Collections.Benchmarks.csproj", "{CDC0CF78-FC11-43E3-9059-3261DA3639D1}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceCodeGenerator.Net", "SourceCodeGenerator.Net\SourceCodeGenerator.Net.csproj", "{30C187CF-D469-48FC-8D35-6EB031535668}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,6 +31,14 @@ Global {CDC0CF78-FC11-43E3-9059-3261DA3639D1}.Release|Any CPU.Build.0 = Release|Any CPU {CDC0CF78-FC11-43E3-9059-3261DA3639D1}.Release|x64.ActiveCfg = Release|x64 {CDC0CF78-FC11-43E3-9059-3261DA3639D1}.Release|x64.Build.0 = Release|x64 + {30C187CF-D469-48FC-8D35-6EB031535668}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Debug|Any CPU.Build.0 = Debug|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Debug|x64.ActiveCfg = Debug|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Debug|x64.Build.0 = Debug|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Release|Any CPU.ActiveCfg = Release|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Release|Any CPU.Build.0 = Release|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Release|x64.ActiveCfg = Release|Any CPU + {30C187CF-D469-48FC-8D35-6EB031535668}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/SourceCodeGenerator.Net/RecyclableCollectionsGenerator.cs b/SourceCodeGenerator.Net/RecyclableCollectionsGenerator.cs new file mode 100644 index 0000000..6d22282 --- /dev/null +++ b/SourceCodeGenerator.Net/RecyclableCollectionsGenerator.cs @@ -0,0 +1,19 @@ +using Microsoft.CodeAnalysis; +using System; + +namespace SourceCodeGenerator.Net +{ + [Generator] + public class RecyclableCollectionsGenerator : ISourceGenerator + { + public void Execute(GeneratorExecutionContext context) + { + context.AddSource($".g.cs"); + } + + public void Initialize(GeneratorInitializationContext context) + { + // Nothing to initialize at this point yet + } + } +} diff --git a/SourceCodeGenerator.Net/SourceCodeGenerator.Net.csproj b/SourceCodeGenerator.Net/SourceCodeGenerator.Net.csproj new file mode 100644 index 0000000..aab5db2 --- /dev/null +++ b/SourceCodeGenerator.Net/SourceCodeGenerator.Net.csproj @@ -0,0 +1,16 @@ + + + + netstandard2.0 + True + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + +