tags:

views:

30

answers:

1

Forgive me if this is too simple - I'm almost completely new to MS Build. I have a project that is creating two different Silverlight solutions and the file hierarchy looks like this:

+ Project123
  + Assets
    + Images
    + Fonts
    + Video
  + Source
    + SL3
      - Project123-SL3.sln
      + Solution
        - App.xaml
        + Pages
    + SL4
      - Project123-SL4.sln
      + Solution
        - App.xaml
        + Pages

What I'd like to have happen is for MSBuild to reach above it's parent's (which is either SL3 or SL4) parent (which is Source) and then into the sister folder of Assets to include this folder. I've been looking at Specifying Inputs with Wildcards on How to: Use Wildcards to Build All Files in a Directory, but this doesn't really say how to walk up the relative tree and then back down again. Is this possible with MSBuild?

+2  A: 

You could use something like that in your silverlight project file.

<Content Include="..\..\Assets\**\*"/>
madgnome
Perfect, that's great, thank you!
Otaku