-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Comments
|
This is not accurate. PolySharp generates the correct
@Lordfirespeed I need more info from your end. First, I can't repro this: Second, how is your project even compiling at all, if you're saying the .NET Standard 2.1 target doesn't have that polyfill? Are you sure you're not looking at the wrong place or perhaps it was just VS not showing all generated files correctly? |
@Sergio0694 You are quite right. Brilliant solution that I hadn't thought of so didn't check for. My apologies for spreading FUD. |
All good, no worries! Just wanted to make sure there were no misunderstandings! 😊 |
Reproduction Steps
Make a project that targets
netstandard2.1
andnet8.0
and add a
record class
to it with some members, or alternatively a class withrequired init
properties.Expected Behavior
IsExternalInits
type should be included in the compiled assembly targetingnetstandard2.1
.Actual Behavior
Compilation succeeds, but
IsExternalInits
type is not included in the compiled assembly targetingnetstandard2.1
.System info
This section should contain useful info such as:
net48
andnetstandard2.1
)The text was updated successfully, but these errors were encountered: