June 08, 2016 How to add dependency to exists visuald project? | ||||
---|---|---|---|---|
| ||||
Hi. I'm trying do my next project using D. Previously I used Xamarin Studio, but for serious work I need a debugger. So, I try Visual Studio + VisualD. I create a new project: dub init projectname Add a dependency to dub.sdl, then generate solution for Visual Studio: dub generate visuald Open it in Visual Studio and do some changes (create new folders, new modules, etc). Then I need add new dependency. I edit dub.sdl, but what then? If I generate project again dub generate visuald then I'll lose all changes which I did (new folders, new modules, etc). How I can add new dependency and continue work? |
June 08, 2016 Re: How to add dependency to exists visuald project? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry |
On 08.06.2016 14:41, Dmitry wrote:
> Hi. I'm trying do my next project using D. Previously I used Xamarin
> Studio, but for serious work I need a debugger. So, I try Visual Studio
> + VisualD.
>
> I create a new project:
>
> dub init projectname
>
> Add a dependency to dub.sdl, then generate solution for Visual Studio:
>
> dub generate visuald
>
> Open it in Visual Studio and do some changes (create new folders, new
> modules, etc).
> Then I need add new dependency. I edit dub.sdl, but what then? If I
> generate project again
>
> dub generate visuald
>
> then I'll lose all changes which I did (new folders, new modules, etc).
>
> How I can add new dependency and continue work?
>
I'm not using dub myself, but doesn't it automatically pick up all new files when generating the project again? You'll still lose project configuration settings, these should be added to dub.sdl to begin with.
Maybe some dub experts can shed more light on this...
|
Copyright © 1999-2021 by the D Language Foundation