Skip to content

c#: projects with <OutputType>Exe</OutputType> don't generate cabi_realloc when compiled #778

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

Closed
Tracked by #713
jsturtevant opened this issue Dec 1, 2023 · 2 comments
Labels
gen-c# Related to the C# code generator

Comments

@jsturtevant
Copy link
Collaborator

Also a further problem I found was that it becomes necessary to declare <IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints> if you have <OutputType>Exe</OutputType>, otherwise the compiler won't generate any export for cabi_realloc at all and therefore the component wouldn't satisfy the spec.

Originally posted by @SteveSandersonMS in #760 (comment)

@jsturtevant jsturtevant added the gen-c# Related to the C# code generator label Dec 5, 2023
@yowl
Copy link
Collaborator

yowl commented Dec 6, 2023

I believe this is by design for exe projects

@yowl
Copy link
Collaborator

yowl commented Dec 21, 2023

Now we use a separate mechanism for cabi_realloc this should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gen-c# Related to the C# code generator
Projects
None yet
Development

No branches or pull requests

2 participants