Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(codegen): added .net6 as target framework due to issues with directive #300

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

xontab
Copy link
Contributor

@xontab xontab commented Feb 5, 2024

Changed TargetFramework to include multi-target similar to other Chr.Avro projects (such as Chr.Avro.Binary,Chr.Avro.Confluent, Chr.Avro.Json and Chr.Avro).

The reason behind this change is because the NET6_0_OR_GREATER directive is not working on .NET Standard projects (at least on ARM64 architecture). This workaround will however work on .NET 6+ since the framework package is used instead of the netstandard one.

Copy link
Member

@dstelljes dstelljes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 should have caught this with #298, thanks

@dstelljes dstelljes merged commit 6d4a43a into ch-robinson:main Feb 5, 2024
@xontab
Copy link
Contributor Author

xontab commented Feb 5, 2024

🤦 should have caught this with #298, thanks

Agreed... But somehow this was working fine on x64 based systems but not ARM64. Might be a bug in .NET/MSBuild since the behaviour changes according to the CPU architecture.

Thanks for merging.

@xontab xontab deleted the fix/net6-or-greater-directive branch February 5, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants