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

What does --target Shared mean? a dotnet dll? or a plain .dll? or .so? #86

Closed
xiaoyuvax opened this issue Feb 21, 2023 · 3 comments
Closed

Comments

@xiaoyuvax
Copy link

what's the differences between Exe, WinExe and Shared? not seen in document.

I would like to build an Winform referencing several other lib projects which output DLLs, i want to Bflat them all, how can i do it.
It seems Compile referenced lib projects to Shared doesn't work.

@MichalStrehovsky
Copy link
Member

If you have an assembly, pass it to bflat build using -r.

Target shared means build a native shared library. .so on Linux, .dll on Windows. You would build a shared library if you want to consume it from a different non-dotnet programming language. Doesn't sound like your case.

@xiaoyuvax
Copy link
Author

xiaoyuvax commented Feb 21, 2023

got it, Shared seems not my case.

so what about my case? how to build referenced lib projects from source code into one native exe with bflat?
or can bflat compile an assembly as .dll lib (to native code) which can be served in -r arg?
or the -r arg can only refer to IL assembly ??!

would bflat build-il produce IL assembly which can be referenced by -r ?

does it mean, anyway, i can't build a native .dll assembly which can be "-r" referenced by a bflat built native executable?

@xiaoyuvax
Copy link
Author

How bflat built Shared library be used by other language?
I used some Exports viewer to scan bflat generated .dll file, and can't find any exported functions or so.
@MichalStrehovsky

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

2 participants