Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doing something wrong to build #105

Open
bryaan opened this issue Jul 8, 2018 · 2 comments
Open

Doing something wrong to build #105

bryaan opened this issue Jul 8, 2018 · 2 comments

Comments

@bryaan
Copy link

bryaan commented Jul 8, 2018

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
Copy link
Owner

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
Copy link
Author

bryaan commented Jul 8, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants