* Fix allocated Encoding memory initialization
We allocate native memory using GlobalHAlloc which usually doesn’t zero out the allocated memory and that cause a problem when using this memory. We fixed similar issue before in SBCS but looks we missed the DBCS one.
* Use Unsafe.InitBlockUnaligned
* remove un-needed empty line
* remove space
* Include System.Runtime.CompilerServices.Unsafe to inbox packag
* fix package build breaks
Commit migrated from https://github.com/dotnet/corefx/commit/d5b142984587ac3c1b8562a76c83d5dede117289
* Stabilize configurations for Microsoft.Win32.Registry
* Stabilize configurations for System.IO.FileSystem.AccessControl
* Stabilize configurations for System.IO.Packaging
* Stabilize configurations for System.Security.AccessControl
* Stabilize configurations for System.Principal.Windows
* Stabilize configurations for System.ServiceProcess.ServiceController
* Stabilize configurations for System.Text.Encoding.CodePages
* Some extra cleanup
* Fix CI failures
Commit migrated from https://github.com/dotnet/corefx/commit/39cdb933600c5dcdec1157b8d5755ec37950e2e0
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
* 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
* Changes to throw PlatformNotSupportedException from ISerializable.GetObjectData and serialization constructors on non-serializable types. Also removes private serialization constructors and some unneeded code that was used to support serializing non-serializable types. A few tests testing GetObjectData implementations are also removed.
* Address code review comments.
* Change exceptions' GetObjectData to just call base rather than throw. This makes them behave consistently with exceptions that didn't override GetObjectData.
Commit migrated from https://github.com/dotnet/corefx/commit/a82f54bd51e22ec3eb14eb5d8f572f022becb8e3
TestDefaultEncodings requires that no provider has been registered.
BugTest registers a provider. This was causing TestDefaultEncodings to fail when run after BugTest. There is no way for us to clean up the state left behind by BugTest, so i've just merged that into TestDefaultEncodings.
Commit migrated from https://github.com/dotnet/corefx/commit/891bc2d3860cf383b9093eed91a13e818549824e
* 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
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
System.Data.SqlClient doesn't need to be part of the shared framework in 2.0 as
it wasn't part of included in 1.X and it is no longer part of netstandard2.0.
System.Text.Encoding.CodePages was only needed by Roslyn which has been removed
and SqlClient which we are removing so we can now eliminate it from the shared
frameworks and make it as an opt-in only component as it was intended to be.
Commit migrated from https://github.com/dotnet/corefx/commit/c2c3a28f6d66077063a1797380b5faa2e2486240