fix build by adding OutputType exe to test project (#179)

This commit is contained in:
Andrew Stanton-Nurse 2017-05-24 18:20:46 -07:00 committed by GitHub
parent d25dbd572c
commit 06028e81c7
2 changed files with 26 additions and 0 deletions

View File

@ -5,6 +5,12 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
<!--
Workaround for "Explicit RID still required for .NET Framework test projects" (https://github.com/dotnet/sdk/issues/909).
Remove when fixed.
-->
<OutputType>exe</OutputType>
</PropertyGroup>
<ItemGroup>

View File

@ -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