Skip to content

Commit ee62de0

Browse files
committed
Update Datacute.IncrementalGeneratorExtensions
1 parent d5c0d06 commit ee62de0

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

AdditionalTextConstantGenerator/AdditionalTextConstantGenerator.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@
3030
</PropertyGroup>
3131

3232
<ItemGroup>
33-
<PackageReference Include="Datacute.IncrementalGeneratorExtensions" Version="1.0.2">
33+
<PackageReference Include="Datacute.IncrementalGeneratorExtensions" Version="1.0.3">
3434
<PrivateAssets>all</PrivateAssets>
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3636
</PackageReference>
3737
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" PrivateAssets="all" />
3838
</ItemGroup>
3939

40+
<PropertyGroup>
41+
<Datacute_IncludeReadmeFile>true</Datacute_IncludeReadmeFile>
42+
<DefineConstants>$(DefineConstants);DATACUTE_EXCLUDE_TABINDENTINGLINEAPPENDER</DefineConstants>
43+
</PropertyGroup>
44+
4045
<ItemGroup>
4146
<!-- Pack the generator dll in the analyzers/dotnet/cs path -->
4247
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />

AdditionalTextConstantGenerator/Generator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
1616

1717
context.RegisterPostInitializationOutput(c =>
1818
{
19-
c.AddEmbeddedAttributeDefinition();
2019
c.AddSource($"Datacute.Attributes.AdditionalTextConstantsAttribute.g.cs", Templates.AttributeClass);
2120
});
2221

AdditionalTextConstantGenerator/Templates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal static class Templates
1010
@"
1111
namespace Datacute.AdditionalTextConstantGenerator
1212
{
13-
[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false), global::Microsoft.CodeAnalysis.Embedded]
13+
[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false)]
1414
internal sealed class AdditionalTextConstantsAttribute : global::System.Attribute
1515
{
1616
/// <summary>

AdditionalTextConstantGenerator/TrackingNames.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public enum TrackingNames
1010
AttributeGlobsSelected = 142, // Helper: Just Path/Extension for resource matching
1111
FileInfoAndGlobsCombined = 143, // Step 4b: FileInfo combined with ResourceGlobs
1212
MatchingFilesFiltered = 144, // Step 4c: Files filtered by glob match
13-
AdditionalTextExtracted = 146, // Step 4d: EmbeddedResource created (with FileAndGlobs info)
13+
AdditionalTextExtracted = 146, // Step 4d: AdditionalText Content created (with FileAndGlobs info)
1414
AdditionalTextAndAllAttributeGlobsCombined = 147, // Step 4e: Resource/File data combined with all AttributeGlobInfo
15-
MatchingTextAndAttributeSelected = 148, // Step 4f: (AttributeContext, EmbeddedResource) selected
15+
MatchingTextAndAttributeSelected = 148, // Step 4f: (AttributeContext, AdditionalText) selected
1616
AdditionalTextsGroupedByAttributeContext = 150, // Step 5: Resources grouped into lookup
1717
GenerationInputPrepared = 160, // Step 6: Final data prepared for output (AttributeContext, Resources, Options)
1818

global.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"sdk": {
33
"version": "9.0.0",
4-
"rollForward": "latestMajor",
5-
"allowPrerelease": true
4+
"rollForward": "feature"
65
}
76
}

0 commit comments

Comments
 (0)