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

ikvmstub #140

Closed
asbjornu opened this issue Sep 2, 2022 · 7 comments
Closed

ikvmstub #140

asbjornu opened this issue Sep 2, 2022 · 7 comments

Comments

@asbjornu
Copy link

asbjornu commented Sep 2, 2022

I can see from #125 that ikvmstub has been renamed to IKVM.Tool.Exporter, but I'm unable to find anything named IKVM.Tool.Exporter or ikvmstub in the IKVM package after installation (dotnet restore). Where do I find the executable formerly known as ikvmstub? :)

For a bit of context, I'm working on HtmlUnit/NHtmlUnit#36 where I'm currently trying to translate the old make.cmd script into whatever version 8.2.1 of IKVM supports. I'm currently stuck at the following line:

%IKVMSTUB% mscorlib

So what I'm really wondering is how do I stub mscorlib with version 8.2.1 of IKVM? If it is still with the ikvmstub executable, I need to know where I can find it.

Thanks!

@wasabii
Copy link
Contributor

wasabii commented Sep 2, 2022

It's in the tools artifact.

Looking over htmlunit, however, this is a project which should be using IKVM.Maven.Sdk

@asbjornu
Copy link
Author

asbjornu commented Sep 2, 2022

It's in the tools artifact.

Okay, how do I find the executable after having done dotnet restore? Where is the tools artifact placed after package installation?

Looking over htmlunit, however, this is a project which should be using IKVM.Maven.Sdk

Thanks for the tip, but I don't see how "referencing Maven artifacts within .NET SDK projects" is quite what I'm after with NHtmlUnit. NHtmlUnit is a project attempting to translate the Java-based HtmlUnit so HtmlUnit can be used from .NET.

How is IKVM.Maven.Sdk going to help NHtmlUnit? Is there a tutorial on how to build an IKVM.Maven.Sdk project from scratch? The README only seems to be scratching the surface.

@asbjornu
Copy link
Author

asbjornu commented Sep 2, 2022

From the looks of it, IKVM.Maven.Sdk can possibly be used by .NET applications that want to reference the Java-based HtmlUnit directly, circumventing NHtmlUnit and alleviating its need to exist, entirely. Is that what you are suggesting? If so, that's definitely an interesting approach.

@wasabii
Copy link
Contributor

wasabii commented Sep 2, 2022

If they don't want to use your wrappers, sure . But your wrappers can still exist in nuget.

NHtmlUnit can have a MavenReference to the HtmlUnit packages in Maven.

@wasabii
Copy link
Contributor

wasabii commented Sep 2, 2022

The tools artifact is an artifact. On the github releases page.

@asbjornu
Copy link
Author

asbjornu commented Sep 3, 2022

Okay, cool – I found it. However, when executing ikvmstub mscorlib I get the following error:

Unhandled exception. System.IO.FileNotFoundException: netstandard
   at IKVM.Reflection.Universe.Load(String refname, Module requestingModule, Boolean throwOnError) in D:\a\ikvm\ikvm\src\IKVM.Reflection\Universe.cs:line 789
   at IKVM.Internal.AssemblyResolver.Init(Universe universe, Boolean nostdlib, IList`1 references, IList`1 userLibPaths) in D:\a\ikvm\ikvm\src\ikvmc\IKVM\Internal\AssemblyResolver.cs:line 93
   at ikvmstub.Program.Main(String[] args) in D:\a\ikvm\ikvm\src\ikvmstub\ikvmstub.cs:line 161
Aborted (core dumped)

@wasabii
Copy link
Contributor

wasabii commented Nov 26, 2022

Primary issue was answered. If new one open new issue.

@wasabii wasabii closed this as completed Nov 26, 2022
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