www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Opening dub packages in Mono-D

reply "Phil" <phil.j.ellison gmail.com> writes:
I'm trying to use Mono-D, but can't work out how to do simple 
things. I've tried looking for tutorials but this 
http://wiki.dlang.org/Mono-D is all I could find.

I want to reference Pegged from a Mono-D project. I can't add its 
package.json as a project to my solution as I'm told that this 
file in the incorrect format. How should I be doing this, and is 
there a basic tutorial for idiots available anywhere?

Thanks
Sep 30 2014
parent reply "evilrat" <evilrat666 gmail.com> writes:
On Tuesday, 30 September 2014 at 21:47:01 UTC, Phil wrote:
 I'm trying to use Mono-D, but can't work out how to do simple 
 things. I've tried looking for tutorials but this 
 http://wiki.dlang.org/Mono-D is all I could find.

 I want to reference Pegged from a Mono-D project. I can't add 
 its package.json as a project to my solution as I'm told that 
 this file in the incorrect format. How should I be doing this, 
 and is there a basic tutorial for idiots available anywhere?

 Thanks
mm... is your 'project' a dub package itself? if not, convert it to dub and add it to dependency section in your dub package. then you will be able to open your fresh created project using mono-d with all its dependencies, a bonus you will be able to generate visuald project files too. there is described what to add to include it http://code.dlang.org/packages/pegged
Sep 30 2014
parent "Phil" <phil.j.ellison gmail.com> writes:
 mm... is your 'project' a dub package itself? if not, convert 
 it to dub and add it to dependency section in your dub package. 
 then you will be able to open your fresh created project using 
 mono-d with all its dependencies, a bonus you will be able to 
 generate visuald project files too.

 there is described what to add to include it
 http://code.dlang.org/packages/pegged
Ah right. That works, thanks.
Oct 01 2014