On Mon, 7 Dec 2015 14:39:37 +0100, Sönke Ludwig wrote:

Am 21.11.2015 um 19:06 schrieb Frederik Aagaard:

Hi guys, I hope I'm posting this to the right forum!

I'm getting this error when I try to build my dub project from within Xamarin studio (monod):

Root package d2harle:opengl3 contains reference to invalid package derelict:util >=2.0.3 <2.1.0

When you manually built the main package "d2harle", the sub package
":opengl3" didn't take part in the build at all, because the main
package has no dependency to it (sub packages are conceptually
completely separate from each other and from the parent package), thus
the missing error message.

The error message itself means that the dependency references either a
non-existent package, or one that is dysfunctional. In this case, the
name is wrong and should be "derelict-util" instead of "derelict:util".
I'll open a ticket to remember adding code to enable a clearer error
message ("Package 'derelict:util' referenced by 'd2harle:opengl3' does
not exist.").

Thanks for the assistance. It presented me with a few new errors, but the error messages were helpful enough for me to fix them on my own and now Xamarin/MonoD builds it fine from within the IDE.

This is my updated package.json, in case it's of use to anyone:

{
	"name": "d2harle",
	"description": "An example project skeleton",
	"homepage": "http://pappons.com",
	"copyright": "Copyright © 2015, Frederik Aagaard",
	"targetType": "autodetect" ,
	"authors": [
		"Frederik Aagaard"
	],
	"dependencies": {
		"derelict-gl3": "~>1.0.15",
		"derelict-glfw3": "~>1.1.0",
		"derelict-sdl2": "~>1.9.7",
		"derelict-util": "~>2.0.3",
	},
	"subPackages" : [
		{
			"name": "opengl3",
			"dependencies": {"derelict-util": "~>2.0.3"},
			"targetPath": "lib",
			"targetType": "none" ,
			"sourcePaths": ["import/derelict/opengl3"],
			"importPaths": ["import"]
		},
		{
			"name": "glfw3",
			"dependencies": {"derelict-util": "~>2.0.3"},
			"targetPath": "lib",
			"targetType": "none" ,
			"sourcePaths": ["import/derelict/glfw3"],
			"importPaths": ["import"]
		},
		{
			"name": "sfml2",
			"dependencies": {"derelict-util": "~>2.0.3"},
			"targetPath": "lib",
			"targetType": "none" ,
			"sourcePaths": ["import/derelict/sfml2"],
			"importPaths": ["import"]
		},
	]
}