Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
PR review feedback and build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofCwalina committed Jun 5, 2018
1 parent 8a5e662 commit 42e41c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/System.Memory.Polyfill/System.Memory.Polyfill.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
<Description>Adapters for Span APIs</Description>
<TargetFrameworks>netstandard1.3;netcoreapp2.1</TargetFrameworks>
<PackageTags>Span Memory Adapter</PackageTags>
<!-- disable automatic compile item inclusion so that we can set the correct metadata on TextTemplate-generated sources -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Buffers" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="$(SystemCompilerServicesUnsafeVersion)" />
</ItemGroup>
<ItemGroup>
<Compile Include="System\**\*.*" />
</ItemGroup>
</Project>
3 changes: 1 addition & 2 deletions tests/System.Memory.Polyfill.Tests/Int32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ public class Int32Tests
[Fact]
public void Int32TryParse()
{
char[] buffer = int.MaxValue.ToString().ToCharArray();
ReadOnlySpan<char> span = buffer.AsSpan();
ReadOnlySpan<char> span = int.MaxValue.ToString().ToCharArray().AsSpan();
Assert.True(Int32Polyfill.TryParse(span, out int value));
Assert.Equal(int.MaxValue, value);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\tools\common.props" />
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsWindows)' == 'true'">
<TargetFrameworks>net46;netcoreapp2.1</TargetFrameworks>
<AssemblyOriginatorKeyFile>../../tools/test_key.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<Description></Description>
<Copyright>Microsoft Corporation, All rights reserved</Copyright>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit" Version="2.3.1" />
Expand Down

0 comments on commit 42e41c5

Please sign in to comment.