From 06028e81c77759357d8b16fa37795431feb1bb85 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Wed, 24 May 2017 18:20:46 -0700 Subject: [PATCH] fix build by adding OutputType exe to test project (#179) --- ...icrosoft.AspNetCore.WebSockets.Test.csproj | 6 ++++++ .../Program.cs | 20 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/Microsoft.AspNetCore.WebSockets.Test/Program.cs 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 b934260ee2..25e0f3a107 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 0000000000..5d248f9642 --- /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