* Port some WindowsRuntime tests
Port tests for converting to WinRT streams. Change from MSTest,
add usings, match style guidelines.
* Missing files
* Address feedback
Start adding some assert extensions for comparison that log details in exception messages.
Commit migrated from https://github.com/dotnet/corefx/commit/d7d59a694039f6133dcd2663d3d57a516ed23ee2
This change is to enable the infrastructure to run code remotely in isolated container app for corefx test projects. Note that this change is just enabling the infrastructure so the next step would be to visit all test projects using remote execution and update them to work as expected with UAP runs.
I have modified System.Globalization test project to be an example what need to be done in the test projects to enable remote execution for UAP.
The changes here also fix issue when setting the current culture in UAP app and using customized sub-classed CultureInfo object. This scenario was not possible before exposing CultureInfo.CurrentCulture setter because there was no way to set the current culture in UWP apps except through WinRT APIs. Now after exposing CurrentCulture setter, this scenario is enabled and callers can set customized culture instance. We used not to bother before but now we should honor such culture instance to give the expected behavior when setting the culture.
Commit migrated from https://github.com/dotnet/corefx/commit/3795f1956a7e3d4bed2edb0213124357652f1c2c
* Clean WindowsRuntimeStorageExtensions code
Remove Contracts and use C# keywords
* Add WinRT to SafeFileHandle converters
- Adds methods to convert IStorageFolder/IStorageFile to SafeFileHandle
- Adds test project and tests to S.R.WindowsRuntime
* Address feedback
Commit migrated from https://github.com/dotnet/corefx/commit/02f9abf08f0d21d1ff928817db807e0eb6f6adea
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
Today this is working because S.R.WindowsRuntime has internals visible to
CoreLib and CoreLib defines this resource in an SR class. In newer
CoreCLR's that's not happening. If you try to update to consume a newer
CoreCLR you run into an issue.
Commit migrated from https://github.com/dotnet/corefx/commit/6e841adcdd048c75aaea5112816a565f4d950742
Some packages were causing cycles due to the meta-package remapping for
NETStandard.Library and those packages being used in the implementation
closure of NETStandard.Library.
Disable the NETStandard.Library remapping in these packages.
I also noticed that S.R.M was getting an unbaselined dependency for a
portable profile dependency section which was causing issues when
restored on UAP10.0 without the UWP meta-package.
System.Security.Permissions was also missing support for UAP10.1 but it
was required to install due to Registry depending on it.
Commit migrated from https://github.com/dotnet/corefx/commit/561a027b200fda73baf994c46c43191774669bcc
This property is largely obsolete and replaced with NuGetTargetMoniker
where its needed.
I've also cleaned up mentions of this and validation suppression around
it in projects that will never be packaged.
PackageTargetFramework remains in projects that will be packaged and
duplicate their asset in multiple folders,
eg: netstandard1.0;portable-net45+win8+wp8+wpa81
Commit migrated from https://github.com/dotnet/corefx/commit/8590e419f6639d9d5eabdbcb916e62fb1656d30e
* Fixing issue dotnet/corefx#14850 - Adding null check before calling _asyncStreamOperation.Cancel().
* Fixed from PR code review.
* Setting the field as null in case that this method will be used outside of the finalizer.
* Removing the try-catch block.
* Integrating all code reviews to a complete solution.
Commit migrated from https://github.com/dotnet/corefx/commit/9272800d81d716652cca9fdeee89a7ef64a2dc3f