OpenGL.Net icon indicating copy to clipboard operation
OpenGL.Net copied to clipboard

NuGet: support .NET Core & .NET Standards

Open luca-piccioni opened this issue 6 years ago • 12 comments

The OpenGL.Net_VC15 solution includes project targeting .NET Core 1.1, .NET Core 2.0 and .NET Standard 2.0. The assemblies should be included in the NuGet package.

  • [ ] Determine side effects for other derived NuGet packages (mainly .CoreProfile, .ES2Profile)
  • [x] Change .appveyor in order to use Visual Studio 2017 image (version 15.3)
  • [ ] Determine .NET Standard 1.1 limitations
    • Cannot have library search path (multi-platform ANGLE support broken)
    • Memory.Set thrown NotImplementedException
  • [ ] Determine .NET Standard 1.4 limitations
    • Cannot have library search path (multi-platform ANGLE support broken)
    • Memory.Set thrown NotImplementedException
  • [ ] Determine .NET Standard 2.0 limitations
    • Memory.Set thrown NotImplementedException
  • [x] Determine .NET Core App 1.1 limitations
    • Cannot have library search path (multi-platform ANGLE support broken)
    • Memory.Set thrown NotImplementedException
    • Generic overrides cause boxing of blittable types (lack of __makeref)
    • Logging is not supported by metadata (lack of System.Xml)
    • No support for experimental GL extensions
    • EGL initialization depends on current working directory instead of assembly directory
  • [x] Determine .NET Core App 2.0 limitations
    • No support for experimental GL extensions
    • EGL initialization depends on current working directory instead of assembly directory

luca-piccioni avatar Aug 31 '17 16:08 luca-piccioni

Is it possible to lower the .NET Standard version, ideally to .NET Standard 1.0 or .NET Standard 1.4? If it is not possible, then could you please list the classes that prevent it and which are used by OpenGL.NET?

21c-HK avatar Sep 07 '17 10:09 21c-HK

For .NET Standard 2.0 support, use the pre-release UWP6.0

JimSEOW avatar Sep 07 '17 12:09 JimSEOW

@21c-HK The .Net Standard 1.4 currently compiles. I suppose it runs well as the others. Have you tried it?

@JimSEOW I currently run .NET Standard 2.0 with .NET Core 2.0 sample. What prevent UWP to reference that binary (via nuget or not)?

luca-piccioni avatar Sep 08 '17 20:09 luca-piccioni

What are the currently steps for using OpenGL.Net on the DotNet Core 2.0 framework (preferably on Ubuntu) and will a Nuget package be created?

hugglesfox avatar Nov 08 '17 03:11 hugglesfox

@HUg0005 It is necessary to build, test and deploy using VS 2017 on AppVeyor. Currently builds fine; it would be nice to have a unit test set for .NET Core. Then it is possible to deploy the NuGet package including the .NET Core binaries.

luca-piccioni avatar Nov 23 '17 21:11 luca-piccioni

Indeed we have a nuget package with .NET Core binaries,versioned as 0.7.1.

luca-piccioni avatar Dec 15 '17 10:12 luca-piccioni

Any ETA on the .NET standard 2.0 support? thanks.

matyasforian avatar Dec 26 '17 03:12 matyasforian

Wouls be interested in @matyasforian question aswell

feliwir avatar Jan 17 '18 16:01 feliwir

Well, projects are there. They're not included in VS2017 solution because something in the IDE/environment do not let me compile them. I need to investigate a little more on the subject to integrate them in the nuget package.

But nothing stops you toopen the project and compile them manually.

luca-piccioni avatar Jan 17 '18 17:01 luca-piccioni

@luca-piccioni hey is there a reason why 0.7.1 NuGet package have .NET Core binaries, but 0.8.4 haven't? Sorry but I can't find any corresponding discussion.

ForNeVeR avatar Jul 20 '19 06:07 ForNeVeR

@luca-piccioni hey, any news? do you need any help with maintaining packages?

gsomix avatar Aug 08 '19 09:08 gsomix

Sure, it would be awesome if someone would take care about the packages maintenance. Till the next year I won't be able to keep it all updated (nuget packages, appveyor builds on Windows and Linux,. Net Core and Standards binaries...).

luca-piccioni avatar Aug 08 '19 09:08 luca-piccioni