Skip to content

Using latest System.Memory package with netcoreapp2.0 fails due to S.N.V depenedency #23377

@ahsonkhan

Description

@ahsonkhan

If we bump up the version of the packages we reference in corefxlab to: 4.5.0-preview2-25628-01
https://github.com/dotnet/corefxlab/blob/master/tools/dependencies.props#L6-L8

...nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.Vectors.dll
has version ver 4:1:3:0

But the latest System.Memory depends on 4.1.4
.assembly extern System.Numerics.Vectors
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
.ver 4:1:4:0
}

Our tests (which target netcoreapp2.0) fail with the following error:
Failed System.Buffers.Tests.EqualityTests.SpansReferencingSameMemoryAreEqualInEveryAspect(bytes: [0, 0], start: 0, length: 2)
Error Message:
System.IO.FileNotFoundException : Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Stack Trace:
at System.SpanHelpers.SequenceEqual(Byte& first, Byte& second, Int32 length)
at System.Buffers.Tests.EqualityTests.SpansReferencingSameMemoryAreEqualInEveryAspect(Span1 span, Span1 pointingToSameMemory) in D:\GitHub\Fork\corefxlab\tests\System.Buffers.Primitives.Tests\EqualityTests.cs:line 163
at System.Buffers.Tests.EqualityTests.SpansReferencingSameMemoryAreEqualInEveryAspect(Byte[] bytes, Int32 start, Int32 length) in D:\GitHub\Fork\corefxlab\tests\System.Buffers.Primitives.Tests\EqualityTests.cs:line 45

cc @weshaggard, @ericstj, @KrzysztofCwalina, @shiftylogic, @mellinoe

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions