remove Generator Experiment
This commit is contained in:
parent
c6c71d5ada
commit
0a9d95188a
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
Loading…
Reference in New Issue