I made a previous change to decrement assembly versions to enable our packages to be consumed
in desktop and redistribute netcore50 assemblies: https://github.com/dotnet/corefx/pull/6902
That caused a lot of runtime breaks because folks who were built against old packages would
get ref-def mismatches at runtime. Rather than keep everything broken until the whole stack
updates I'm moving the implementation assemblies back to the old versions. This will let folks
move to the new packages with the lower versioned ref-assemblies. Once everyone is on the new
packages we can undo this change.
Change is going directly into TFS to make tonight's build. I will deal with the fallout during mirror.
[tfs-changeset: 1588328]
Commit migrated from https://github.com/dotnet/corefx/commit/0f268ed1079c182d71cdf49cde3f339a01d67863
We removed the lifting from the lineup so tests should reference the
latest packages in order to ensure an implementation is available.
The latest pacakges exclude implementation dependencies so I needed to
add these to projects that were depending on them coming in transitively.
Commit migrated from https://github.com/dotnet/corefx/commit/bef9061fd1238adf47b864d8924d121e4134465b
The latest drop of packages no longer includes lifting entries in the
lineup. This causes errors when restoring for a concrete TFM and no
implementation assembly is in the packages.
I addressed this issue two ways:
1. In places where we were targeting a concrete TFM but packaging as
NETStandard, just target NETStandard instead.
2. In places where we were targeting a concrete TFM but that packages
were missing the implementation on that TFM, update the reference to
newer package version where implementation is available.
Commit migrated from https://github.com/dotnet/corefx/commit/dfb30176c6056f5b3427515c4444a9dc31b9ba4f
UWP uses shared library which must have exact-match binaries to what
shipped at RTM. Previously we had "special versioned packages" that
folks had to know to use when targeting UWP. This was busted and
fragile so we decided to fix UWP at netstandard1.4 and redistribute the
RTM binaries within the package.
This change adds those UWP RTM binaries to the packages, reassigns any
contracts with new API to a higher netstandard version, and deletes all
the old "special packages".
This change also fixes up other contracts which were previously
providing a netcore50 implementation via netstandard1.5.
Commit migrated from https://github.com/dotnet/corefx/commit/d37bcde44ffb3425ce1046409708e1782d21b30d
Fixes https://github.com/dotnet/corefx/issues/5707
We are changing the .NET packages to no longer use the ‘dotnet’, ‘dotnet5.x’, and ‘dnxcore50’ monikers. This is thee first stage of the change for dotnet->netstandard.
The replacements are as follows
Old moniker | New moniker
----------------- | ------------------
dotnet5.x | netstandard1.y (where y = x -1)
DNXCore50 | netstandardapp1.5
dotnet | netstandard1.3
To prepare for this change you can do the following to your project.json. This change will require a recent build of NuGet or dotnet.exe and can be done prior to consuming the packages with the breaking change. These packages will not work with DNX.
For a project targeting dotnet5.6
```
"frameworks": {
"netstandard1.5": {
"imports": [ "dotnet5.6" ]
}
},
```
For a project targeting dnxcore50
```
"frameworks": {
"netstandardapp1.5": {
"imports": [ "dnxcore50", "portable-net45+win8" ]
}
},
```
[tfs-changeset: 1578321]
Commit migrated from https://github.com/dotnet/corefx/commit/4435f9f2776ae007e05f4454675e56cf76a51975
* Move all of the project configurations currently living in the
"facade\<lib>.csproj" files into the root library project. This means
there will now be only one project file for the source build of each
library, regardless of how many configurations it has. The .builds file
of each library will only reference that single project file multiple
times.
* Do some minor cleanup of project files along the way. Fix up the VS
default configuration blocks to be a bit more uniform. Remove redundant
defaults (OutputType, PlatformTarget, etc. Fix some condition spacing.
Commit migrated from https://github.com/dotnet/corefx/commit/26edfd6839044ca6368e28502e0893c1b1819b4c
These were missed by my automated scan in replacing parameter names with nameof because they're the wrong name. (There are some others that weren't replaced to, but most of those are because they're in private methods that use a different name for the argument, but the name used to the exception is the name in the publically exposed method... I didn't touch those.)
Commit migrated from https://github.com/dotnet/corefx/commit/95c0419f8cefb8e84eaecb4dacf08052312a5bb8
Some fixes (adding imports, adding Platforms package) were tooled, but more complex ones (forking project.jsons, editing csproj's) were not.
Also makes dependency version validation rules case-insensitive. (I used this fix to update the versions of some packages.)
[tfs-changeset: 1573868]
Commit migrated from https://github.com/dotnet/corefx/commit/84af04317505d48feaa1e83dd5dc27ddc0f6de76
These contain the same libraries shipped at UWP RTM, repackaged in the
latest nuget format (netstandard, runtime packages, etc).
We use them as the baseline for package dependencies so that we can have
CoreFx packages use updated packages with netstandard support without
breaking shared library.
Directory structure:
Folder per package that will be redistributed.
Lib folder contains a deployment project (depproj) to restore and wrap
the old implementation DLLs.
We reuse the ref depproj's in the src tree to restore and wrap the old
reference DLLs.
New package projects are created depending on what type of project we
are trying to redist.
Standalone packages contain a single package, redisting ref and lib.
Runtime packages with API change in latest contain a reference package
redisting ref, and runtime packages redisting lib.
Runtime packages with no API change in latest contain runtime packages
redisting lib, and a validation-only package for reference. These
validation-only packages do not actually build any output since the live
reference packages are sufficient (no API change).
In any case where we needed to insert a version that would collide with
the latest package version we bumped up the current package version.
Here's a table of what is contained here:
Package name | UWP RTM version | Live version | What we need to ship
-------------|-----------------|--------------|---------------------
System.Collections | 4.0.10.0 | 4.0.11.0 | runtime packages
System.Collections.Concurrent | 4.0.10.0 | 4.0.11.0 | pre-versioned standalone package
System.Diagnostics.Tracing | 4.0.20.0 | 4.1.0.0 | pre-versioned ref + runtime packages
System.Dynamic.Runtime | 4.0.10.0 | 4.0.11.0 | runtime packages
System.IO | 4.0.10.0 | 4.1.0.0 | pre-versioned ref + runtime packages
System.Linq | 4.0.0.0 | 4.0.1.0 | pre-versioned standalone package
System.Linq.Expressions | 4.0.10.0 | 4.0.11.0 | runtime packages
System.ObjectModel | 4.0.10.0 | 4.0.11.0 | pre-versioned standalone package
System.Reflection.Extensions | 4.0.0.0 | 4.0.1.0 | runtime packages
System.Reflection.Primitives | 4.0.0.0 | 4.0.1.0 | runtime packages
System.Reflection.TypeExtensions | 4.0.0.0 | 4.1.0.0 | pre-versioned ref + runtime packages
System.Resources.ResourceManager | 4.0.0.0 | 4.0.1.0 | runtime packages
System.Runtime.Extensions | 4.0.10.0 | 4.1.0.0 | pre-versioned ref + runtime packages
System.Runtime | 4.0.20.0 | 4.1.0.0 | pre-versioned ref + runtime packages
System.Text.RegularExpressions | 4.0.10.0 | 4.0.11.0 | pre-versioned standalone package
This change also ensures that our pre-versioned packages include support
for dotnet5.4, and therefor dnxcore50. This garuntees that if someone were
to upgrade an individual package from RTM we still support all frameworks
that were supported at UWP RTM.
This will likely never occur since we'll produce a new lineup that uses
the latest runtime packages on DNXCore50, but we should preserve our
compat promise without requiring folks to update their lineup.
This is part of the work for https://github.com/dotnet/corefx/issues/5707.
/cc @weshaggard @chcosta
[tfs-changeset: 1571918]
Commit migrated from https://github.com/dotnet/corefx/commit/c8896fb3a3346326fb670fca5632527fc0eaf180
This these .builds files were updated and generated from a script
based on the configurations defined in the matching csproj files.
This updates the builds files to specify OSGroup and TargetGroup
as metadata instead of using AdditionalProperties and also sorts them by
TargetGroup followed by OSGroup.
Commit migrated from https://github.com/dotnet/corefx/commit/95efe37475916016a5fc6ee6f0ba584d990c4196
This add a default configuration before the Import of dirs.props
for any projects that don't have Debug as the default configuration.
Removed Configuration and Platform properties set after dirs.props
as they would have no affect and just cause confusion.
Removed OutputType=Library property as it isn't necessary.
Commit migrated from https://github.com/dotnet/corefx/commit/9e1da13cf6d5ff4b37b1867beb3411a2fe61da6a
The internal ReadOnlyList used by NotifyCollectionChangedEventArgs
has all virtual members that don't need to be virtual. This commit
makes ReadOnlyList sealed and includes some minor cleanup (parameter
names to match the interfaces, Debug.Assert, and Object -> object).
Commit migrated from https://github.com/dotnet/corefx/commit/41a1e8b61456644cc6ca58654e06f8a6ba9039f9
These facade project files were generated using a porting tool I wrote,
which examined some information from our internal build and created
appropriate project files. I have also re-generated all of the .builds
files so that they import the facade projects in the correct manner.
Commit migrated from https://github.com/dotnet/corefx/commit/58e2f6e862060039e1ebad727d75c87703fdb2f2
Methods on KeyedCollection<TKey, TItem> will internally loop over its
Items using foreach before the dictionary threshold is reached. Items
is a protected (non-virtual) property defined on the base
Collection<T> class and typed as IList<T>. This means
KeyedCollection<TKey, TValue> members like Contains and Item[TKey]
allocate an enumerator when looping over Items.
We can avoid the enumerator allocations inside
KeyedCollection<TKey, TValue> by providing a new private Items
property that is typed as List<T>, so that List<T>'s struct
enumerator is used, which also avoids interface dispatch.
KeyedCollection<TKey, TItem>'s constructors call the default
Collection<T> constructor which already initializes Items to
an instance of List<T>, so this change is just being explicit
about the use of List<T> for Items.
Commit migrated from https://github.com/dotnet/corefx/commit/75392f1aafd8498bca3dd54c9715a45348c61d84
Instead of enumerating through the IEnumerable<T> directly, make use
of the List<T> constructor that takes an IEnumerable<T>, which has
optimizations for collections that implement ICollection<T>.
Also, cleaned up the ObservableCollection constructor/property tests.
Commit migrated from https://github.com/dotnet/corefx/commit/6992ca092454231f8152d4f771d2d6d7416de44d