diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-06 06:41:14 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-06 06:41:14 -0800 |
commit | 79dc070e8ac7e0b58c76d21be7c75f1cf33ef031 (patch) | |
tree | a081dc3547fe5eb2976faf2e093040bbb0cd191a | |
parent | ef1491c7fbbc2bc89ebeef29cedd93991d0251e8 (diff) | |
download | DotNetOpenAuth-79dc070e8ac7e0b58c76d21be7c75f1cf33ef031.zip DotNetOpenAuth-79dc070e8ac7e0b58c76d21be7c75f1cf33ef031.tar.gz DotNetOpenAuth-79dc070e8ac7e0b58c76d21be7c75f1cf33ef031.tar.bz2 |
Added a forced build break when Code Contracts are not installed on the build machine.
-rw-r--r-- | src/DotNetOpenAuth/DotNetOpenAuth.csproj | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/DotNetOpenAuth.csproj b/src/DotNetOpenAuth/DotNetOpenAuth.csproj index 4b73c05..f904c45 100644 --- a/src/DotNetOpenAuth/DotNetOpenAuth.csproj +++ b/src/DotNetOpenAuth/DotNetOpenAuth.csproj @@ -684,4 +684,11 @@ http://opensource.org/licenses/ms-pl.html <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="..\..\tools\DotNetOpenAuth.Versioning.targets" /> <Import Project="..\..\tools\JavascriptPacker.targets" /> -</Project>
\ No newline at end of file + <PropertyGroup> + <CompileDependsOn>$(CompileDependsOn);CheckForCodeContracts</CompileDependsOn> + </PropertyGroup> + <Target Name="CheckForCodeContracts"> + <Error Condition=" '$(CodeContractsImported)' != 'true' " + Text="This project requires Code Contracts. Please install from: http://msdn.microsoft.com/en-us/devlabs/dd491992.aspx"/> + </Target> +</Project> |