Skip to content

Instantly share code, notes, and snippets.

@sheastrickland
sheastrickland / DbUp.csproj
Created April 29, 2014 06:28
DbUp Compile error for SQL scripts which are not embedded
<Target Name="AfterBuild">
<Message Text="@(Content)" Importance="high" Condition="%(Content.Extension) == '.sql'" />
<Error Condition="%(Content.Extension) == '.sql'" Text="Nothing should be marked as Content, check your scripts are marked as Embedded Resource" />
</Target>