Skip to main content
Published
Aug 10, 2023
3y ago
Total Downloads
59.0K
58,998

Install

dotnet add package IKVM.NET.Sdk --version 8.6.3-tags-8-6-3-pre-24.1
ProductVersions
.NET Standard
netstandard2.0

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

No structural changes between v8.6.3-tags-8-6-3-pre-11.1 and v8.6.3-tags-8-6-3-pre-24.1.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.