diff --git a/test/Microsoft.AspNetCore.WebSockets.Test/Microsoft.AspNetCore.WebSockets.Test.csproj b/test/Microsoft.AspNetCore.WebSockets.Test/Microsoft.AspNetCore.WebSockets.Test.csproj
index b934260e..25e0f3a1 100644
--- a/test/Microsoft.AspNetCore.WebSockets.Test/Microsoft.AspNetCore.WebSockets.Test.csproj
+++ b/test/Microsoft.AspNetCore.WebSockets.Test/Microsoft.AspNetCore.WebSockets.Test.csproj
@@ -5,6 +5,12 @@
netcoreapp2.0;net461
netcoreapp2.0
+
+
+ exe
diff --git a/test/Microsoft.AspNetCore.WebSockets.Test/Program.cs b/test/Microsoft.AspNetCore.WebSockets.Test/Program.cs
new file mode 100644
index 00000000..5d248f96
--- /dev/null
+++ b/test/Microsoft.AspNetCore.WebSockets.Test/Program.cs
@@ -0,0 +1,20 @@
+// Copyright (c) .NET Foundation. All rights reserved.
+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+
+#if NET461
+using System;
+
+namespace Microsoft.AspNetCore.WebSockets.Test
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("This Program.Main is only here to work around https://github.com/dotnet/sdk/issues/909");
+ }
+ }
+}
+#elif NETCOREAPP2_0
+#else
+#error Target frameworks need to be updated
+#endif