SourceCodeGenerator.Net project added.

This commit is contained in:
mlemanczyk committed 2023-06-10 11:30:07 +02:00
1 parent 12083c4682
commit e7c424dfa9
3 files changed
+45

No files matched your search

@@ -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
}
}
}
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<EnforceExtendedAnalyzerRules>True</EnforceExtendedAnalyzerRules>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" />
</ItemGroup>
</Project>