Skip to content

Building for .NET Standard 2.0 #20

@erksch

Description

@erksch

Hey there!

Since support for .NET Standard was merged, I tried to build the dlls for .NET standard:

git clone git@github.com:ikvm-revived/ikvm.git
cd ikvm
dotnet build /p:TargetFrameworks=netstandard2.0

I got the build command from the pull request discussion.

However I am getting the following error:

$ dotnet build /p:TargetFrameworks=netstandard2.0
Microsoft (R) Build Engine version 16.3.0+0f4c62fea for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 280.75 ms for C:\Users\erikz\Projects\ikvm\ikvmstub\ikvmstub.csproj.
  Restore completed in 280.73 ms for C:\Users\erikz\Projects\ikvm\jvm\jvm.csproj.
  Restore completed in 280.66 ms for C:\Users\erikz\Projects\ikvm\awt\IKVM.AWT.WinForms.FirstPass\IKVM.AWT.WinForms.FirstPass.csproj.
  Restore completed in 280.78 ms for C:\Users\erikz\Projects\ikvm\reflect\IKVM.Reflection.csproj.
  Restore completed in 280.78 ms for C:\Users\erikz\Projects\ikvm\openjdk\openjdk.csproj.
  Restore completed in 280.78 ms for C:\Users\erikz\Projects\ikvm\ikvmc\ikvmc.csproj.
  Restore completed in 280.72 ms for C:\Users\erikz\Projects\ikvm\awt\IKVM.AWT.WinForms\IKVM.AWT.WinForms.csproj.
  Restore completed in 280.78 ms for C:\Users\erikz\Projects\ikvm\ikvm\ikvm.csproj.
  Restore completed in 13.17 ms for C:\Users\erikz\Projects\ikvm\tools\SourceLicenseAnalyzer\SourceLicenseAnalyzer.csproj.
  Restore completed in 20.99 ms for C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime.JNI\IKVM.Runtime.JNI.csproj.
  Restore completed in 39.09 ms for C:\Users\erikz\Projects\ikvm\tools\depcheck\depcheck.csproj.
  Restore completed in 77.87 ms for C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime.FirstPass\IKVM.Runtime.FirstPass.csproj.
  Restore completed in 69.72 ms for C:\Users\erikz\Projects\ikvm\tools\implib\implib.csproj.
  Restore completed in 84.11 ms for C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime\IKVM.Runtime.csproj.
  Restore completed in 76.36 ms for C:\Users\erikz\Projects\ikvm\runtime\DummyLibrary\DummyLibrary.csproj.
  Restore completed in 19.91 ms for C:\Users\erikz\Projects\ikvm\tools\pubkey\pubkey.csproj.
  Restore completed in 44.82 ms for C:\Users\erikz\Projects\ikvm\tools\updbaseaddresses\updbaseaddresses.csproj.
  updbaseaddresses -> C:\Users\erikz\Projects\ikvm\tools\bin\Debug\netstandard2.0\updbaseaddresses.dll
  depcheck -> C:\Users\erikz\Projects\ikvm\tools\bin\Debug\netstandard2.0\depcheck.dll
  pubkey -> C:\Users\erikz\Projects\ikvm\tools\bin\Debug\netstandard2.0\pubkey.dll
  SourceLicenseAnalyzer -> C:\Users\erikz\Projects\ikvm\tools\bin\Debug\netstandard2.0\SourceLicenseAnalyzer.dll
  IKVM.Reflection -> C:\Users\erikz\Projects\ikvm\bin\Debug\netstandard2.0\IKVM.Reflection.dll
C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime\tracer.cs(100,10): error CS0246: The type or namespace name 'ConfigurationException' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\erikz\Projects\ikvm\ikvmstub\ikvmstub.csproj]
C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime\TypeWrapper.cs(2070,34): error CS0246: The type or namespace name 'ArgIterator' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\erikz\Projects\ikvm\ikvmstub\ikvmstub.csproj]
  implib -> C:\Users\erikz\Projects\ikvm\tools\bin\Debug\netstandard2.0\implib.dll

Build FAILED.

C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime\tracer.cs(100,10): error CS0246: The type or namespace name 'ConfigurationException' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\erikz\Projects\ikvm\ikvmstub\ikvmstub.csproj]
C:\Users\erikz\Projects\ikvm\runtime\IKVM.Runtime\TypeWrapper.cs(2070,34): error CS0246: The type or namespace name 'ArgIterator' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\erikz\Projects\ikvm\ikvmstub\ikvmstub.csproj]
    0 Warning(s)
    2 Error(s)

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions