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

Need more explanations for -l and -module #426

Open
2dpdlja496or43iq opened this issue Apr 29, 2023 · 6 comments
Open

Need more explanations for -l and -module #426

2dpdlja496or43iq opened this issue Apr 29, 2023 · 6 comments

Comments

@2dpdlja496or43iq
Copy link

Please help. You said that .NET DLLs can't be used directly as they need to be decompiled to C# first. So what do these switches do?

@2dpdlja496or43iq
Copy link
Author

@yanghuan @Drake53

@yanghuan
Copy link
Owner

The -module parameter is used when compiling a DLL project with CSharp.lua. The -l parameter is used to indicate that the project being compiled by CSharp.lua has a reference to this DLL project. To ensure proper execution in Lua, both of these parameters need to be used in conjunction.

@2dpdlja496or43iq
Copy link
Author

2dpdlja496or43iq commented May 22, 2023

To ensure proper execution in Lua, both of these parameters need to be used in conjunction.

Please give me an example. I think I still not really understand this part of your answer. Thank you.

@yanghuan
Copy link
Owner

https://github.com/yanghuan/CSharp.lua/blob/master/test/BridgeNetTests/Tests/test.lua#L12
test project use it, you can see this example

@ghost
Copy link

ghost commented Feb 8, 2024

#502

@ghost
Copy link

ghost commented Feb 10, 2024

@yanghuan @Drake53 The DLL to be used with the -l switch is a .NET assembly or a Lua extension DLL? Please clarify.

@ghost ghost mentioned this issue Feb 10, 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

2 participants