NogginBops / ImGui.NET_OpenTK_Sample

A sample project showing an ImGui (using ImGui.NET) renderer for OpenTK in C#
109 stars 26 forks source link

A lot of types are missing in .netcore #12

Closed Shadowblitz16 closed 3 years ago

Shadowblitz16 commented 3 years ago

A lot of types are missing in .netcore like GraphicsMode, GameWindowFlags, DisplayDevice and GraphicsContextFlags

I have OpenTK installed through NuGet

image

intellisense can't find them either

here is my csproj file

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

  <PropertyGroup>
    <OutputType>Library</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <RootNamespace>GameSharp.Editor</RootNamespace>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <OutputPath></OutputPath>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="lib\Internal\**" />
    <EmbeddedResource Remove="lib\Internal\**" />
    <None Remove="lib\Internal\**" />
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="Editor.cs" />
    <Compile Remove="Program.cs" />
    <Compile Remove="Util.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="ImGui.NET" Version="1.78.0" />
    <PackageReference Include="OpenTK" Version="4.0.3" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="lib\" />
  </ItemGroup>

</Project>
NogginBops commented 3 years ago

What branch of the repository are you using? There is a OpenTK 4.0 branch that is on .net core, though it's still on the prerelease versions of opentk. I will try to update it soon to opentk 4.0.3.

Shadowblitz16 commented 3 years ago

I was using master. ok thankyou so much.

NogginBops commented 3 years ago

I've updated the opentk 4.0 branch so it now uses the opentk 4.0.3 version.

NogginBops commented 3 years ago

Closing as this is fixed now. And the opentk 4 branch is now the default branch so this issue will be less prevalent.