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

IsExternalInit not generated correctly in multitargeting projects #98

Open
Lordfirespeed opened this issue Mar 3, 2024 · 0 comments
Open

Comments

@Lordfirespeed
Copy link

Lordfirespeed commented Mar 3, 2024

Reproduction Steps

Make a project that targets netstandard2.1 and net8.0

<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>

and add a record class to it with some members, or alternatively a class with required init properties.

Expected Behavior

IsExternalInits type should be included in the compiled assembly targeting netstandard2.1.

Actual Behavior

Compilation succeeds, but IsExternalInits type is not included in the compiled assembly targeting netstandard2.1.

System info

This section should contain useful info such as:

  • PolySharp NuGet version 1.14..1
  • Operating system version Pop!_OS (Ubuntu) 22.04
  • .NET SDK version 8.0.100
  • Runtime is Unity 2022.3.9f1 (implements net48 and netstandard2.1)
Lordfirespeed added a commit to lc-sigurd/avalonia-bepinex-console that referenced this issue Mar 3, 2024
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

No branches or pull requests

1 participant