Install
| Product | Versions |
|---|---|
| .NET Standard |
README
IKVM.NET.Sdk - IKVM SDK for the Java Language
Provides a managed SDK for .NET projects targeting the IKVM runtime.
Usage
IKVM.NET.Sdk provides a full MBuild SDK for compiling Java code into .NET assemblies. To use, create a .msbuildproj
file with contents like the following, using the latest version.
<Project Sdk="IKVM.NET.Sdk/8.2.2">
<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
</Project>
Limitations
As of now only net461 and netcoreapp3.1 target Frameworks are supported. Any other target frameworks will throw an error.
Projects will not yet build on Linux.
The project will compile fine in Visual Studio, with some caveats. Since we don't yet have a Visual Studio extension,
manual modifications will be required to the .sln file. Ensure that after you add the project to your solution, you
adjust the Project Type Guid to the C# project value of {9A19103F-16F7-4668-BE54-9A1E7A4F7556}.
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyProject", "src\MyProject\MyProject.msbuildproj", "ProjectGuid"
EndProject
.java files are included by default, just as .cs files are included by default in C# projects. However, Visual Studio does not yet show them as included files within the solution explorer. Ensure you have "Show All" enabled. There is no need to manually add them to item groups.
No Intellisense yet.
ProjectReferences work fine, except for the TFM limitations.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.