This change uses some features available in an updated version of
buildtools. Instead of resolving the test-runtime for each of our test
projects as a separate step, we will now add a "reference" to it from the
project.json of each test project. This will allow us to resolve the nuget
assets from both it and the test project at the same time. This will be
more robust than our current process, which is very fragile and
error-prone.
The above is made possible by an updated version of
"PrereleaseResolveNuGetPackageAssets", which is the buildtools task
responsible for resolving test assets from nuget packages. This task also
has a lot of additional validation, which triggers a lot of warnings in
corefx. I've made various changes to csproj's and to project.json's around
the repository in order to satisfy those warnings.
Commit migrated from https://github.com/dotnet/corefx/commit/622ee8f512497fc07621de15e41c6bd575f387c9
A failed test in CI highlighted a rare race condition in the BufferBlock implementation. When a bounded buffer block has room become available and postponed messages waiting to be consumed, it’ll queue a task to consume those messages from the relevant sources. It should stop consuming messages after it’s been marked as complete, but if the consuming task is already running when the buffer is marked as completed, it may end up still consuming messages due to missing a check for having been marked as completed. The fix is simply to add in that check before dequeueing the next postponed message.
Prior to the fix, I ran the test 1,000,000 times and was able to repro this in 22 of them. After the fix, I could no longer repro it.
(There is still an even more rare but expected race that can occur if the block is in the process of consuming the item from one of its sources and the block being marked as completed, but that's no different than a race between it being marked as completed and another thread adding to the block and is the nature of using these components concurrently.)
Commit migrated from https://github.com/dotnet/corefx/commit/d4afc104fcf52d3051fae40b78514b2f25ed7aaf
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
In one place, Dataflow has need for a minimal immutable array data structure. I don't think it makes sense to take a dependency on System.Collections.Immutable.dll just for that, but there are a few minor cleanups that can be done to the implementation in dataflow to bring it a bit closer in design to the "real" one, e.g. making it a struct, renaming it from ImmutableList, etc.
Commit migrated from https://github.com/dotnet/corefx/commit/908ead85e3d4ae5fe77d3e032b47f9679b7112b4
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
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
I've run my binclash logger on the packaging build and identified all
the problems that result in multiple builds evaluations producing the
same output.
In some cases this was due to global properties from traversal leaking
into library build. I have fixed these as follows:
Dummy
This property was just being used to trigger batching to run
multiple builds of the same project in a batch. Instead of
triggering batching by defining this in the properties, which
has side effects, I used the %(Identity) in a condition that would
always evaluate to true, which has no side effects.
DefaultBuildAllTarget
Similar to FilterToOSGroup this only applies for traversal projects
so I undefine it when building a non-traversal project.
PackageTargetFramework
We were using this property to package the output of the library
twice in different paths. Rather than doing this from the package
project I just have the library project declare that it should be
packaged twice.
[tfs-changeset: 1573841]
Commit migrated from https://github.com/dotnet/corefx/commit/2acd2fdb944fc19f01b014666b82b97ea6226e1e
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