Reference problem

*I had a previous post somewhat like this but there was no reply, maybe because it didn’t make any sense

I am having problem building a monogame application on Linux Mint 18.1. I installed all the dependencies for monogame (except rider) and mono-complete, I even installed dotnetsdk, but evem when I try to build the generated code monogame makes, monodevelop6 keeps saying for all the namespace like using System; and even XNA namespace like using Microsoft.XNA; the ide highlights: “directive not necessary” and the same problem happens when I try to build other projects in monodevelop6

Does this prevent building the game? If not, I suspect the IDE is just telling you that, since you haven’t used anything from those namespaces in your code, those using statements aren’t necessary

E: Based on your previous post, perhaps it’s related to this: https://stackoverflow.com/questions/30399951/monodevelop-msbuild-process-could-not-be-started

It prevents compiling and building, I’m trying to build the code template that monogame generates after creating a new project

Can you try running MSBuild/xbuild from a terminal to build the project?

Could this be similar to the issue I had with my game’s server on linux? When I compiled it over ssh using xbuild, it kept complaining that it couldn’t resolve ANY assembly references. I worked around it by building all my projects for .NET 4.5 rather than .NET 4.5.2 and doing something else, just can’t remember what. Had to do with the ToolsVersion in the csproj files though.

I fixed it :smile: I had to update my mono, so i added the ppa and installed mono-complete, then i
reinstalled monodevelop6. Build is now successful but now i get this when i try to run the program:

Could not resolve type with token 01000147 (from typeref, class/assembly OpenTK.ToolkitOptions, OpenTK, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4)

this error shows at public Game1()

You might want to try a newer version of MonoGame. OpenTK is no longer used for desktop on MG 3.6 and it’s not used at all anymore on the develop branch.

Monogame v3.6 is what I’m using