[tfs] Previously these assemblies shipped in nuget v2 packages built from the OOB branch. This change adds nuget v2 packages that support all the existing targets supported by the old packages.
[corefx] Add support to corefx github targets to enable packaging their output directly.
[corefx] I made the assembly version of these projects consistent with what was previously shipped from our OOB branch.
[tfs-changeset: 1489213]
Commit migrated from https://github.com/dotnet/corefx/commit/e30a432dd6e7fd06dd3afe7478cb4cfb368a6c12
This change adds the lock files to repo to ensure we build against a stable set of dependencies. To explicitly update dependencies use build.cmd /T:RestorePackages /P:LockDependencies=true and this will pick up the latest depenedencies.
Existing projects adding new dependencies will automatically update the lock file incrementally.
New projects should make sure to check their lock file in with locked set to true.
[tfs-changeset: 1474296]
Commit migrated from https://github.com/dotnet/corefx/commit/d2fbc005707933db1cebca035d6cd6073af6cae4
The previous path resulted in a bunch of warnings when building corefx on Linux,
since the XML doc file couldn't be found due to backslashes.
The fix is to change the path to forward slashes as those work on Windows as well.
Commit migrated from https://github.com/dotnet/corefx/commit/59d9e25a5437fb409342cb91522884268791fb5b
We have a number of MSB3277 warnings from ResolveAssemblyReferences. These are due to a ProjectReference pulling in a higher version of a nuget package than the referencing project. Nuget handles this case and flows the references to the referencing project during restore from Visual Studio, but not from the command line yet. These warnings have been causing many folks grief so I am checking in a workaround. The workaround is to reference the package representing the project, then rely on the build targets preferring the ProjectReference over the package reference.
Commit migrated from https://github.com/dotnet/corefx/commit/1e53ad8483c1f7ee8c1489ebb7976fb88f80a937
Latest packages are now on dotnet-core myget feed.
This should address a many of the warnings in the build. I will follow up with another change to address the rest.
This change brings in the latest build tools with updates to consume "latest" packages (* versions).
I've updated every project in the repo to use * versioning for dependencies.
The new packages can be used to resolve runtime assets as well (like clrcompression.dll) so I have removed the custom code in System.IO.Compression to copy this dll. Instead the test project references the actual System.IO.Compression package and sets the correct runtime IDs to pull out the resources. The System.IO.Compression.dll from the package is not used since the project reference takes precedence.
I had to workaround an issue in System.Xml.XmlSerializer with the current packages: System.Runtime.WindowsRuntime 4.0.0 has a depedendency on "windows" package which doesn't exist. This was caused by our auto-generation task not filtering the winrt reference in the reference assembly's surface area. I've fixed this in a separate change and we can remove the workaround once we have a new set of packages. https://github.com/dotnet/corefx/issues/1761
I also had to add a dependency to System.Security.Cryptography.Hashing.Algorithms\tests due to an issue with DNX. It's not honoring the dependency group with no targetFramework when another dependency group exists in the nuspec. This is inconsistent with nuget v2 and should be fixed in DNX. https://github.com/aspnet/dnx/issues/1881
[tfs-changeset: 1471885]
Commit migrated from https://github.com/dotnet/corefx/commit/08c0d8628ef621fbd44d7aaa85b3239616a6b108
DNX and BuildTools now support all of the nuget v2 conventions that we depend on so we can
move all remaining nuget v2 packages to the project.json file and eliminate packages.config.
This change also adds "frameworks" to the project.json so that dnu restore can calculate
applicable assets. I am not yet using "runtimes" in the project.json since we are still resolving
our runtime assets manually (eg: build tools copies known files from packages). A future
change will move us to using our runtime packages and add runtimes sections to projects
as appropriate.
Commit migrated from https://github.com/dotnet/corefx/commit/eb35a304c7e89e8b4335ed13c5d23706360d49a4
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
Our collection types are some of the biggest users of DebuggerDisplayAttribute and DebuggerTypeProxyAttribute. In the past as we've done refactorings, we've broken these on multiple occasions, and such breaks are often only discovered later on by someone using the types in the IDE.
This change adds some basic tests to exercise these debugger attributes, verifying their existence, that fields/properties they refer to exist, that properties on type proxies don't throw exceptions, etc. We already had some debugger attribute tests in the System.Threading.Tasks.Dataflow library's tests; I've extracted those into some common helpers which I then use in the various test projects.
These helpers could be used in more test projects in the future. They could also be expanded to cover more scenarios, as desired.
Commit migrated from https://github.com/dotnet/corefx/commit/f98612e1278908ad3998c90f982e8d1b4c44c320
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
Dataflow's ETW provider is broken due to not having the correct localized resource name; attempting to enable ETW tracing will cause the library to fail with resource-related exceptions.
This commit fixes that and adds some basic ETW tests to ensure that the EventSource is properly tracing events.
Commit migrated from https://github.com/dotnet/corefx/commit/d58775a1dcc1897ed5a21bcc58bf1aa4b8fd2bde
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
The existing "hardening tests" were duplicative of a bunch of things covered once the rest of the dataflow tests were rewritten. They also involved lots of timeouts that made them unstable, especially in a lab environment. I'm deleted the whole file and added some additional tests throughout the rest of the suite to make up for a few remaining deficiencies. I also removed a bit of dead code from the product. Code coverage is not at ~93% (after ignoring source like the copy of ConcurrentQueue that's included).
Commit migrated from https://github.com/dotnet/corefx/commit/3cdc8dd1f28807eec703993885d9f4be5e17003d
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
In general, code should avoid caching incomplete Tasks in statically rooted locations or else risk a potentially serious memory leak. Today in Dataflow, the Task returned by DataflowBlock.NullTarget<T>()'s Completion is a statically-cached, never-completing task, which means that any continuations created off of it will be leaked for the duration of the app. This commit changes DataflowBlock.NullTarget<T>() to return a Task specific to that block rather than one statically used across all blocks.
Commit migrated from https://github.com/dotnet/corefx/commit/031a4e1f4a2c3948eb9726b317146d2e0a2d29fa
This overhauls the System.Threading.Tasks.Dataflow test suite, rewriting most of the tests while retaining pieces here and there that made sense.
A large portion of the tests were marked as OuterLoop because they involved long and flaky timeouts, were unreliable, etc. After the rewrite, the vast majority of tests are inner loop, ~260 [Fact]s instead of ~40 (the suite previously rolled a bunch of tests into a single [Fact], tracking their success in a local Boolean), with only a handful remaining as [OuterLoop]. I've not scrubbed through the ConcurrentTests.cs and HardeningTests.cs files, which are still all outer loop and should be reviewed and updated in the future.
With this change, product source code coverage via inner inner loop tests jumps from ~60% to ~90%, while also reducing LOC by several thousand lines in the tests. Further, on my machine the inner loop tests now currently run in ~3 seconds.
Commit migrated from https://github.com/dotnet/corefx/commit/f6515a70353b5584a48fb6a698b575163ff40279