2

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
  • 230,875
  • 49
  • 477
  • 553
Chip Adams
  • 21
  • 1

1 Answers1

1

This should include all *.sql files recursively:

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

Note the ** to indicate recursion.

Brian Berns
  • 12,085
  • 2
  • 33
  • 38