[OpenTK] Make VB.Net overload resolution happy
authorStefanos A. <stapostol@gmail.com>
Wed, 12 Feb 2014 15:14:00 +0000 (16:14 +0100)
committerStefanos A. <stapostol@gmail.com>
Wed, 12 Feb 2014 15:14:00 +0000 (16:14 +0100)
GLHelper.cs contains a number of overloads that cannot be resolved by
VB.Net. We cannot remove them, as that will break
backward-compatibility, but we can hide them by moving them after the
autogenerated overloads in GL.cs.

Terrible hack, but it appears to work.

Issue originally reported at http://www.opentk.com/node/3554 as "OpenTK
1.1, VB.net and ambiguous functions."

Source/OpenTK/OpenTK.csproj

index 9a010dc..48c2d6e 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
   <PropertyGroup>
     <ProjectType>Local</ProjectType>
     <Compile Include="Graphics\ColorFormat.cs">
       <SubType>Code</SubType>
     </Compile>
-    <Compile Include="Graphics\OpenGL\GLHelper.cs">
-      <SubType>Code</SubType>
-    </Compile>
     <Compile Include="Graphics\OpenGL\GLEnums.cs">
       <SubType>Code</SubType>
     </Compile>
     <Compile Include="Graphics\OpenGL\GL.cs">
       <SubType>Code</SubType>
     </Compile>
+    <Compile Include="Graphics\OpenGL\GLHelper.cs">
+      <SubType>Code</SubType>
+    </Compile>
     <Compile Include="Graphics\OpenGL\ErrorHelper.cs">
       <SubType>Code</SubType>
     </Compile>