From d07af2e9dc1a75e37788b73b746510fb4a6da5fe Mon Sep 17 00:00:00 2001 From: "Eric St. John" Date: Wed, 18 Apr 2018 09:43:42 -0700 Subject: [PATCH] Lock Vectors reference assembly to 4.1.3.0 and don't OOB it on netcoreapp2.0 System.Numerics.Vectors was made inbox in netcoreapp2.0, we were still allowing distribution in the package, however the package was applying the netstandard2.0 implementation to netcoreapp2.0. Now that we've disabled oobing the netcoreapp2.1 build (since many types were moved into corelib) it no longer makes sense for us to mantain the ability to oob the netcoreapp2.0 build. Doing so not only degrades the inbox version (by not using the framework's MathF implementation) but also creates type-unfication issues on rollforward: app targets 2.0 carries OOB copy of Vectors with higher version than 2.1, rolls forward to 2.1 and host will use the OOB copy, no longer unifying to the types in corelib. --- dir.props | 1 + .../pkg/System.Numerics.Vectors.pkgproj | 10 +++++----- .../ref/Configurations.props | 1 + .../ref/System.Numerics.Vectors.cs | 2 +- .../ref/System.Numerics.Vectors.csproj | 15 +++++++++------ 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/dir.props b/dir.props index 78cc11d2a17b..8de0de0aed29 100644 --- a/dir.props +++ b/dir.props @@ -157,6 +157,7 @@ true + true true diff --git a/src/System.Numerics.Vectors/pkg/System.Numerics.Vectors.pkgproj b/src/System.Numerics.Vectors/pkg/System.Numerics.Vectors.pkgproj index 1d607dbf60e7..7226c74df4c8 100644 --- a/src/System.Numerics.Vectors/pkg/System.Numerics.Vectors.pkgproj +++ b/src/System.Numerics.Vectors/pkg/System.Numerics.Vectors.pkgproj @@ -6,11 +6,11 @@ 2.8.6 + + netcore45;wp8;wpa81;netcoreapp1.0;$(AllXamarinFrameworks) + - net45;netcore45;wp8;wpa81;netcoreapp1.0;$(AllXamarinFrameworks) - - true + net45 @@ -21,7 +21,7 @@ - + diff --git a/src/System.Numerics.Vectors/ref/Configurations.props b/src/System.Numerics.Vectors/ref/Configurations.props index 322defb70701..ed7d2db187fa 100644 --- a/src/System.Numerics.Vectors/ref/Configurations.props +++ b/src/System.Numerics.Vectors/ref/Configurations.props @@ -3,6 +3,7 @@ netstandard1.0; + net45; netstandard; net46; diff --git a/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.cs b/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.cs index 9936f6695440..3bf096094750 100644 --- a/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.cs +++ b/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.cs @@ -301,7 +301,7 @@ public partial struct Vector : System.IEquatable>, public Vector(T value) { throw null; } public Vector(T[] values) { throw null; } public Vector(T[] values, int index) { throw null; } -#if netcoreapp +#if HAS_SPAN public Vector(Span values) { throw null; } #endif public static int Count { get { throw null; } } diff --git a/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.csproj b/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.csproj index ed07ba967e9e..05beeb02a6aa 100644 --- a/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.csproj +++ b/src/System.Numerics.Vectors/ref/System.Numerics.Vectors.csproj @@ -3,11 +3,14 @@ {650277B5-9423-4ACE-BB54-2659995B21C7} - true - true - true - $(DefineConstants);netcoreapp + true + $(DefineConstants);HAS_SPAN + + 4.1.3.0 + + @@ -23,14 +26,14 @@ - + - +