This change updates all projects to the latest CoreFx packages which make use of nuget v3 features and thus require project.json. Packages.config remains for the packages which are not yet compatible with the new build task (mainly because we need to resolve to PCL folders).
The entire change was done by a tool in order to not miss any dependencies, and ensure we have project items for the packages.config/project.json. One side effect of using the tool is some reformatting of whitespace in the projects.
Commit migrated from https://github.com/dotnet/corefx/commit/e729c5353070b71aedff8f1300ae838573813faf
The non-nullable float sum was able to add up elements, even when the
intermediate sum would not normally be representable,
by using a double during the actual summation, and casting on output.
The nullable float sum wasn't doing this, causing it to output different results
(even when the final result would be representable).
This commit also removes `checked` around floating-point addition,
as it is ignored (returns Infinity instead).
Commit migrated from https://github.com/dotnet/corefx/commit/63a25cd2f82b8aec31dbcd3b98528e8b14389046
This change removes the closed libraries sources for libraries which we are now building in the open. Stub project files are left in the closed libraries which improt sources from the open for various build configurations.
Also includes these two changes which were not yet ported to open:
- [Serialization]: DCS/DCJS fails to serialize/deserialize XElement type - regression
- Change namespace of System.Xml.XPath.XmlDocument extensions
Validated by pre-checkin gauntlet build dotnet/corefx#150320.14337
[tfs-changeset: 1437136]
Commit migrated from https://github.com/dotnet/corefx/commit/89881048ba6bb6adca5253024ea59e8aa8790a6a
After this change we are going to have unified model for handling resources which is we always use resx files placed under Resources folder and the code will be automatically generated in SR.cs file.
We’ll access ant string resource using the SR class (e.g. SR.ArgumentException).
Commit migrated from https://github.com/dotnet/corefx/commit/db7180f04ef9789a7f199fcd9f8c527990e14673
Several libraries had their code coverage disabled due to unknown problems. The change to a more recent version of OpenCover appears to have addressed whatever those issues were, as the problems no longer repro. This commit just re-enables the code coverage for those libraries.
The only remaining library with its code coverage disabled is System.Diagnostics.Process.dll. It's either hanging or just taking a really long time to complete. Investigation still needed.
Commit migrated from https://github.com/dotnet/corefx/commit/01c18f27d5a6c383701e0407b55e6edfae203309
I was unable to make this change in System.Reflection.Metadata. Per
discussion with Nick, this assembly can not take a dependency on the
newer Debug contract which supports these members in order to support
runnin on some platforms (e.g. Win8P where this member is not
present).
I faced the same problem in System.Threading.Tasks.Dataflow.
Commit migrated from https://github.com/dotnet/corefx/commit/2bcb80876244b2d488b32881542a85f18ff7a5fc
This change enables code coverage for the corefx project using OpenCover.
* When /p:Coverage=true is passed, we wrap the xunit call in the OpenCover command.
* OpenCover filters test assemblies but no other default filters.
* We disable parallel execution of tests within xunit and parallel project building when running coverage. This appears to cause issues with OpenCover (I see spurious failures in tests) and is actually slower than just running execution serially.
* A few assemblies still have issues even after this. These have coverage disabled with CoverageEnabledForProject. Will open an issue for future investigation.
* After execution is complete, we run the ReportGenerator tool over the set of generated coverage data, creating a full report in bin\tests\coverage.
Commit migrated from https://github.com/dotnet/corefx/commit/60a0bdd4125e39aa1653f2aeffc9eea02f348531
A bunch of PLINQ tests are disabled as ActiveIssue. This commit fixes all of them except for ActiveIssue(235), which is addressed by a separate PR.
PlinqModesTests.RunPlinqModesTests - I don't know what the reasoning was when this test was ported over, but there's an explicit comment at the top of the test that it's not meant for DOP==1, and then apparently we were surprised wheni it was failing on single core machines ;)
UnionIntersectDistinctTests.RunOreredUnionTest1 - There's no reason this test should fail. If it does, there's a bug to be investigated. I'm assuming it was actually stalling because of another test running with it concurrently.
WithCancellationTests - A bunch of these tests were scheduling tasks to asynchronously cancel/dispose a query, and the query was written to take a certain amount of time to hopefully allow for cancellation to take place. But it appears as part of the tests being ported, those timeouts were simply commented out, making it extremely likely the tests would fail. I've just rewritten them to do the cancellation as part of the query's execution rather than using a separate asynchronous task. I also deleted some duplicative tests. And I made some tests that still did explicit delays/timeouts to be OuterLoop.
Commit migrated from https://github.com/dotnet/corefx/commit/d460b29586007d1e8ba534bd8b05a55a88ceff86
We control the targeting centrally and we shouldn't be retargeting
from VS. With the new support for running tests on F5, it is best
to be able to see and edit the command line in the property pages.
Before this, we had an arbitrary mix of the guids being present or
not anyhow. At some point, if we need to set it, we can put it back
across the board and hopefully by then we'll have proper VS test
integration anyhow.
Commit migrated from https://github.com/dotnet/corefx/commit/da9663498c4f5e6bb663e97531afc48964ffbdd0
Move to OuterLoop several tests that exercise a high degree of parallelism and thus could result in delays waiting for the thread pool to inject threads.
Also annotate the assembly to DisableTestParallelization; if multiple PLINQ queries run concurrently, they might similarly experience delays as they compete for the thread pool's threads and force more to be injected.
Commit migrated from https://github.com/dotnet/corefx/commit/5b23beba7c80e291117cf05925b052edad6090ba
The xunit project was forked to target .NET Core. The test
compile-time dependencies and some run-time dependencies were
forked and are planned to flow upstream to xunit in the short term.
The console runner (xunit.console.netcore) is in the
dotnet/buildtools repository because it depends on a contract
(System.Console) that is not available in a portable targeting pack.
Commit migrated from https://github.com/dotnet/corefx/commit/37f34aa3b9b281bf78a4e00ff3ebbe8da31b0f41
This is the initial change to switch to using common targets across the repo.
This change adds a dir.props and dir.targets file that each project file will
import at the top and bottom of the project to default a lot of the common properties
and targets.
Commit migrated from https://github.com/dotnet/corefx/commit/3d95f9cf6e4532df595dd1c694079415afe7d212
System.Linq.Parallel.csproj wasn't outputting symbols, and it didn't have optimizations enabled in Release.
System.Numerics.Vectors.csproj was setting TRACE in Release builds but not in Debug builds.
System.Text.RegularExpressions.csproj wasn't setting either DEBUG nor RELEASE constants in either Debug/Release builds, it didn't have optimizations enabled in Release, and it wasn't generating symbols in either.
The XML libraries were't setting DEBUG/TRACE in either Debug/Release builds, weren't enabling optimizations in Release builds, and weren't generating symbols in either.
DEBUG is important in almost all of these libraries, as they use Debug.* for asserts and the like. Symbol generation is important for debugging. Optimizations are obviously important (but just to verify I saw significant performance wins in multiple libraries just from turning this on in release). TRACE isn't really important, as none of the libraries do release tracing, but I thought it good hygiene to enable it.
Commit migrated from https://github.com/dotnet/corefx/commit/f0f17dfdb834cb5eca94febc98ee6f8c8638e64f