diff --git a/Novetus/Novetus.Bootstrapper/Novetus.Bootstrapper.csproj b/Novetus/Novetus.Bootstrapper/Novetus.Bootstrapper.csproj
index 2a16c04..e1b12d8 100644
--- a/Novetus/Novetus.Bootstrapper/Novetus.Bootstrapper.csproj
+++ b/Novetus/Novetus.Bootstrapper/Novetus.Bootstrapper.csproj
@@ -27,7 +27,7 @@
pdbonly
true
bin\Release\
- TRACE;BASICLAUNCHER;NOVETUS_APPS
+ TRACE;BASICLAUNCHER;NOVETUS_APPS;NET4
prompt
4
diff --git a/Novetus/Novetus.ClientScriptTester/Novetus.ClientScriptTester.csproj b/Novetus/Novetus.ClientScriptTester/Novetus.ClientScriptTester.csproj
index ce5ba5b..778216c 100644
--- a/Novetus/Novetus.ClientScriptTester/Novetus.ClientScriptTester.csproj
+++ b/Novetus/Novetus.ClientScriptTester/Novetus.ClientScriptTester.csproj
@@ -17,7 +17,7 @@
full
false
bin\Debug\
- TRACE;DEBUG;TESTER;NOVETUS_APPS
+ TRACE;DEBUG;TESTER;NOVETUS_APPS;NET4
prompt
4
diff --git a/Novetus/Novetus.ReleasePreparer/Novetus.ReleasePreparer.csproj b/Novetus/Novetus.ReleasePreparer/Novetus.ReleasePreparer.csproj
index af8183c..4a6b59d 100644
--- a/Novetus/Novetus.ReleasePreparer/Novetus.ReleasePreparer.csproj
+++ b/Novetus/Novetus.ReleasePreparer/Novetus.ReleasePreparer.csproj
@@ -18,7 +18,7 @@
full
false
bin\Debug\
- TRACE;DEBUG;PREPARER
+ TRACE;DEBUG;PREPARER;NET4
prompt
4
diff --git a/Novetus/NovetusCore/StorageAndFunctions/Util.cs b/Novetus/NovetusCore/StorageAndFunctions/Util.cs
index b9f5dd4..dbc514c 100644
--- a/Novetus/NovetusCore/StorageAndFunctions/Util.cs
+++ b/Novetus/NovetusCore/StorageAndFunctions/Util.cs
@@ -558,9 +558,13 @@ public static class Util
//http://stevenhollidge.blogspot.com/2012/06/async-taskdelay.html
public static Task Delay(int milliseconds)
{
+#if NET4
var tcs = new TaskCompletionSource