Given that we are harvesting the netcoreapp2.0 assets for these packages
we need to keep the netstandard2.0 assembly versions matching what we are harvesting.
If we need to add more APIs to the netstandard refs then we need need to bump the versions
and start building live versions of the netcoreapp2.0 assets again to add the APIs.
Commit migrated from https://github.com/dotnet/corefx/commit/e3ec0b2b6d1fe173983df0b6910b214d5db36a82
Many library packages overlap with assemblies we include in our framework packages.
In the first release we handled this by preventing the library package from applying any
assets.
This becomes problematic if the reference assembly needs to version, and especially
if the library wants to add API. The new version will be greater than what was previously
shipped inbox, and we wouldn't want to restrict the new version just to future TFMs.
To address this problem I've made a couple fixes:
1. For packages which are shipping brand new API that's not present in desktop, we'll
omit any placeholders and allow conflict resolution to decide if the library package
or framework package should be used (based on version). In some cases this required
bringing some configurations into the package so that it could always be "up to date".
2. For packages which are just exposing API in desktop, and thus already tied/anchored
to netstandard versions, we'll freeze the reference assembly version for the non-desktop
builds. This ensures that the reference assembly will never move past the version that's
inbox in the framework package.
Update BuildToolsVersion to 2.0.0-prerelease-01931-01
Commit migrated from https://github.com/dotnet/corefx/commit/7ee51be7ed472a12266c8cc2ab25a9e1862c1d00
* Add DSA span-based methods
- Augmented DSA with new span-based methods
- Overrode relevant methods on DSACng and DSACryptoServiceProvider on Unix with full implementations
- Overrode relevant methods on DSAOpenSSL and DSASecurityTransforms with valid implementations that avoid some of the base implementation costs, but there's still a lot of allocation there to be avoided subsequently.
- Did not override implementations on DSACryptoServiceProvider on Windows, for the same reason I didn't do so in RSACryptoServiceProvider (it mutates the input).
- Added a bunch of tests.
* Address PR feedback
Also fix a few argument-name-related failures on macOS, and clean up a few minor issues spotted while doing the other changes.
* Disable tests on macOS relying key generation
Commit migrated from https://github.com/dotnet/corefx/commit/30dab1f8f207661d511f7608f2afcee20ebbf823
These are for packages that are outside of the shared framework. We shouldn't make them
cross-compile for netcoreapp2.1 just because master has moved to that. Instead we'll make
them continue to target netcoreapp2.0.
Two cases we want to cross-compile are OpenSsl and Cng since these have already started
taking advantage of API added in NCA2.1 (span). For this we'll cross-compile and redist the
old netcoreapp2.0 implementation.
Two other special cases are System.Memory and System.Runtime.CompilerServices.Unsafe.
In these cases we wanted to keep them targeting netcoreapp (netcoreapp2.1) and
make their portable implementations apply for netcoreapp2.0.
Commit migrated from https://github.com/dotnet/corefx/commit/4a94c7b730928eda2e540b0d95bf8b9e89376907
* Add RSA span-based methods
- Add RSA.TryDecrypt/TryEncrypt/TryHashData/TrySignData/TrySignHash/VerifyData/VerifyHash, with default implementations on the base class
- Override the relevant methods on RSACng (Windows), RSAOpenSSL (Linux), RSASecurityTransforms (macOS), as well as on RSACryptoServiceProvider on Unix.
- I did not override the members on RSACryptoServiceProvider's Windows implementation, as it mutates the input, something we should stay away from when supplied a ReadOnlySpan; we can revisit subsequently if needed.
- Modified the existing tests to also test the span-based methods in addition to the array-based methods, and added some additional tests
- Some minor cleanup of code here and there as I was modifying nearby code
* Address PR feedback
- Various formatting preferences
- More tests
* Fix macOS exception difference for invalid HashAlgorithmName
* Fix missing argument validation in RSASecurityTransform
This includes missing validation on existing methods, not just new ones.
Commit migrated from https://github.com/dotnet/corefx/commit/2d7ee255d3cdb1b13072176d4881e1b58453358b
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly
The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.
* Fix Linux BB
* Update the xunit package reference
* Fix wrong condition on one of the tests
* Update the ConditionalFact/Theory to use Type as a parameter
Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
* Remove SerializableAttribute from many CoreFX types that will not be serializable.
* Removes serialization tests for types that are no longer serializable and fixes serializing a couple of types. Includes marking some internal serializable types as public so that they'll be reflectible with .NET Native.
* Remove unneeded pragmas
* Update based on review comments
Commit migrated from https://github.com/dotnet/corefx/commit/6dd451f51451a7d0ceea6104b51bd17005e9a0e6
* Add nice messages for assemblies with autogenerated PNSE
* Fix failing builds
* Apply feedback
* Temporary workaround for Microsoft.Win32.Registry which needs using System statement
* Add new resource files
* Temporary workaround for System.Security.Cryptography.Cng which needs using System statement on Unix platforms
* Update BuildTools version and use resource strings for all PNSE messages
* Fix builds
* Fix typo
Commit migrated from https://github.com/dotnet/corefx/commit/00b2a853429c896eb973ffc1bbff04b186ab5d07
ECDsa.Create(ECCurve) had a check which rightly belonged in GenerateKey
behind an IsNamed check. Moved that check to where it belonged, and added
an Explicit (PrimeShortWeierstrass) test to the big create matrix.
Adding the test resulted in debugging several tests which were assuming IsNamed.
The extra debugging data seemed generally applicable, so it remains.
Commit migrated from https://github.com/dotnet/corefx/commit/41b6a68a43f64217996489d4770c4024413a5957
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