[MonoDevelop] Custom tools on multiple files

Federico Di Gregorio fog at initd.org
Wed Jan 5 08:02:33 EST 2011


On 04/01/2011 21:40, Michael Hutchinson wrote:
[snip]
> Doing it via xbuild is possibly better because it will work with
> xbuild, msbuild and VS, but currently will only work with MD if you
> enable "experimental xbuild support". Fo this, you simply need a
> custom targets file. Define a custom target and inject its name into
> the PrepareForRunDependsOn property. Its inputs would be
> @(YourBuildAction) - the entire set of items with that action. Your
> target can then invoke a task - either Exec or some custom task - to
> do the compile. You may also wish to add the generated file to the
> FileWrites items so it gets removed by a Clean.

We're already using xbuild so I think I'll go for this one.

I already have some code that implementes ITask and does the packing but
right now, to test it, I wrote che XML csproj by hand. If I understand
it correctly I need to have my MD addin add to the project two items:

1/ <UsingTask> to locate my task assmbly
2/ <CssPack> items inside an <ItemGroup>

What's the best way of doing that? It is possible to add properties to
file types already managed by MD (like css, XML or js)?

federico

-- 
Federico Di Gregorio                                       fog at initd.org
  Qu'est ce que la folie? Juste un sentiment de liberté si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra


More information about the Monodevelop-list mailing list