* 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
IsolatedStorage doesn't cross-compile for unix and uses Windows-specific
libraries.
These libraries have a dummy implementation that throw
PlatformNotSupported on Unix. This dummy implementation was compiled
against netstandard.dll.
This is a problem since IsolatedStorage is part of the closure of
netstandard.dll. We correctly catch these cases as a cycle.
Workaround this by making netcoreapp-Unix-specific impls of these that
compile against System.*, putting them lower in the stack.
https://github.com/dotnet/corefx/issues/18578
Commit migrated from https://github.com/dotnet/corefx/commit/244c583f85ef6f4bc6c8994b0a9672ae6b166b5c
NotSupportedOnTargetFramework was used to explicitly make a package fail
to install (due to ref/lib guardrails check) where it would otherwise
succeed. This is no longer serving its purpose since NuGet removed the
guardrails check. It's also creating a less desireable failure mode:
FileNotFound vs PlatformNotSupported.
Commit migrated from https://github.com/dotnet/corefx/commit/e7533ab2c24728a5937bfb68609e183833359b27
We're moving the desktop .NETStandard2.0 support library build into
corefx so that we can build partial facades and implementation
assemblies and keep it compatible with previous netstandard versions.
Since we need to make net461 support netstandard2.0 this will become the
primary target for desktop builds in this repo. As a result we need to
remap what netfx means.
Commit migrated from https://github.com/dotnet/corefx/commit/83e91cb0284293e8954dbe83c080f537d6c79eac
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
* AuthorizationRuleCollection inheritance changed to ReadOnlyCollectionBase
* fixed link path
* refs for AuthorizationRuleCollection adjusted
* Included refs and updated ApiCompat baseline
* Indentation fixed in csproj
* AuthorizationRuleCollection inheritance changed to ReadOnlyCollectionBase
* fixed link path
* Included refs and updated ApiCompat baseline
* updated baseline
Commit migrated from https://github.com/dotnet/corefx/commit/922b7021d75c5795a3051132430238c92f2a934f
There are two discrepancies in System.IO.Pipes.AccessControl behavior between netfx/netcoreapp that this resolves:
- SetAccessControl on a broken NamedPipeClientStream should throw an IOException.
- GetAccessControl on a NamedPipeClientStream for which the paired NamedPipeServerStream has been disconnected should throw an InvalidOperationException.
This PR also expands the Pipes.AccessControl tests to cover the above scenarios as well as several others that we weren't testing.
Commit migrated from https://github.com/dotnet/corefx/commit/586e7955d2d42da2b6c400821ed980261090a05f
When the source for System.Security.AccessControl was ported, one of the Interop functions was misnamed. This was causing the entire CommonSecurityDescriptor class to be broken, and since the tests weren't ported until later we weren't aware that it was broken. This Commit fixes the function call and re-enables the tests that assert the correct behavior (verified against desktop).
Commit migrated from https://github.com/dotnet/corefx/commit/f4e3538bd112f8ebc0d05c4c6b6df346f439f671
These tests were ignored for a while then disabled because they were causing a bunch of failures. I'm re-enabling the ones that don't fail and ActiveIssuing the ones that do fail so we at least have some coverage here.
Commit migrated from https://github.com/dotnet/corefx/commit/96497e0ae48bc0b6e65dc5497c424772d79669d8
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