mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Fix broken JSON deserialization in .NET 4.5 (#1647)
* Cross target Octokit.Tests against netcoreapp1.0 and net452 * Add net45-specific references This fixes a build error after adding the net452 target: error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create' * Add SimpleJson conditional compilation symbols for net45 * Disable AppDomain when running tests Thanks to Dominick and Patrik: https://twitter.com/leastprivilege/status/893376624233762816 * Use nameof operator instead of magic strings * Remove conditional compilation symbols as they are not used in the conventions tests project * Enable cross targetting in the conventions tests project * Run tests against netcoreapp1.0 only when not on Windows * Going too fast bites you
This commit is contained in:
committed by
Ryan Gribble
parent
1d1ca0a572
commit
4869fd5423
@@ -4,7 +4,7 @@
|
||||
<Description>Convention-based tests for Octokit</Description>
|
||||
<AssemblyTitle>Octokit.Tests.Conventions</AssemblyTitle>
|
||||
<Authors>GitHub</Authors>
|
||||
<TargetFramework>netcoreapp1.0</TargetFramework>
|
||||
<TargetFrameworks>netcoreapp1.0;net452</TargetFrameworks>
|
||||
<NoWarn>$(NoWarn);CS4014;CS1998</NoWarn>
|
||||
<AssemblyName>Octokit.Tests.Conventions</AssemblyName>
|
||||
<PackageId>Octokit.Tests.Conventions</PackageId>
|
||||
@@ -24,18 +24,17 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Octokit.Tests\Helpers\AssertEx.cs" />
|
||||
<None Include="app.config" />
|
||||
<Content Include="xunit.runner.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Octokit\Octokit.csproj" />
|
||||
<ProjectReference Include="..\Octokit.Reactive\Octokit.Reactive.csproj" />
|
||||
<ProjectReference Include="..\Octokit.Tests\Octokit.Tests.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">
|
||||
<DefineConstants>$(DefineConstants);NO_SERIALIZABLE;HAS_TYPEINFO</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
|
||||
<PackageReference Include="xunit" Version="2.2.0" />
|
||||
|
||||
Reference in New Issue
Block a user