Skip to content

Commit 76d678d

Browse files
authored
Merge pull request #4 from datacute/release/1.0.0
Release/1.0.0
2 parents 2c45452 + e0d6617 commit 76d678d

File tree

9 files changed

+22
-10
lines changed

9 files changed

+22
-10
lines changed

AdditionalTextConstantGenerator.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
LICENSE = LICENSE
1111
README.md = README.md
1212
global.json = global.json
13+
versionsuffix.ci.props = versionsuffix.ci.props
14+
versionsuffix.local.props = versionsuffix.local.props
15+
versionsuffix.release.props = versionsuffix.release.props
1316
EndProjectSection
1417
EndProject
1518
Global

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

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.0] - 2025-07-28
11+
12+
### Fixed
13+
- Updated `Datacute.IncrementalGeneratorExtensions` to fix broken embedded attribute usage
14+
1015
## [0.0.2-alpha] - 2025-07-27
1116

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

20-
[Unreleased]: https://github.com/datacute/AdditionalTextConstantGenerator/compare/0.0.2-alpha...develop
25+
[Unreleased]: https://github.com/datacute/AdditionalTextConstantGenerator/compare/1.0.0...develop
26+
[1.0.0]: https://github.com/datacute/AdditionalTextConstantGenerator/releases/tag/1.0.0
2127
[0.0.2-alpha]: https://github.com/datacute/AdditionalTextConstantGenerator/releases/tag/0.0.2-alpha
2228
[0.0.1-alpha]: https://github.com/datacute/AdditionalTextConstantGenerator/releases/tag/0.0.1-alpha

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
}

version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>0.0.2</VersionPrefix>
3+
<VersionPrefix>1.0.0</VersionPrefix>
44
</PropertyGroup>
55

66
<PropertyGroup>

versionsuffix.release.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionSuffix>alpha</VersionSuffix>
3+
<!-- <VersionSuffix>alpha</VersionSuffix>-->
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)