Is it possible to write a pre-build event in Visual Studio 2010 that will change the build action from embedded resource to none for a file, or all files in a specific folder? Then, write a post-build event to change them back to embedded resource?
What would they look like? I have nothing posted so far because I don't even know what code I need to write for the events. Is it power shell? Command prompt?
Basically, I want to change the ccproj file from this:
<EmbeddedResource Include="Storage\Seeders\Sql\SqlA.sql" />
<EmbeddedResource Include="Storage\Seeders\Sql\SqlB.sql" />
<EmbeddedResource Include="Storage\Seeders\Sql\SqlC.sql" />
... to this:
<None Include="Storage\Seeders\Sql\SqlA.sql" />
<None Include="Storage\Seeders\Sql\SqlB.sql" />
<None Include="Storage\Seeders\Sql\SqlC.sql" />
... then back again in a post-build.
If doing this in a build event will not be simple, then I would accept that as an answer.