Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AdditionalTextConstantGenerator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE = LICENSE
README.md = README.md
global.json = global.json
versionsuffix.ci.props = versionsuffix.ci.props
versionsuffix.local.props = versionsuffix.local.props
versionsuffix.release.props = versionsuffix.release.props
EndProjectSection
EndProject
Global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Datacute.IncrementalGeneratorExtensions" Version="1.0.2">
<PackageReference Include="Datacute.IncrementalGeneratorExtensions" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<Datacute_IncludeReadmeFile>true</Datacute_IncludeReadmeFile>
<DefineConstants>$(DefineConstants);DATACUTE_EXCLUDE_TABINDENTINGLINEAPPENDER</DefineConstants>
</PropertyGroup>

<ItemGroup>
<!-- Pack the generator dll in the analyzers/dotnet/cs path -->
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
Expand Down
1 change: 0 additions & 1 deletion AdditionalTextConstantGenerator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public void Initialize(IncrementalGeneratorInitializationContext context)

context.RegisterPostInitializationOutput(c =>
{
c.AddEmbeddedAttributeDefinition();
c.AddSource($"Datacute.Attributes.AdditionalTextConstantsAttribute.g.cs", Templates.AttributeClass);
});

Expand Down
2 changes: 1 addition & 1 deletion AdditionalTextConstantGenerator/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal static class Templates
@"
namespace Datacute.AdditionalTextConstantGenerator
{
[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false), global::Microsoft.CodeAnalysis.Embedded]
[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false)]
internal sealed class AdditionalTextConstantsAttribute : global::System.Attribute
{
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions AdditionalTextConstantGenerator/TrackingNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public enum TrackingNames
AttributeGlobsSelected = 142, // Helper: Just Path/Extension for resource matching
FileInfoAndGlobsCombined = 143, // Step 4b: FileInfo combined with ResourceGlobs
MatchingFilesFiltered = 144, // Step 4c: Files filtered by glob match
AdditionalTextExtracted = 146, // Step 4d: EmbeddedResource created (with FileAndGlobs info)
AdditionalTextExtracted = 146, // Step 4d: AdditionalText Content created (with FileAndGlobs info)
AdditionalTextAndAllAttributeGlobsCombined = 147, // Step 4e: Resource/File data combined with all AttributeGlobInfo
MatchingTextAndAttributeSelected = 148, // Step 4f: (AttributeContext, EmbeddedResource) selected
MatchingTextAndAttributeSelected = 148, // Step 4f: (AttributeContext, AdditionalText) selected
AdditionalTextsGroupedByAttributeContext = 150, // Step 5: Resources grouped into lookup
GenerationInputPrepared = 160, // Step 6: Final data prepared for output (AttributeContext, Resources, Options)

Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2025-07-28

### Fixed
- Updated `Datacute.IncrementalGeneratorExtensions` to fix broken embedded attribute usage

## [0.0.2-alpha] - 2025-07-27

### Fixed
Expand All @@ -17,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- EmbeddedResourcePropertyGenerator code, converted to generate string constants for additional text files in a project

[Unreleased]: https://github.com/datacute/AdditionalTextConstantGenerator/compare/0.0.2-alpha...develop
[Unreleased]: https://github.com/datacute/AdditionalTextConstantGenerator/compare/1.0.0...develop
[1.0.0]: https://github.com/datacute/AdditionalTextConstantGenerator/releases/tag/1.0.0
[0.0.2-alpha]: https://github.com/datacute/AdditionalTextConstantGenerator/releases/tag/0.0.2-alpha
[0.0.1-alpha]: https://github.com/datacute/AdditionalTextConstantGenerator/releases/tag/0.0.1-alpha
3 changes: 1 addition & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"sdk": {
"version": "9.0.0",
"rollForward": "latestMajor",
"allowPrerelease": true
"rollForward": "feature"
}
}
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>0.0.2</VersionPrefix>
<VersionPrefix>1.0.0</VersionPrefix>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion versionsuffix.release.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionSuffix>alpha</VersionSuffix>
<!-- <VersionSuffix>alpha</VersionSuffix>-->
</PropertyGroup>
</Project>