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

Compiling C# class library with Microsoft.JavaScript.NodeApi.Generator version 0.8.16 for .NET 8 fails #413

Closed
JohannesMej opened this issue Dec 20, 2024 · 0 comments

Comments

@JohannesMej
Copy link

Compiling a hello world class library for .NET 8 fails while .NET 6 succeeds.
The csproj file:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <OutDir>bin</OutDir>
    <NodeApiAssemblyJSModuleType>commonjs</NodeApiAssemblyJSModuleType>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.JavaScript.NodeApi.Generator" Version="0.8.16" />
  </ItemGroup>

</Project>

Error:
Image

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

1 participant