Skip to content

Retarget Harp.Generators to net8.0 - #140

Merged
glopesdev merged 1 commit into
harp-tech:mainfrom
glopesdev:retarget-net8
Sep 8, 2026
Merged

Retarget Harp.Generators to net8.0#140
glopesdev merged 1 commit into
harp-tech:mainfrom
glopesdev:retarget-net8

Conversation

@glopesdev

Copy link
Copy Markdown
Contributor

Harp.Generators now targets net8.0 and ships lib/net8.0 in place of lib/netstandard2.0. T4.BuildTools is marked PrivateAssets="all", so the packed dependency group carries only Bonsai.Harp and YamlDotNet, where 0.7.0 also carried build tooling that ships no lib folder and that no consumer referenced.

Eight nullable warnings come with the retarget, since the netstandard2.0 reference assemblies are null-oblivious while the net8.0 ones are annotated. All eight sit at the boundary with three BCL signatures, Dictionary<TKey, TValue>.TryGetValue, object.ToString and MethodInfo.Invoke, and each is cleared at the call site.

Closes #139

The package now ships lib/net8.0 in place of lib/netstandard2.0, and
T4.BuildTools is marked PrivateAssets="all" so it no longer reaches
the consumer graph, leaving Bonsai.Harp and YamlDotNet as the only
declared dependencies. Eight nullable warnings raised by the annotated
net8.0 BCL are cleared at the call sites for Dictionary.TryGetValue,
object.ToString and MethodInfo.Invoke. A direction key holding
a non-string now reports the invalid value rather than raising
InvalidCastException.

Closes harp-tech#139
@glopesdev glopesdev added the feature New planned feature label Sep 8, 2026
@glopesdev
glopesdev merged commit 8b1efea into harp-tech:main Sep 8, 2026
9 checks passed
@glopesdev
glopesdev deleted the retarget-net8 branch September 8, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New planned feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retarget Harp.Generators to net8.0

1 participant