Created
February 1, 2013 03:25
-
-
Save adautoneto/4688921 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="3.5" | |
DefaultTargets="compile" | |
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msbuild build.proj /t:createdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment