Skip to content

Commit 674fd21

Browse files
committed
fix: ValueVariantAttributes
1 parent 7504645 commit 674fd21

5 files changed

Lines changed: 5 additions & 15 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<LangVersion>latest</LangVersion>
44
<Nullable>enable</Nullable>
55

6-
<Version>0.1.0</Version>
6+
<Version>0.1.1</Version>
77
<Authors>hikarin522</Authors>
88
<Copyright>(c) 2022 hikarin522.</Copyright>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>

ValueVariant.Generator/ValueVariant.Generator.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<PackageReference Include="System.CodeDom" Version="6.0.0" PrivateAssets="all" GeneratePathProperty="true" />
1515
</ItemGroup>
1616

17+
<ItemGroup>
18+
<Compile Include="..\ValueVariant\ValueVariantAttribute.cs" />
19+
</ItemGroup>
20+
1721
<ItemGroup>
1822
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
1923
</ItemGroup>

ValueVariant.Generator/ValueVariantAttributeTemplate.tt

Lines changed: 0 additions & 11 deletions
This file was deleted.

ValueVariant.Generator/ValueVariantGenerator.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ public sealed class ValueVariantGenerator : ISourceGenerator
1313
{
1414
public void Initialize(GeneratorInitializationContext context)
1515
{
16-
context.RegisterForPostInitialization(ctx => {
17-
ctx.AddSource($"{nameof(ValueVariantAttribute)}.cs", new ValueVariantAttributeTemplate().TransformText());
18-
});
1916
context.RegisterForSyntaxNotifications(() => new SyntaxReceiver(nameof(ValueVariantAttribute)));
2017
}
2118

File renamed without changes.

0 commit comments

Comments
 (0)