diff --git a/Terminal.Gui/Terminal.Gui.csproj b/Terminal.Gui/Terminal.Gui.csproj
index b7ee4c523..e92806346 100644
--- a/Terminal.Gui/Terminal.Gui.csproj
+++ b/Terminal.Gui/Terminal.Gui.csproj
@@ -8,12 +8,12 @@
-
+
- 2.0
- 2.0
- 2.0
- 2.0
+ 1.0
+ 1.0
+ 1.0
+ 1.0
diff --git a/UnitTests/Drivers/ConsoleDriverTests.cs b/UnitTests/Drivers/ConsoleDriverTests.cs
index cdc8edfc6..f63244c1c 100644
--- a/UnitTests/Drivers/ConsoleDriverTests.cs
+++ b/UnitTests/Drivers/ConsoleDriverTests.cs
@@ -440,6 +440,8 @@ namespace Terminal.Gui.DriverTests {
Assert.Equal (code, actual.Value);
}
+ private static object packetLock = new object ();
+
///
/// Sometimes when using remote tools EventKeyRecord sends 'virtual keystrokes'.
/// These are indicated with the wVirtualKeyCode of 231. When we see this code
@@ -485,6 +487,11 @@ namespace Terminal.Gui.DriverTests {
if (iterations == 0) Application.Driver.SendKeys ((char)mappedConsoleKey, ConsoleKey.Packet, shift, alt, control);
};
+
+ lock (packetLock) {
+ Application.Run ();
+ Application.Shutdown ();
+ }
Application.Run ();
Application.Shutdown ();
}
@@ -492,115 +499,117 @@ namespace Terminal.Gui.DriverTests {
public class PacketTest : IEnumerable, IEnumerable