Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2011 09:54
Show Gist options
  • Save anonymous/872254 to your computer and use it in GitHub Desktop.
Save anonymous/872254 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5"
DefaultTargets="main"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks"/>
<Target Name="createdb">
<ItemGroup>
<SqlFiles Include="$(MSBuildProjectDirectory)\db\**\*.sql" />
</ItemGroup>
<Message Text="SqlFiles: $(MSBuildProjectDirectory)\db\**\*.sql"></Message>
<SqlCmd TaskAction="Execute" Server="."
SeverityLevel="1" InputFiles="@(SqlFiles)"
QueryTimeOut="10" />
</Target>
</Project>
msbuild build.proj /t:createdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment