Add importing of netmodule #819
Loading…
Reference in a new issue
No description provided.
Delete branch "kant2002/kant/import-netmodule"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #818
Hi @kant2002! Thank you for your PR!
Is this an actual case you're hitting? While the code seems to make sense, could you add tests for it?
Thanks!
@jbevain I was hitting that in the actual snippet which I wrote in the issue. That snipped was created by @fornever when he play with C compiler in .NET. He probably can explain more.
Regarding tests, what's proper place to add test for this case? I was looking for them, but I cannot find nice place where I can validate case.
Hey!
The place to add a test would be there:
https://github.com/jbevain/cecil/blob/master/Test/Mono.Cecil.Tests/ImportCecilTests.cs
Thanks!
This was an experiment while I was investigating how to create/use a
.netmodulefile using Cecil (in a project where I'm trying to create a fully C17-compatible compiler using Cecil, among other tools).Initially, I wanted to mimic the full C-style compilation: creating a separate
.netmodulefor every translation unit, and then linking them together using the .NET assembly linker (al.exe, IIRC).Though right now I've deserted this approach (not because of any Cecil problems, but because I don't think it's appropriate). So, there are no any actual uses of
.netmodules in my code at the moment.It not impossible I'll decide to play with them again later, but not too likely, either.
@jbevain I think this is ready for another round of review.
@jbevain New year is soon. I behave well, so may I have some present on New Year, or on Christmas ?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.