This override appears to be something that's supposed to
be overridden by the actual implementation class by something
decent, but in keeping with the desktop (and with methods
like WriteValueAsync(IStreamProvider)), we'll provide
a default implementation that satisfies the letter
(if not quite the spirit) of the contract...
Commit migrated from https://github.com/dotnet/corefx/commit/0c8c91808c3db79f32647887e964e3d962aaf3f9
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.
This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.
As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).
Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.
The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility
Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
pass /p:BuildNETCoreAppOnly=true will filter the product build
to only include things in corefx that are part of netcoreapp (i.e
shared framework).
Note this filtering doesn't work correclty for test projects because
some of them require things outside the shared framework to build and
run. We could extend it to test projects at some point if we want
to clean up those dependencies, but for now it is only intended
for build.cmd/sh
Commit migrated from https://github.com/dotnet/corefx/commit/f4ccd035032e75b219a5f3b960c5637d43aae1d3
* Replaced ContainsKey() Calls with TryAdd() Dictionary Calls (Where Applicable)
Replaced `ContainsKey()` method calls with the new `TryAdd()` method
where applicable.
* Reverted `TryAdd()` To Previous Approach
Reverted to earlier approach to avoid unnessary allocation of a new
row.
* Cleaned Up `else-if` Usage with `TryAdd()`
Removed the `TryAdd()` call from within the conditional statements and
moved them to the body
* Added Extra Line for Readability / Coding Style
* Updated Non-Dictionary Test Cases To Use `TryAdd()`
Updated various unit tests to include the `TryAdd()` instead of the
previous `ContainsKey()` pattern. This focused primarily on test casts
that were not dictionary-related at all to help curb any potential
regression issues.
* Added `TryAdd()` Within Dictionary Performance Test
Replaced older `ContainsKey()` implementation with newer `TryAdd()`.
* Reverted PerfDictionary Test to `ContainsKey()` Usage
Changed test to earlier implementation in to make way for .NET Core
specific tests using newer API.
* Created Separate .NET Core Dictionary Performance Test
Copied the existing dictionary performance tests (from
`Perf.Dictionary.cs`) and used the newer `TryAdd()` calls; Adjusted the
projects test file only include these when targeting .NET Core.
* Created Separate .NET Core SQL Manual Test
Reverted previous usage of the newer `TryAdd()` method and created a
separate .NET Core specific file to to be conditionally included and
tested.
* Separated .NET Core ILPrinter Test
Reverted previous changes involving the `TryAdd()` method and created a
seperate file to test this functionality only for .NET Core.
* Created Seperate .NET Core Linq TreeManipulation Tests
Reverted previous changes to the normal tests and created a seperate
test targeting .NET Core with the newer `TryAdd()` usage.
* Created Seperate .NET Core xNodeBuilder Test
Reverted previous changes to the normal tests and created a seperate
test targeting .NET Core with the newer `TryAdd()` usage.
* Missed .NET Core Reference for InternalConnectionWrapper
* Applied Compilation Condition for InternalConnectionWrapper to Avoid Collisions
Applied Compilation Condition for InternalConnectionWrapper to Avoid
Collisions (i.e. either build for .NET Core or use the other one for
non-Core builds)
* Avoiding Another Build Collision with .NET Core Functionality
Added a .NET Core compilation constraint for the .NET Core specific
ILPrinter class to avoid issues when building (i.e. only build .NET Core
or non-Core).
* Fixed Yet Another Potential Build Collision with .NET Core
Added a .NET Core compilation constraint for the .NET Core specific
Performance Dictionary testing class to avoid issues when building (i.e.
only build .NET Core or non-Core).
* Removed More Potential .NET Core Compilation Collisions
Added .NET Core specific constraint to seperate Core and non-Core
classes when building
* Additional .NET Core Build Collision Fix
Added an additional condition to separate .NET Core and non-Core builds.
* Added TryAdd Extension Method for Testing
Added an extension method to support `TryAdd()` calls within test cases
across the solution to avoid code duplication.
* Updated Namespace for Dictionary Extension Methods
Changed from `System.Collection.Tests` to `System.Collections.Generic`
as this wasn't actually a test but rather an extension method.
* Removed Previous Duplicate Tests; Added Extension Method
Removed Previous Duplicate Tests; Added Extension Method Usage
* Updated Extension Method Path
Replaced previous relative pathing string with `$(CommonTestPath)`
* Added Missing Generic Type Parameters to TryAdd Extension Method
* Removed Unnecessary Using Statement
* Updated System.Linq.Expressions Tets to use Extension Method
Removed .NET Core duplicate tests; Added reference to new extension
method (from Common\tests)
* Updated System.Private.Xml.Linq .NET Core Tests to Use TryAdd()
Updated System.Private.Xml.Linq .NET Core Tests to Use TryAdd()
extension method.
* Updated System.Collections To Use Dictionary.TryAdd() Extension Method
Removed previous .NET Core duplicated code and references
* Updated Non-ContainsKey() Tests To Use Extension Method
Updated Non-ContainsKey() tests to use the `TryAdd()` extension method
approach
* Extended TryAdd() Extension Method
Updated the existing `TryAdd()` extension method to target any Dictionary
related interfaces (as opposed to Dictionary implementations)
* Updated References in System.Collections.Test
Removed previous .NET Core specific reference; Added extension method
availability
* Added `TryAdd()` Extension Reference
Added the `TryAdd()` extension for some other dictionary tests that rely
on an interface (which now supports the `TryAdd()` method).
* Removed Explicit .NET Core Compilation Constraint
* Fixed Coding Style Issue
Fixed Coding Style Issue of a missing blank line following the closing
gullwing brace for the if-statement.
* Added `<Link>` Section for Extension Method References
Updated all of the previously added extension method `<Compile>`
sections to include a `<Link>` section to improve formatting.
* Added <Link> Section for Dictionary Extensions
Added Missing <Link> Section for Dictionary Extensions
Commit migrated from https://github.com/dotnet/corefx/commit/3d4d8038d1a3f0c56d3046bc7494f30ecc35e67b
* Fix UWP Pinvoke checker condition
* analyzer baselines
* Remove redundant local define
* Remove redundant CA lines
* Special case Registry
* Fix BlockReflectionAttribute
* Replace NETNATIVE with uap define
* baselines
* Disable Pinvoke scan on specific projects
* Disable BlockReflectionAttribute on ilproj
* Revive 2 baselines
* Disable UWP validation on SQlClient
* Convert some defines to `uwp`
* Fix S.N.Primitives baseline
* Remove dead baselines
* Clean up NET_NATIVE defines
* Remove FEATURE_CORECLR except from shared sources
* Change Threading.Thread defines to just uapaot
* Fix comment
* Fix comment 2
* Change serialization uap defines to uapaot
* Rename EnableWinRT to UWPCompatible
* Fix UAP build for Console
* Fix uap condition in XML csproj
* Fix condition in XmlSerializer project
* Replace netcore50
* Remove dead #if
* Redundant console condition
* Redundant console condition2
* Trim baseline
* Revert Console baseline to pre UAP
* Fix MemoryMappedFiles uap build
* Fix S.Linq.Expressions build for UAP by temporarily disabling it
* Fix S.N.Sockets build for uap
* No plans to put SQLClient in UWP
* Fix RuntimeInformation build
* Fix MemoryMappedFiles build for Unix
* Add UWPCompatible to all netstandard versions
* Add EnablePinvokeAnalyzer to disable Pinvoke checking entirely for some reason
* Remove dead System.Xml.XmlSerializer.Tests.settings.targets
* Fix interop services build
* Remove last uap/uapaot define in Xml tests
* PInvoke check doc
* Fix PInvoke casing
* PInvoke file is case sensitive
* Remove unnecessary references to uapaot from projects that don't have uapaot configs
* Remove unnecessary uapaot from S.R.I.RI
* Replace UWPCompatible for TargetGroup in csproj conditions
* Reverse FileSystem edit as not ready to build for UWP
Commit migrated from https://github.com/dotnet/corefx/commit/b1865ea0847a7a86baefe8378b772ecf0b785681
* Marking code as unchecked (pt 7)
Marking code that may intentionally lead to over or underflows with
unchecked in preparation of turning on CheckForOverflowUnderflow for
all projects (issue dotnet/corefx#3140)
* Marking code as unchecked (pt 7a)
Additional fixes from a debugging session on macOS
* Marking code as unchecked (pt 7b)
Added missing unchecked to ConcurrentBag
Commit migrated from https://github.com/dotnet/corefx/commit/0ebc867d6bad9d777dd61afb78d0445c86143b34
* Enable tests to compile with netstandard
Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration
The changes include some fixes to compile teh sources too.
* Fix System.Collections.Immutable
* update src configuration
* remove netstandard17 defines
* Split netcoreapp code to its own files
* Remove 17 from the test class name
Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
After the change to use the appropriate references for a configuration
we needed to make sure that every library has a versionless targetgroup
so that it can build in the source build scenarios without requiring
external packages from NuGet.
For any library that is part of netstandard, its implementation should
not build against netstandard
For any library that is part of the imlpementation closure of netstandard,
its implementation should not build against netstandard (else we'd have cycles).
OpenSSL must keep its netstandard ref, however it has NETCoreApp specific API
dependencies. See https://github.com/dotnet/standard/issues/186. As such we
need to cross-compile both src and ref for NETCoreApp. I've moved the not-
supported assembly to be the 'netstandard' implementation.
Commit migrated from https://github.com/dotnet/corefx/commit/28097ca87cc2e8bcf7760f05732464b2c00eeaa4
NETStandard.Library : now builds from the standard repo
System.Private.DataContractSerialization : private package and all
upstack packages have been deleted.
System.Private.Xml : private package and all upstack packages have
been deleted.
System.Xml.XPath.XDocument : contains only extension methods for
members that have been added back in netstandard.
System.Private.Xml.Linq: private package and all upstack packages have
been deleted, after deleting System.Xml.XPath.XDocument.
Commit migrated from https://github.com/dotnet/corefx/commit/47e1bd33e50a2dceed2fbed4b467af7ba9ef1f31