From a1d03935138d7cf02cebf03591d9cadc55516632 Mon Sep 17 00:00:00 2001 From: Vance Morrison Date: Tue, 14 Jun 2016 17:24:31 -0700 Subject: [PATCH] The contract class is only needed when building for V3.5 runtimes. #ifdef it out --- src/Zip/Contract.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Zip/Contract.cs b/src/Zip/Contract.cs index 2e96898..cb7eb2b 100644 --- a/src/Zip/Contract.cs +++ b/src/Zip/Contract.cs @@ -1,4 +1,8 @@ -using System; +// If you are compiling for a .NET Runtime before V4.0 than you need to provide these stubs that +// define the Contract class. +#if PRE_V4_0 + +using System; namespace System.Diagnostics.Contracts { @@ -34,3 +38,5 @@ namespace System.Diagnostics.Contracts } } + +#endif \ No newline at end of file