-
Notifications
You must be signed in to change notification settings - Fork 127
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
Missing predefined 'System.NotSupportedException' type when linking library #3145
Comments
Not exactly expected, but not surprising. We mainly test scenarios which are exercised via the .NET SDK. Invocation of illink directly from the command line is effectively unsupported. So it's surprised if there's a regression or some specific thing not working. For this specific case you can workaround it by passing in That said, why are you hitting so many unresolved symbols? Why not pass all the required assemblies as references via |
I'm not sure this is the right text, but it would have been great to have this option documented in association with the error to help people who encounter this (see dotnet#3145 (comment)).
Thanks for your quick response @vitek-karas !
This does seem to work. Thanks! Still need to test if the trimmed assemblies are functional, but at least the linker is succeeding!
I'd love to know the answer to this question as well. This is my first time using the linker, so I may be doing something dumb. I have a .NET 6 class library with an IKVM I'm running
This fails, but when I add both
I don't see that option documented here so I'm not sure how to use it. I tried passing |
The The doc you refer to is kind of a "what we needed at one point" and definitely needs some love to bring up to par. Probably the best inspiration for what you're trying to do would be to play with the dotnet/runtime repo. If you build the libraries - so something like As noted above, this mode is not really supported - as in, we try to make it to work, but the only config where we guanartee it works in are the cases in runtime repo. |
I'm trying to use the illink cli to reduce the size of a set of assemblies I've converted from Java with IKVM in order to (hopefully) ship them as a small library.
When I run the linker on my project bin directory, I get these errors:
I added the
--skip-unresolved
flag, but I still get this error:Is this expected?
The text was updated successfully, but these errors were encountered: