Commit Graph
525 Commits
Author SHA1 Message Date
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Stephen Toub 860ccad799 Remove stale warning 420 pragmas (dotnet/corefx#35023)
It used to be that the CS0420 warning ("a reference to a volatile field will not be treated as volatile") would fire when a volatile was used with an Interlocked.* operation.  That warning was unnecessary, as Interlocked.* would itself provide the relevant barriers, and these functions were special cased in Roslyn a long time ago.  But there are still lots of places where pragmas disabling the warning have stuck around.  I'm deleting them.

Commit migrated from https://github.com/dotnet/corefx/commit/8b3446f4e8ad1a7b19c7298e20396629c6e0092e
2019-02-01 14:57:35 -05:00
AraHaan f108845249 Turn on xml documentation validation globally. (dotnet/corefx#32934)
* Turn on xml documentation validation globally.

* Ignore warning 1591 globally.

* Fixed build failures.

* Move the Original DocumentationFile Condition to the Group.

Now NoWarn has no Condition on it.

* Fixed NoWarn overwrite.

* Update Directory.Build.props

* Update System.Runtime.CompilerServices.Unsafe.ilproj

* Update file on github web.

Sadly it seems I can only do this on my phone now. RIP

* Update System.Security.Cryptography.Csp.csproj

* Update Directory.Build.props

* Suppress some warnings.

* Fixed remaining compile errors.

* Update System.Diagnostics.StackTrace.csproj

* Update System.Security.Cryptography.Xml.csproj

* Fixed xml documentation typo in Microsoft.VisualBasic.

* Fixed missing suppressions.

* Suppress more errors.

* Suppress more errors.

* Suppress more errors.

* Suppress even more errors.

* Suppress more errors.

* Update Directory.Build.props

* Suppress more errors.

Also fix a documentation issue specific to OSX.

* Suppress more errors.

* Suppress more errors.

* Disable xml documentation for System.Diagnostics.Process.

* Do not overwrite NoWarn.

* Enable docs for S.D.P


Commit migrated from https://github.com/dotnet/corefx/commit/6abb4cd0bafa2a3c7486fb23bcc611bd211d0f8e
2018-12-08 22:21:50 -08:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Stephen Toub d55f353845 Fix TransformManyBlock's EnsureOrdered=false to not hold lock while iterating (dotnet/corefx#31059)
When EnsureOrdered is set to false (the default is true) and the max degree of parallelism isn't 1 (meaning it allows for parallelism), TransformManyBlock doesn't employ a reordering buffer but needs to then ensure that the collection it writes the results of the transform to is accessed in a thread-safe manner, so it takes a lock.  Currently it takes the lock around the whole enumeration of the result.  While that avoids lots of locking/unlocking for cases where the enumerable produces all of its results very quickly, it causes problems when the enumerable may be slow to produce results, as it then ends up serializing the processing of all of the enumerables.  The fix is simply to take the lock if it's needed only while adding to the target collection, not while iterating the enumerable.

This change does have a small breaking change potential, in that it's possible someone could have set parallelism to > 1 and set EnsureOrdered to false, and then relied on the lock that was being taken exactly for its serialization, in order to make their delegate effectively thread-safe.  But a) EnsureOrdered is a relatively new feature and this setting isn't the default, b) if you've set parallelism to something other than 1, by design you're asking for your delegate to run concurrently with itself.  So the chances of actually breaking something with this bug fix are minimal.

Commit migrated from https://github.com/dotnet/corefx/commit/b64500068a978f0fd96f1dfc8abf1e021b2b83b1
2018-07-13 20:19:41 -04:00
Stephen Toub 83b8fdacb2 Remove stale comment
Commit migrated from https://github.com/dotnet/corefx/commit/384fa4ad8ed793974218d767aa9e781fb4e99e7c
2018-07-13 09:17:06 -04:00
Eric Erhardt 779486884e Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ec546de620c5248f3662d6aaca989ed382b86b6b
2018-06-28 21:28:41 -05:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Stephen Toub 4c9eb2ec25 Simplify built-in types across corefx tests (dotnet/corefx#30660)
Commit migrated from https://github.com/dotnet/corefx/commit/7ae1a252d7e68c5513d2658de7a401c37e9b0504
2018-06-25 22:42:04 -07:00
Stephen Toub 2fb9f847fc Simplify built-in types across corefx (dotnet/corefx#30656)
Commit migrated from https://github.com/dotnet/corefx/commit/e0ba7aa8026280ee3571179cc06431baf1dfaaac
2018-06-25 16:54:41 -07:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Stephen Toub afe40b4235 Fix dataflow tests to use Assert.Throw instead of Assert.ThrowsAsync
Commit migrated from https://github.com/dotnet/corefx/commit/48bc000682a7cf2d8578c9b9853f50ee5b7c92d5
2018-06-05 09:42:54 -04:00
Maryam Ariyan aa841d48e0 Modify corefx to use ConcurrentQueue from shared
Commit migrated from https://github.com/dotnet/corefx/commit/13e9d66f6051db2f6be532803ef3ab66807fd992
2018-05-22 09:19:22 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Wes Haggard 90e6643a41 Bump minor versions of all packages produced
Commit migrated from https://github.com/dotnet/corefx/commit/63f6be575c97f3d7ca6406c5de732105892e146a
2018-04-27 14:56:19 -07:00
Wes Haggard fc526e8605 Bump assembly versions for libraries with packages
Commit migrated from https://github.com/dotnet/corefx/commit/6a1b5c0aeee747a535579da7374c05b8d878fb65
2018-04-27 14:56:18 -07:00
Eric St. John 550b05e6df Revert "Add an empty dependency group for net45 to DataFlow package"
This reverts commit dotnet/corefx@eb2025d6d3.


Commit migrated from https://github.com/dotnet/corefx/commit/4959283792c474422101ab396cac7abc099609f2
2018-03-08 10:37:15 -08:00
Brian Robbins fb63ccf9cd Use the default supported nuget versions. (dotnet/corefx#27622)
Commit migrated from https://github.com/dotnet/corefx/commit/ac65c0f3fc79303e92da38a40bec52555afe2ff7
2018-03-03 20:55:44 -08:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Wes Haggard 4602205d46 Merge pull request dotnet/corefx#26161 from weshaggard/AddEmptyDependencyGroupToDataFlow
Add an empty dependency group for net45 to DataFlow package

Commit migrated from https://github.com/dotnet/corefx/commit/6603176d3f62864d71ef87171a8c9083542e5d1e
2018-01-04 21:42:12 -08:00
Wes Haggard ab721f21cb Add an empty dependency group for net45 to DataFlow package
DataFlow has assets that are netstandard and old PCL and corrisponding
dependencies. However when selecting for .NET Framework we can eliminate
the dependencies as they aren't necessary as we know they all exist already
in framework.

Fixes https://github.com/dotnet/corefx/issues/25171


Commit migrated from https://github.com/dotnet/corefx/commit/eb2025d6d36ac7de4b1f0c9a047383e2253758c1
2018-01-04 13:34:47 -08:00
Marco Rossignoli 6371b7d5f0 "Don't directly throw Exception" System.Threading.Tasks.Dataflow (dotnet/corefx#26052)
* Don't directly throw Exception

* Don't directly throw Exception

* fix exception message


Commit migrated from https://github.com/dotnet/corefx/commit/a50e9744b0b06e6dfe3eb31d6da6208d5cc8734c
2018-01-04 10:58:47 -08:00
Stephen Toub 09612a41dd Update ref assemblies with readonly changes
Commit migrated from https://github.com/dotnet/corefx/commit/45b724f6b6391910edea8a70f3f22a4a7996696d
2017-11-03 09:48:47 -04:00
Stephen Toub 54c1d578d8 Mark applicable structs as readonly
Commit migrated from https://github.com/dotnet/corefx/commit/54e889a7c71bf22f9f1ef244a9d040fee64c74d5
2017-11-03 09:48:47 -04:00
Santiago Fernandez Madero b9d768589e Fix System.Data.Odbc configurations for support package and run UpdateVSConfigurations (dotnet/corefx#24752)
* Fixed odbc configurations for compat package

* Run UpdateVSConfigurations

* Remove Default Configurations to help VS... comment from csproj's

* Remove from System.Buffers as well


Commit migrated from https://github.com/dotnet/corefx/commit/bcc59b2e74090cfbcc4d6e7c245c172744e9d46b
2017-10-23 18:24:28 -07:00
Steve MacLean 7a68b1e874 ConcurrentQueue 128-byte cache line (dotnet/corefx#22724)
ConcurrentQueue 128-byte cache line

Commit migrated from https://github.com/dotnet/corefx/commit/9c468a08151402a68732c784b0502437b808df9f
2017-09-17 09:38:49 -07:00
Eric St. John 6c5a247c17 Fix library packages overlapping with framework packages
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
2017-09-01 09:01:41 -07:00
Brian Chavez f866987b74 XML doc spelling corrections - I through P. 🚿 (dotnet/corefx#23651)
Commit migrated from https://github.com/dotnet/corefx/commit/b09fab5799bb1ca4bea4b4bb086d2c9870dd5191
2017-08-29 15:42:23 -07:00
Viktor Hofer 4265c618fa Remove unused serialization members (dotnet/corefx#22785)
* Remove unused serialization members

* Remove unused S.Security.Permissions serialization test code

* Remove duplicate test code. S.Drawing.Primitive type serialization is already throughly tested in S.Runtime.Serialization.Formatters.Tests

* Remove ConcurrentBag unused serialization code

* Removing unused Principal/Identity serialization code


Commit migrated from https://github.com/dotnet/corefx/commit/da047240f65309f45b477e31c8e63ca3f06b80f0
2017-07-31 17:48:06 -04:00
Anton Lapounov 3e5bab9dbb Enable reflection for DataflowEtwProvider and fix dotnet/corefx#20592. (dotnet/corefx#22334)
Commit migrated from https://github.com/dotnet/corefx/commit/319d1f93cae02af880c485bb4f6a17e5429d0df5
2017-07-17 13:45:31 -07:00
Jose Perez Rodriguez 370b49763c Merge pull request dotnet/corefx#21836 from joperezr/uapvnext
Renaming uap10.1 to uap10.0.15138

Commit migrated from https://github.com/dotnet/corefx/commit/32f3e82596c8c35691b7cdbf1a27e27784acc652
2017-07-03 15:41:09 -07:00
Jose Perez Rodriguez c9a146ca2a Renaming uap10.1 to uap10.0.15138
Commit migrated from https://github.com/dotnet/corefx/commit/60fe0c60dc418a6856955c215a9695f6f900acf1
2017-07-03 14:32:24 -07:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Hugh Bellamy 7cbcd5ed85 Convert most Assert.Throws<ArgumentException> without param name to AssertExtensions (dotnet/corefx#21455)
* Registry

* Collections

* ComponentModel

* Configuration

* Data

* Globalization

* Drawing

* Diagnostics

* IO

* Linq

* Add System.Net param names in tests

* Move ArgumentExceptions in System.Private.Xml to AssertExtensions

* Add System.Reflection.* ArgumentException param names

* Add param names for System.Runtime* ArgumentExceptions

* Add ArgumentException param names to System.Security.*

* Add ArgumentException param names to System.Text.*

* Add param names to ArgumentExceptions in misc projects

* Add System.Threading.* ArgumentException param names

* Fix missing files

* Fixes for unix and netfx

* Fix more failures and revert a IdnaConformance tests to avoid merge conflicts with dotnet/corefx#21463


Commit migrated from https://github.com/dotnet/corefx/commit/59915687bb261efeae70565d0ca8990ac45ceb9c
2017-06-23 12:33:47 -07:00
Anton Lapounov af72240416 Disable TestEtw and GetTaskSchedulersForDebugger tests for UapAot (dotnet/corefx#21099)
Disable TestEtw test due to issue dotnet/corefx#20592.
Disable GetTaskSchedulersForDebugger tests due to use of reflection.

Commit migrated from https://github.com/dotnet/corefx/commit/2d791e68ff0d1945998b5912a6b7e19cb2f8f26f
2017-06-15 13:48:59 -07:00
Tarek Mahmoud Sayed 8754550d62 Enable UAP Remote Execution for all tests (dotnet/corefx#21014)
This change to enable remote execution of all corefx tests in UAP. Because the remote execution code for UAP is using WinRT APIs and to avoid forcing adding UAP configuration to all test projects, we factor the remote execution code into its own test library (called TestHelper) which is cross compiled.

Commit migrated from https://github.com/dotnet/corefx/commit/eb2f543b189e8f7f9ae4c31e832ac9d3c22bb41a
2017-06-14 13:26:57 -07:00
Eric Mellino 86be53fa83 Update VS configurations and ProjectGUID's for 4 new ref projects.
Commit migrated from https://github.com/dotnet/corefx/commit/40954b6656b3f06a35bb55d3dfd31d8e6888c61c
2017-05-24 11:28:01 -07:00
Eric Mellino c054d234e9 Add a "GenerateReferenceAssembly" target and generate four assemblies.
* The GenerateReferenceAssembly target can be run as a manual step on a
  project. When run, it produces a source code file <Assembly>.cs, in the
  reference assembly folder for the library. This source file can be used
  to compile an equivalent reference assembly.
* Use the target to generate reference assemblies for the following
  libraries:
  * System.Collections.Immutable
  * System.Reflection.Metadata
  * System.Threading.Tasks.Dataflow
  * System.Threading.Tasks.Extensions


Commit migrated from https://github.com/dotnet/corefx/commit/c92788e773afae26bc61e93e83a0f3c2b5eee91a
2017-05-24 11:13:10 -07:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Atsushi Kanamori abb04679af Fix a bunch of random test failures on ILC (dotnet/corefx#19758)
* Fix a bunch of random test failures on ILC

- PlatformDetection - GetEnvironmentVariable() still
  returns null on ILC - but Environment.GetSpecialFolder()
  is fully functional (and it's a preferred idiom.)

- Other stuff is self-explanatory.

* Fix casing. Add comment.


Commit migrated from https://github.com/dotnet/corefx/commit/32310bbcb0a95be9e34e58eb31ac228e996f3554
2017-05-15 07:17:31 -07:00
Eric St. John 08a06887a3 Re-enable package validation and clean up package content
Commit migrated from https://github.com/dotnet/corefx/commit/72002dbb7e3e657adaeb002feca0399d9667a54b
2017-04-18 13:28:50 -07:00
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
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
2017-04-10 12:51:50 -07:00
Jiang Zeng (Pactera Technologies Inc) 66cc28dc56 Remove dead code for corefx - System.Threading.Tasks.Dataflow
Commit migrated from https://github.com/dotnet/corefx/commit/5acf475640428e000b88f2ff9864f7e8e61ecb72
2017-04-06 18:24:13 -07:00
Petr Onderka a6409ad353 Include Dataflow internal threading only on relevant configurations (dotnet/corefx#17912)
* Include internal threading only on relevant configurations

* Invert poly-fill constants


Commit migrated from https://github.com/dotnet/corefx/commit/d6b460124131a12a638872d31a70c366d3585f88
2017-04-04 21:17:34 -07:00
danmosemsft 1b3978236b Expand dataflow wildcard
Commit migrated from https://github.com/dotnet/corefx/commit/0f1ffcd0e6dd7f41bbe3beb21ba8e7a7e9428299
2017-04-04 14:50:00 -07:00
Santiago Fernandez f70aae600a Fix CI
Commit migrated from https://github.com/dotnet/corefx/commit/effd7d5f0d4f35155fb8e54331f95b82c328847d
2017-04-04 11:50:46 -07:00
Petr Onderka 6a8119c475 Remove unused usings in DataflowBlock
Commit migrated from https://github.com/dotnet/corefx/commit/14d9340bb1ef4318afad47a7a428a48d09ddda3d
2017-04-04 16:33:21 +02:00
Petr Onderka fe7ddd0fbb Remove unused PredicateContextState
Commit migrated from https://github.com/dotnet/corefx/commit/fa5adeef1fd96c3a785254f92a3bbb77e9978b16
2017-04-04 16:33:10 +02:00
Stephen Toub d538318cbe Fix failing test related to GC liveness change
Commit migrated from https://github.com/dotnet/corefx/commit/60bcd1292018762494bc8236278f7a0ea1ad4ff6
2017-03-01 22:54:58 -05:00