4

I have a database project, and I am embedding all files within a certain folder structure. The problem is that I also will be creating additional folders within that structure.

I can specify a specific folder to include all *.sql files and that works perfectly. However, in this instance I won't know what future folders there are. Is there any way to do a --recurse?

I was using this as a reference: How can I have an entire folder be an embedded resource in a Visual Studio project?

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Chip Adams
  • 41
  • 2

1 Answers1

6

This should include all *.sql files recursively:

<EmbeddedResource Include="SqlFiles\**\*.sql" />

Note the ** to indicate recursion.

Brian Berns
  • 15,499
  • 2
  • 30
  • 40