remove Generator Experiment

This commit is contained in:
ig 2023-06-13 13:07:29 +02:00
parent c6c71d5ada
commit 0a9d95188a
2 changed files with 0 additions and 47 deletions

View File

@ -1,25 +0,0 @@
using Microsoft.CodeAnalysis;
namespace InnovEnergy.Lib.Generators;
[Generator]
public class MySourceGenerator : ISourceGenerator
{
public void Initialize(GeneratorInitializationContext context)
{
}
public void Execute(GeneratorExecutionContext context)
{
var file = "/home/eef/sync/work/Code/innovenergy/git/csharp/Lib/Protocols/Modbus/Reflection/Exec.cs";
File.WriteAllText(file, "");
throw new Exception("foo");
foreach (var st in context.Compilation.SyntaxTrees)
{
File.AppendAllText(file, st.GetText().ToString());
}
}
}

View File

@ -1,22 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../InnovEnergy.Lib.props" />
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(MSBuildProjectDirectory)</CompilerGeneratedFilesOutputPath>
<!-- <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>-->
</PropertyGroup>
</Project>