[MonoDevelop] extending DotNetProject to edit XBuild/MSBuild
anton.tayanovskyy at gmail.com
Fri Apr 4 01:33:59 UTC 2014
How about a hacky way? I need something working.
I got 70% to what I want but not quite. Basically I am using a custom
subclass of DotNetProjectBinding, and overriding CreateProject to:
1. manually populate a folder, create .fs/.fsproj files;
2. Project.LoadProject("foo.fsproj") on the created .fsproj file
This works entirely as expected when I add a project to an existing solution.
However, when creating a new solution based on this project template,
the project gets created OK but does not show up in the UI. I need to
"Add Existing Project", then it works ok. What am I missing? Any
pointers are appreciated, I tried to navigate the API but little
success so far.
On Sat, Mar 22, 2014 at 7:43 PM, Michael Hutchinson
<m.j.hutchinson at gmail.com> wrote:
> Unfortunately there is no non-hacky way to do that right now. We're planning
> to overhaul the project model to make this kind of thing easier in the
> On Mar 21, 2014 11:36 AM, "Anton Tayanovskyy" <anton.tayanovskyy at gmail.com>
>> In a plugin I am creating a new Project class by subclassing from
>> DotNetProject. I would like to do some editing of the generated
>> "*.fsproj" on creation, in particular adding some Import statements.
>> Sorry for probably a dumb question. The best I could come up with so
>> far is trying to override .Save method, discovering project file path
>> and manually editing it.
>> Kind Regards,
>> Anton Tayanovskyy
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
More information about the Monodevelop-list