55 lines
2.2 KiB
XML
55 lines
2.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<Import Project="..\..\build\common.props" />
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
<ServerGarbageCollection>true</ServerGarbageCollection>
|
|
|
|
<!--
|
|
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>
|
|
<Compile Include="..\shared\**\*.cs" />
|
|
<Content Include="..\shared\TestResources\testCert.pfx" CopyToOutputDirectory="PreserveNewest" />
|
|
<None Update="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Server.Kestrel\Microsoft.AspNetCore.Server.Kestrel.csproj" />
|
|
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Server.Kestrel.Https\Microsoft.AspNetCore.Server.Kestrel.Https.csproj" />
|
|
<ProjectReference Include="..\..\tools\CodeGenerator\CodeGenerator.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Testing" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(TestSdkVersion)" />
|
|
<PackageReference Include="Moq" Version="$(MoqVersion)" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="$(JsonNetVersion)" />
|
|
<PackageReference Include="xunit" Version="$(XunitVersion)" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="DefinePlatformConstants" BeforeTargets="CoreCompile">
|
|
<Sdk_GetOSPlatform>
|
|
<!-- Returns {Linux, macOS, Windows} -->
|
|
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
|
</Sdk_GetOSPlatform>
|
|
|
|
<PropertyGroup>
|
|
<DefineConstants>$(DefineConstants);$(OSPlatform.ToUpperInvariant())</DefineConstants>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
</Project>
|