Commit 6852a7d
authored
fix(generator): use AssemblyInformationalVersion in GeneratedCode attribute (#113)
* fix(generator): handle missing AssemblyInformationalVersion gracefully
- Fallback to `AssemblyName.Version` when `AssemblyInformationalVersionAttribute` is unavailable.
- Default to "unknown" if both values are missing.
* fix(tests): update regex pattern in `GeneratedCodeAttributeRegex`
- Enhanced regex to match version strings with a "+" suffix, e.g., `1.2.3+buildinfo`.
- Adjusted formatting for better readability and maintenance.
* feat(build): add support for custom versioning via `VERSION` variable
- Introduced `VERSION` variable in `taskfile.yaml` for custom build versioning.
- Updated `build`, `pack`, and `publish` tasks to include `/p:Version` when `VERSION` is defined.
- Enforced `VERSION` requirement for `publish` and `pack-local` tasks.
* fix(generator): simplify fallback logic for AssemblyInformationalVersion
- Removed fallback to `AssemblyName.Version` when `AssemblyInformationalVersion` is unavailable.
- Simplified assignment logic to default directly to "unknown".
* refactor(taskfile): rename `pack-local` task to `publish-local`
- Updated task name for clarity and consistency with its purpose.
- No changes to functionality or dependencies.
* fix(taskfile): include version in `publish-local` log output
- Updated `echo` command to display the `VERSION` being published.
- Enhances logging clarity during local NuGet publishing.
* fix(workflows): update workflow templates to use latest version
- Updated `publish-preview.yml` and `publish-release.yml` to reference `main` instead of `v8.0`.
- Adjusted `release` event trigger syntax in `publish-release.yml` for consistency.
- Ensures workflows use the latest updates from the shared templates.
* fix(taskfile): include version in `publish` log output
- Updated `echo` command to display the `VERSION` being published.
- Improves logging clarity during NuGet package publishing.
* fix(taskfile): remove quotes around `VERSION` in `build` and `pack` commands
- Corrected `/p:Version` parameter to avoid quotes for compatibility with .NET CLI.
- Ensures proper handling of the `VERSION` variable during build and pack tasks.
* fix(generator): clean up project file formatting and configuration
- Removed redundant spaces in `PackageReference` and other tag declarations for consistency.
- Disabled `IncludeSourceRevisionInInformationalVersion` to streamline generated version metadata.
- Ensured proper formatting of item groups and property settings in `.csproj`.
* fix(tests): enhance regex pattern in `GeneratorTestHelpers`
- Updated regex to match version strings with complex suffixes (`+`, `.` or `-`).
- Improves version string parsing accuracy in tests.1 parent f8e2cae commit 6852a7d
3 files changed
Lines changed: 14 additions & 13 deletions
File tree
- src/LayeredCraft.DynamoMapper.Generators
- test/LayeredCraft.DynamoMapper.Generators.Tests
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
0 commit comments