luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

Doing something wrong to build #105

Open bryaan opened 6 years ago

bryaan commented 6 years ago

Just cloned master and an using the VS15 sln, and when building get:


RegistryAssembly.cs(23,7): error CS0246: The type or namespace name 'Mono' could not be found (are you missing a using
directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(24,7): error CS0246: The type or namespace name 'Mono' could not be found (are you missing a using
directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(106,43): error CS0246: The type or namespace name 'TypeDefinition' could not be found (are you miss
ing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(162,75): error CS0246: The type or namespace name 'TypeDefinition' could not be found (are you miss
ing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(190,76): error CS0246: The type or namespace name 'FieldDefinition' could not be found (are you mis
sing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(218,77): error CS0246: The type or namespace name 'MethodDefinition' could not be found (are you mi
ssing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(247,89): error CS0246: The type or namespace name 'CustomAttribute' could not be found (are you mis
sing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(290,88): error CS0246: The type or namespace name 'CustomAttribute' could not be found (are you mis
sing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(304,51): error CS0246: The type or namespace name 'Collection<>' could not be found (are you missin
g a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(304,62): error CS0246: The type or namespace name 'TypeDefinition' could not be found (are you miss
ing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]
RegistryAssembly.cs(304,17): error CS0246: The type or namespace name 'TypeDefinition' could not be found (are you miss
ing a using directive or an assembly reference?) [C:\Bryan\src\git\OpenGL.Net\BindingsGen\BindingsGen.csproj]

Not sure why Mono is showing up with this build.

luca-piccioni commented 6 years ago

The BindingsGen projects depends on Mono.Cecil, used to modify assemblies after compilation (generates Core-only and ES-only bindings).

Try to restore nuget packages.

bryaan commented 6 years ago

nuget restore OpenGL.Net_VC15.sln

Worked but build still failing with new errors:


"C:\Bryan\src\git\OpenGL.Net\OpenGL.Net_VC15.sln" (default target) (1) ->
"C:\Bryan\src\git\OpenGL.Net\OpenGL.Net.Xamarin.Android\OpenGL.Net.Xamarin.Android.csproj" (default target) (15) ->
  C:\Bryan\src\git\OpenGL.Net\OpenGL.Net.Xamarin.Android\OpenGL.Net.Xamarin.Android.csproj(62,11): error MSB4226: The i
mported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Xamarin\Android\Xamarin.Android
.CSharp.targets" was not found. Also, tried to find "Xamarin\Android\Xamarin.Android.CSharp.targets" in the fallback se
arch path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Pr
ogram Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm that the path i
n the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

"C:\Bryan\src\git\OpenGL.Net\OpenGL.Net_VC15.sln" (default target) (1) ->
"C:\Bryan\src\git\OpenGL.Net\Samples\HelloTriangle.Xamarin.Android\HelloTriangle.Xamarin.Android.csproj" (default targe
t) (17) ->
  C:\Bryan\src\git\OpenGL.Net\Samples\HelloTriangle.Xamarin.Android\HelloTriangle.Xamarin.Android.csproj(100,11): error
 MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Xamarin\Android\
Xamarin.Android.CSharp.targets" was not found. Also, tried to find "Xamarin\Android\Xamarin.Android.CSharp.targets" in
the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are de
fined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm
that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

"C:\Bryan\src\git\OpenGL.Net\OpenGL.Net_VC15.sln" (default target) (1) ->
"C:\Bryan\src\git\OpenGL.Net\OpenGL.Net\OpenGL.Net_netcore1.1.csproj" (default target) (31) ->
(ResolvePackageAssets target) ->
  C:\Program Files\dotnet\sdk\2.1.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(198,
5): error : Assets file 'C:\Bryan\src\git\OpenGL.Net\OpenGL.Net\obj\project.assets.json' not found. Run a NuGet package
 restore to generate this file. [C:\Bryan\src\git\OpenGL.Net\OpenGL.Net\OpenGL.Net_netcore1.1.csproj]

...and more