Commit Graph
52 Commits
Author SHA1 Message Date
Wes Haggard 6d42101111 Remove OSGroup=Windows_NT from netcore50/netcore50aot configurations
Originally the goal was to tag the configurations with OSGroup=Windows_NT
if they were only applicable on that OS. However there is nothing particular
to that OS for most of them and they can build and run on an OS that supports
the managed dependencies.

More importantly we want to enable people to build IL only packages on any
OS and not force them to have a separate windows only package for things targeting
netcore50/netcore50aot. As an example System.AppContext recently introduced
an IL only package that can and should build fine on other OS's.


Commit migrated from https://github.com/dotnet/corefx/commit/3455f80483fbe89894f8ba69eafa0641bc78ecd8
2016-01-18 12:16:08 -08:00
stephentoub af06b412ce Fix GetHostByName_HostName_GetHostByAddr test
I couldn't repro the original failure mentioned, and instead got a deterministic failure on every execution.  I've fixed that, and was able to run the test 10,000 times on both Windows and Linux without failure.


Commit migrated from https://github.com/dotnet/corefx/commit/6bb50624c66f22ad32148d6ab991481652963f3e
2016-01-16 12:30:33 -05:00
Eric Mellino c70ed27383 Add netcore50 configuration for System.Net.NameResolution
Also consolidated the existing net46 facade configuration into the
root-level project file, and deleted the facade folder.


Commit migrated from https://github.com/dotnet/corefx/commit/e6f842c4beed5598f01ff796240ac22893255031
2016-01-14 12:52:48 -08:00
Ian Hays e3311742d9 Bump ExpectedPrerelease version to latest (rc2-23712)
Commit migrated from https://github.com/dotnet/corefx/commit/01c61f62988e8abf39aecc64b0a97ea4e384de3f
2016-01-14 10:36:27 -08:00
Stephen Toub 7e7598c93f Merge pull request dotnet/corefx#5350 from dagood/fix-project-dependencies-nugetexe
Fix project.json dependencies: xunit DNXCore incompatibility + invalid package dependencies

Commit migrated from https://github.com/dotnet/corefx/commit/d591a687578f01ead8421ee4898b7bf42e7d95d6
2016-01-13 16:06:59 -05:00
dagood df455922aa Fix references to nonexistent packages by replacing with stable version where possible, otherwise the upgraded prerelease.
Commit migrated from https://github.com/dotnet/corefx/commit/063c9926f8b27cc987668deb4d75f18295506f17
2016-01-12 15:14:27 -06:00
dagood e401efd6af Add portable-net45+win8 import to tests.
Specifically, add the import to dnxcore50 frameworks entries where "xunit" is mentioned in the project.json.
This fixes `xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.`


Commit migrated from https://github.com/dotnet/corefx/commit/da2e8eb34efcaf70069223bc431d80909a2fc91d
2016-01-12 14:04:32 -06:00
Guillermo Rangel 54f514187f Deleting Logging.cs file
Substituting Logging calls to EventSource calls, or calls to
LoggingHash.

Formatting Changes

Fixing Aligment, and casing.

Changing Dump methods log the hash of the object calling it instead of the method

After some discussion, it was decided that it is more useful to log the
object where the dump happens, than the method. Doing the necessary
changes for it.

Changing usage of "this" to [CallerMemberName]

Instead of using this to know who called the logging method, using
[CallerMemberName] as an attribute to the parameter to fill that
information.

Adding a TODO item.

Making a note to not change NetEventSource or it can break.

Missing Underscore

Adding missing underscore in _wsaBuffer


Commit migrated from https://github.com/dotnet/corefx/commit/f39502ef910c90ba1e67d787df98b627d39ba6cc
2016-01-12 10:27:16 -08:00
stephentoub 9a70801670 Remove ExecutionContext shim from System.Net
In profiling a client/server scenario where the client launches a bunch of async operations against the server, close to 15% of all allocated instances on the client are for System.Threading.ExecutionContext (~9% of the allocated space).  This didn't make sense, because on CoreCLR ExecutionContext is immutable and neither ExecutionContext.Capture() nor ExecutionContext.CreateCopy() should be allocating.

It turns out that some of the System.Net libraries had a custom System.Threading.ExecutionContext shim object with a comment in the file "Important: This is temporary code". Ugh.

I've removed it.  No more ExecutionContext allocations. And using the right ExecutionContext object from CoreCLR.

This also shrinks the size of SocketAsyncEventArgs by another field, as a separate ExecutionContext copy no longer need be maintained, due to ExecutionContext immutability on platforms other than the full framework.


Commit migrated from https://github.com/dotnet/corefx/commit/241eb27504a4e7bc774e202acc5447b09bb4a2d6
2016-01-08 15:39:37 -05:00
stephentoub 37bbb6330d Additional cleanup
- Remove dead Assert overloads that include a Boolean conditional
- Fix up several missed call sites.  Missed primarily due to code being conditionally included based on different build flavors (e.g. Windows vs Unix)
- Fix up GlobalLog fakes to include IsEnabled


Commit migrated from https://github.com/dotnet/corefx/commit/cc8a5d162d36efc8bd56ba406efea71ee3a8af6f
2016-01-08 12:26:18 -05:00
stephentoub c9141f7993 Improve performance around logging code in System.Net.NameResolution
Same treatment as in https://github.com/dotnet/corefx/pull/5238, but for System.Net.NameResolution.  The call sites to GlobalLog methods often do a lot of allocation and other work, even in release builds and even when logging is disabled; this commit guards those call sites behind checks for whether logging is enabled.


Commit migrated from https://github.com/dotnet/corefx/commit/2dcc601e4fec2a0bd15860521bd70012224a2be6
2016-01-08 11:31:25 -05:00
Wes Haggard a3e67fdf73 Update .builds files to include OSGroups
This these .builds files were updated and generated from a script
based on the configurations defined in the matching csproj files.

This updates the builds files to specify OSGroup and TargetGroup
as metadata instead of using AdditionalProperties and also sorts them by
TargetGroup followed by OSGroup.


Commit migrated from https://github.com/dotnet/corefx/commit/95efe37475916016a5fc6ee6f0ba584d990c4196
2016-01-02 23:50:23 -08:00
Wes Haggard f27c7dc024 Update project files adding default configurations
This add a default configuration before the Import of dirs.props
for any projects that don't have Debug as the default configuration.

Removed Configuration and Platform properties set after dirs.props
as they would have no affect and just cause confusion.

Removed OutputType=Library property as it isn't necessary.


Commit migrated from https://github.com/dotnet/corefx/commit/9e1da13cf6d5ff4b37b1867beb3411a2fe61da6a
2016-01-02 23:50:21 -08:00
Guillermo Rangel 1a62aca39f System.Net EventSource Logging
Adding EventSources to substitute the previous logging model using
TraceSources.

In this PR 4 event sources are added:

-NetEventSource
-SocketsEventSource
-HttpEventSource
-SecurityEventSource

Event methods for NetEventSource, SocketsEventSource and HttpEventSource
are
fully added. SecurityEventSource has only a few of
the new event methods implemented.
Changes in production code are done to match this new implementation.
(Only changes for
events in Sockets and Http are done in this iteration).

Adding missing reference to LoggingHash

Missing Reference in Security csproj

Missing reference in NetworkInformation

Adding a reference and adding a missing new line.

Adding references and readonly modifier.

Adding another missing reference.
Adding some missing blank lines and making readonly the s_log in the
EventSources.

Completing SecurityEventSource

Adding missing all the security events that will substitute PrintInfo
calls.

Doing changes in code to reflect this.

Transforming SecurityEventSource into a Partial class

Some of the events were Windows specific, because of the enums they were
using. Those events are now in a partial class that is included when
those enums are defined.

Moving events to partial SecurityEventSource class

Some more events using Interop.SecurityStatus are moved into the partial
windows specific class.

Also, a missed non event header is added for Associate method in
HttpEventSource.

Deleting Logging reference to instead use LoggingHash

Addressing some of the PR feedback

Adding the Issue number to TODO for localization, and using BlockCopy
instead of a Loop to copy array. Also, correctly passing partialBuffer
instead of Buffer to the DumpArrayAsync method.


Commit migrated from https://github.com/dotnet/corefx/commit/1cd8bf635d4b9a6d8a7d1e25cd320814c993f38b
2015-12-29 12:14:39 -08:00
Pallavi Taneja 95a3b67166 Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo()
Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo() in System.Reflection.
Fixes issues dotnet/corefx#4146 , dotnet/corefx#2101


Commit migrated from https://github.com/dotnet/corefx/commit/e28fdbd9dd98810a81207c665fdc4e6b40b24e64
2015-12-21 14:56:26 -08:00
Pallavi Taneja 90c2d27bf1 Update Corefx Repo to depend on newer package versions
Disable failing tests with the tracking active issue


Commit migrated from https://github.com/dotnet/corefx/commit/98fdc29624cd791bba42ec1e0cd5c256f331adfe
2015-12-21 11:48:15 -08:00
stephentoub 77c4183d17 Update package validation to rc2-23610
Commit migrated from https://github.com/dotnet/corefx/commit/6f6303f0356be4d2dd4ac117373f1e37f8752248
2015-12-11 10:53:47 -05:00
Eric Mellino b8670dea2f Add facade projects for all supported platforms
These facade project files were generated using a porting tool I wrote,
which examined some information from our internal build and created
appropriate project files. I have also re-generated all of the .builds
files so that they import the facade projects in the correct manner.


Commit migrated from https://github.com/dotnet/corefx/commit/58e2f6e862060039e1ebad727d75c87703fdb2f2
2015-12-10 10:29:09 -08:00
dagood fbfb82cc8c Change all project.json files to validate. Remove lockfiles from source control and add to gitignore.
A few new references to pick up changes that happened over time.


Commit migrated from https://github.com/dotnet/corefx/commit/0d881222d8c3269157639e2e67056e5a83aad834
2015-12-09 16:25:26 -06:00
dotnet-bot 63d3f404c4 DevDiv VSO# 158455 - Deprecate System.Private.Networking.dll and move to building from GitHub sources in .NET Core
Switching System.Net Win contracts to use code in the Open partition.
Creating individual implementations for System.Net contracts for Win.
Removing System.Private.Networking (partial, requires a second check-in due to TFS limitations).
Removing System.Private.Networking.Build.
Removing System.Net.Common.
Updating ToF tests.
Reactivating all ToF tests for System.Net (validated on private builds).
Porting remaining UnitTests to GitHub.
Creating packages for System.Net.Utilities for Unix.

[tfs-changeset: 1554743]


Commit migrated from https://github.com/dotnet/corefx/commit/96ef10191969d8216d538e9a2a25222661b83683
2015-12-04 15:13:41 -08:00
Deepak Shankargouda f5284f6fcc Created initial set of .builds files
Commit migrated from https://github.com/dotnet/corefx/commit/a20fd22b1e44d13e437c235a957a47a2af52838d
2015-12-02 14:38:03 -08:00
Page-Not-Found 835ffb1436 Commonfolder rename and __Error, __HResult
Commonfolder rename and __Error, __HResult


Commit migrated from https://github.com/dotnet/corefx/commit/0a1a2a024797091a645ea42561441fcd8586525c
2015-11-11 15:45:12 -05:00
Eric St. John 65210efd31 Update project.lock.json to latest and lock
Commit migrated from https://github.com/dotnet/corefx/commit/6aeea5eabf2aff3baf15f501cabd156dfc5b3f8f
2015-11-09 22:38:10 -08:00
Eric St. John cddddd29f5 Remove unused dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/78fd45ec74afc507a40df519b4df650ac9bd4c42
2015-11-09 22:37:37 -08:00
Eric Erhardt 27bc21d469 Add shims for the rest of the libc native calls.
This removes all direct dependencies from managed code
to native libc functions.

Fix dotnet/corefx#4106


Commit migrated from https://github.com/dotnet/corefx/commit/7077b4d74707b9e07787b5fbc1fbe6a0db202ea9
2015-10-28 09:30:41 -05:00
Pat Gavlin 067d8df910 Enable some System.Net tests for OSX/*nix.
- The NameResolution functional tests were disabled on all *nixes.
- The NameResolution PAL tests have been switched to the more modern
  style.
- The Sockets.Legacy tests were disabled for OS X when using
  run-test.sh.


Commit migrated from https://github.com/dotnet/corefx/commit/2d66c1f10b4b16d2db8930a504d3bc2560d85220
2015-10-27 14:34:55 -07:00
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
Pat Gavlin bbdb409db3 Fix a typo in pal_networking.cpp.
This change also re-enables a disabled NameResolution PAL test.

Fixes dotnet/corefx#2318.


Commit migrated from https://github.com/dotnet/corefx/commit/cf92d01126ad32393ea638ccf6b7504d0ebb414d
2015-10-20 13:29:51 -07:00
Pat Gavlin bb0dee6b16 Merge pull request dotnet/corefx#3978 from pgavlin/NameResolutionShims
Shim the last platform APIs used by S.N.NameResolution.

Commit migrated from https://github.com/dotnet/corefx/commit/47d8b285eb53442f1724c04528e9a2a2867f9b4a
2015-10-19 21:07:22 -07:00
Pat Gavlin 4df5d2833c Shim the last platform APIs used by S.N.NameResolution.
gethostbyaddr and gethostbyname had not yet been shimmed.


Commit migrated from https://github.com/dotnet/corefx/commit/55befb0c5a5633530fc85b9675a51e53d53ab116
2015-10-19 19:08:27 -07:00
bartonjs a768025131 Update all project.lock.json files
Built Windows_NT, Linux, OSX with /p:LockDependencies=true.

CoreFX beta-* => 23419
xunit.netcore.extensions => 00107


Commit migrated from https://github.com/dotnet/corefx/commit/a14b22705df253508bd5f2dab0407bd2c7e4d639
2015-10-19 16:00:44 -07:00
Eric St. John 8cd3109d56 Switch from using "dotnet" to using "dotnet<generation>"
All projects that previously used dotnet have been updated to specify the appropriate generation of the surface area they depend on or in the case of desktop inbox contracts, the generation that includes the set of platforms they can support.

Now all packages contain all generations of API that they have ever shipped.

In doing this I needed to change how we determine package version.  Before we ensured all assemblies would have the same version and used that.  Now we choose the max.

Additionally I needed to change how we chose which asset to use for netcore50 when the dotnet asset was obscured by a placeholder for a previous netcore release (eg System.Runtime will have placeholders for Win8 since it was inbox there).  To do this I wrote a task that uses nuget to evaluate the package assets with and without the placeholders.  In this way it chooses the "best" dotnet implementation and reference assembly to use for netcore50.

This new model made my old MSBuild-based validation impossible to carry forward, so I wrote better validation in a task that actually uses Nuget's asset resolution algorithm.  This uncovered many existing issues in packages that I have cleaned up.  The validation algorithm could use some polish but its working now.  Perf is not great, package build went from 15s to ~2 minutes.  I'll work on this some more by making it incremental (input: nuspec, output: marker created on success).  Profiling shows that most of the time is spent in calling the nuget APIs.  I'll see if I can reduce some of this with caching for things that don't change (eg: RID graph).  Ultimately I think its a reasonable tradeoff for the types of bugs I can find this way.

[tfs-changeset: 1539216]


Commit migrated from https://github.com/dotnet/corefx/commit/0931c347eb836c9da94d0d5ff9ad7a14403b9738
2015-10-18 21:12:23 -07:00
Pat Gavlin 5f1335ba57 Shim Interop.libc.socket().
Commit migrated from https://github.com/dotnet/corefx/commit/e4731ad428d538cbfc75d4dc2dcc8fd7d3aba534
2015-10-15 14:00:04 -07:00
Pat Gavlin e095a685c1 Shim in{,6}_pktinfo.
This moves all of the processing for control messages--arguably some of
the trickier interop in Sockets--into the native shims.


Commit migrated from https://github.com/dotnet/corefx/commit/2cdff2f366080b11420b63f932691200a881b5ba
2015-10-14 09:26:54 -07:00
Pat Gavlin 02a9387410 Shim socket addresses.
The socket address shim adds native accessors for the various bits that
managed code needs to access, namely:
- Address families
- Port numbers
- IP addresses

This change also updates the name resolution shim to use an iterator-based
design for walking host entries. This interface trades chattiness (a
P/Invoke per IP address) for memory footprint (various native and managed
allocations per IP address).


Commit migrated from https://github.com/dotnet/corefx/commit/ecc092e2dcc87a3a17370ff6951dc48c6b37fea7
2015-10-08 19:11:35 -07:00
dotnet-bot dfa25896ef Porting System.Net.NetworkInformation and System.Net.Utility to GitHub.
Completing dotnet/corefx#894


Commit migrated from https://github.com/dotnet/corefx/commit/5a67678925c2f2731fdb55eb3c88a287149e8db4
2015-10-05 17:24:18 -07:00
Ian Hays 0f8197a86c Update CoreFX to xunit 2.1.0
Commit migrated from https://github.com/dotnet/corefx/commit/87b48c58936d66fcb201b3a8ad0961fa055f23b9
2015-10-01 19:56:49 -07:00
Jonathan Miller 8ee9eefe46 Shim'ing out GetNameInfo, get/free addrinfo, and GetHostName.
The calls to getaddrinfo are not 1-to-1 with the native calls due to
complexities around the native structs. Calls using sockaddr and
addrinfo have nested structs pointing to different data depending
on if the IP is IPv4 or IPv6. To mitigate the complexities around
this code and around the underlying struct differences on the
currently supported platforms, I kept the same calling pattern (as
in Get* and Free*) but converted them to use an intermediate data
structure that is defined in the PAL. We can then take in the
required data from the Managed World and determine which native
types are required, handle all the native structs and casts, and
give back only the information that the managed code needs in a
much simpler format.


Commit migrated from https://github.com/dotnet/corefx/commit/f3191981b3739742e4f728b6a13a880abe12c5a6
2015-09-30 17:51:58 -07:00
Pallavi Taneja f2845b41f0 Update the lock files for the updated projects
Commit migrated from https://github.com/dotnet/corefx/commit/ebf752bf2c3fe7f6a04fbd3ef2db536700318e17
2015-09-29 17:18:49 -07:00
Pallavi Taneja 0185f7f683 Remove SecureString usages
Commit migrated from https://github.com/dotnet/corefx/commit/46db5bcbb484baf02f98320287d2fe0bd2e86599
2015-09-29 15:01:25 -07:00
bartonjs a52f41057c Update all CoreFx package references to 23328 build.
`build.cmd /p:LockDependencies=true` was the start of this change, but some errors with xunit build numbers led to all xunit upgrades being reset back to what they had in master.

project.json changes:
* System.Net.Security\src Switch off of explicit beta versioning, use the same baseline as everyone else.  The S.S.C.Algorithms explicit upgrade is no longer required.
* System.Net.Requests\tests didn't build.  Looking at the project.lock.json change, it appeared that a System.Net.Http reference was lost, restored it.
* System.Net.Http\tests didn't build. Looking at the project.lock.json change, it appeared that a System.IO.FileSystem reference was lost, restored it.
* System.Net.WebSockets.Client\src didn't build. Looking at the project.lock.json change, it appeared that a System.Collections (4.0.10) reference was lost, restored it.
* System.Diagnostics.TextWriterTraceListener\tests needed the runtime reference to load the correct System.Diagnostics.TraceSource binary.


Commit migrated from https://github.com/dotnet/corefx/commit/cec3a0f2db542bfa9d9c56bf988d966eacc35ad9
2015-09-29 11:40:37 -07:00
Stephen Toub a42e2bdf2b Merge pull request dotnet/corefx#3459 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/fad2479a6bd9d65f0dbcadccb61676f914773f44
2015-09-25 09:02:15 -04:00
Christopher Costa 9055ce307a System.Net.NameResolution xplat packaging
[tfs-changeset: 1529321]


Commit migrated from https://github.com/dotnet/corefx/commit/db4b74fc713085553508bc8ca58fb4f8ceb1d02a
2015-09-24 16:18:18 -07:00
dotnet-bot 59f03d6341 Initial import of System.Net.Sockets.
Commit migrated from https://github.com/dotnet/corefx/commit/36c09c4802aebed9abfe4dd86fe9fbfd7b9c72cc
2015-09-23 21:06:21 -07:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
stephentoub be1354fcb3 Disable GetHostByName_HostName test failing on OSX
dotnet/corefx#3218


Commit migrated from https://github.com/dotnet/corefx/commit/44b076537ffd3e36f2cd79a4a606e31b1241ab4a
2015-09-13 08:52:43 -04:00
stephentoub 5d73797669 Fix multiple MSB3277 build warnings
Fix several warnings of the form:
```
warning MSB3277: Found conflicts between different versions of the s
ame dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
```
Brings the number of warnings during a full build back down to 0.


Commit migrated from https://github.com/dotnet/corefx/commit/fc09b0b21a2c5dd6c5e4ee5df203b2f8def30e76
2015-09-03 14:40:38 -04:00
Dmitry Turin 102a8939ca Use List<T>.ToArray() instead of CopyTo()
Commit migrated from https://github.com/dotnet/corefx/commit/34648f57f9d32d0ddeac96edb28a581acd80105c
2015-08-21 16:00:41 +03:00
Nick Guerrera 31537a7c6f Fix build failure due to conflict between concurrent PRs
New usage of Interop.libc.close was added while it was
simultaneously being removed in another PR, which defeated
catching it via CI PR validation.


Commit migrated from https://github.com/dotnet/corefx/commit/f0b6c14964b508c734dec8add50284b94b85e4c8
2015-08-20 20:09:18 -07:00