[MonoDevelop] extending DotNetProject to edit XBuild/MSBuild

Anton Tayanovskyy anton.tayanovskyy at gmail.com
Fri Apr 4 12:49:19 UTC 2014


Sorry.. Here is the repo with the code I am trying, and the issue tracker:

https://bitbucket.org/IntelliFactory/monodevelop.websharper/issue/1/project-does-not-show-in-ui-when-creating

I will try a few more things today, but any pointers are really appreciated.

Thanks,

--A


On Fri, Apr 4, 2014 at 8:45 AM, Anton Tayanovskyy
<anton.tayanovskyy at gmail.com> wrote:
> Hi,
>
> Here is the code:
>
>
> On Thu, Apr 3, 2014 at 9:33 PM, Anton Tayanovskyy
> <anton.tayanovskyy at gmail.com> wrote:
>> 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.
>>
>>
>> Thanks,
>>
>> --A
>>
>> 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
>>> future.
>>>
>>> On Mar 21, 2014 11:36 AM, "Anton Tayanovskyy" <anton.tayanovskyy at gmail.com>
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> 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.
>>>>
>>>> Thanks,
>>>>
>>>> --A
>>>>
>>>>
>>>> --
>>>> Kind Regards,
>>>> Anton Tayanovskyy
>>>>
>>>> WebSharper(tm) - type-safe JavaScript in F#
>>>> http://intellifactory.com
>>>> _______________________________________________
>>>> Monodevelop-list mailing list
>>>> Monodevelop-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>>
>> --
>> Kind Regards,
>> Anton Tayanovskyy
>>
>> WebSharper(tm) - type-safe JavaScript in F#
>> http://intellifactory.com
>
>
>
> --
> Kind Regards,
> Anton Tayanovskyy
>
> WebSharper(tm) - type-safe JavaScript in F#
> http://intellifactory.com



-- 
Kind Regards,
Anton Tayanovskyy

WebSharper(tm) - type-safe JavaScript in F#
http://intellifactory.com


More information about the Monodevelop-list mailing list