luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
570 stars 109 forks source link

Target .Net 3.5? #22

Closed thomz12 closed 7 years ago

thomz12 commented 7 years ago

Our applications runs on .Net 3.5, we can build a version of OpenGL.Net dll in 3.5 without any problems. Is there a reason why you target .Net 4.5?

luca-piccioni commented 7 years ago

Actually no. I think it should be sufficient .NET 3.5 (because extension methods), and with "minor" changes also .NET 2.0. Initially the project target was .NET 2.0.

Isn't there a way to load the binary from a .NET 3.5 application? In other words, is there any reason why I should not target .Net 4.5?

thomz12 commented 7 years ago

Unfortunately it's not possible to load the binary because of the higher target. Visual studio gives us "reference not found exceptions". If you can retarget, it saves us the trouble of maintaining our own fork.