Commit Graph
722 Commits
Author SHA1 Message Date
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
Tomas Weinfurt 06735f436e build stub assemblies on FreeBSD from *UnknownUnix* (dotnet/corefx#30663)
* build stub assemblies on FreeBSD from *UnknownUnix*

* feedback from review. move RegisterNetworkChange to common file

* use netcoreapp-Unix for FreeBSD until we have real implementation


Commit migrated from https://github.com/dotnet/corefx/commit/fc1574ecf3d0b9a9035bc04abae465f27c510dab
2018-06-27 06:28:54 -07: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
Eric Erhardt 2053139c9a merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/1c91f96ec67a78a33268181d99a73a736b48c13e
2018-06-15 22:24:40 -05:00
Viktor Hofer 23f979bc4c Cleanup BinaryFormatterHelpers usage (dotnet/corefx#30439)
Commit migrated from https://github.com/dotnet/corefx/commit/03d643220955f86ef63c71d3bdd4cae05af1f586
2018-06-15 21:46:15 -04: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
Anirudh Agnihotry 58f1ad6f49 Cut String Allocations for filtered watcher files in Unix Systems (dotnet/corefx#29721)
* Cut Strings from OSX

* unix added

* removed string overload

* Ignore case comparison added

* using equals

* Pinvoke Corrected to remove managed string allocations

* overload for span addded and memory<char>[] to store rented arrays

* Feedback addressed and Filesystem.unix.exists moved to a new file

* Comment added, brackets are removed and using stringcomparison.oridinal


Commit migrated from https://github.com/dotnet/corefx/commit/c55aa6e313e68966f5d974163614181522caed35
2018-06-08 17:55:01 -07: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
Anirudh Agnihotry 46c3899a36 Added Filters Property to FileSystemWatcher class (dotnet/corefx#29315)
* Filters Property and tests added

* Tests fixed for osx

* Tests fixed for netfx and error message improved

* Tests fixed for netfx and error message improved

* Added tests for insert,contains ,removeat, index of , to string and gettype

* ToString removed and asser.equal corrected

* Comments and overload of epectevent added for netcoreapp

* Removed duplicate code

* setup and execution separated

* Expected patshs argument added

* ExpectNoEvent Added, negative added for all the test , expected path problem corrected

* handler

* Storing tuple and Unexpected Events

* name added to return values tuples


Commit migrated from https://github.com/dotnet/corefx/commit/9f2377fcd4e46f2c607d03672ed0bb92fe9cb68e
2018-05-15 01:03:38 +05:30
Marco Rossignoli 4110b40d54 Replace files with CoreLib mirror (<30% differences) (dotnet/corefx#29433)
* remove duplicates

* remove unused Interop.GetFullPathNameW.cs

* revert TupleExtensions.cs for netfx incompatibility

* replace coreclr merged

* replace constants conflicts


Commit migrated from https://github.com/dotnet/corefx/commit/5168f541d4def7c54e490a685ff5dc0e3f90e91a
2018-05-02 06:51:46 -07:00
Jeremy Kuhne 383d9ef979 Cut string allocations for filtered watcher files (dotnet/corefx#29227)
* Cut string allocations for filtered watcher files

This changes the Win32 watcher code to not allocate strings until after we've matched the name and know that we're going to actually fire an event.

Unix code can be changed to encode into a temporary buffer to get a similar reduction. I'll open an up-for-grabs issue on it.

Flip a test to have expected in the expected argument.

* Move loop inside fixed statement

* Move locals inside fixed block.


Commit migrated from https://github.com/dotnet/corefx/commit/11a12e6538a0a024c3adfb944c3983c0d66c3768
2018-04-20 18:36:12 -07:00
Marco Rossignoli 528e91dabf Replace identical files with CoreLib mirror (dotnet/corefx#28593)
Commit migrated from https://github.com/dotnet/corefx/commit/5041dbb272ae05b360db538cf62fc2847277fd7e
2018-04-17 16:05:44 -07:00
Jeremy Kuhne 7b52244b37 Use FileSystemName in FileSystemWatcher (dotnet/corefx#28220)
* Use FileSystemName in FileSystemWatcher

- Uses newer spanified version in FileSystemName
- Doesn't allow extended match chars `<`, `>`, `"`  as these are legal in Unix

* Plumb through the case sensitivity

* Update tests

* Tweak test for netfx

* Tweak the comment to be a bit more readable


Commit migrated from https://github.com/dotnet/corefx/commit/fcfb556ebf99ed551c02d0146c805e792b264cf2
2018-03-20 21:43:47 -07:00
Jeremy Kuhne 8dc5e67384 Cleaning out dead code (dotnet/corefx#27150)
Also refactor Unix attribute handling a bit to be more consistent and
ensure that we don't make unnecessary addtional filesystem calls.

Commit migrated from https://github.com/dotnet/corefx/commit/16f26ba855f5cc6d52a738e8bc3856c6f77cf761
2018-02-14 22:49:17 -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
Jeremy Kuhne 3307889b0c Fast file enumeration for Windows (dotnet/corefx#25426)
* Fast file enumeration for Windows

Implements an optimized, low allocation replacement for file enumeration on Windows. In preliminary tests this improves performance at least two fold, particularly for recursive searches.
Removes aggressive filter validation.
Copies and cleans up filename matching code from FileSystemWatcher.
Add length setter for ValueStringBuilder.
Remove Unix .. check for enumerable.

Commit migrated from https://github.com/dotnet/corefx/commit/eb0d4388c339288a589bdd7f5e0c9fcd61da4362
2017-11-30 15:46:56 -08:00
Marco Rossignoli 10a39d487c Improve InvalidDirectory error in FileSystemWatcher (dotnet/corefx#25485)
Another place where message could be more precise on FileSystemWatcher.
Fixes dotnet/corefx#24817

Commit migrated from https://github.com/dotnet/corefx/commit/771136cc013f8ac833f005e7193428e71966c5fe
2017-11-27 11:15:00 -08:00
Marco Rossignoli b95aec5c1a Fix misleading exception message, cleanup code (dotnet/corefx#25211)
* Fix misleading exception message, cleanup code dotnet/corefx#24817

* Fix misleading exception message, cleanup code dotnet/corefx#24817

* Fix misleading exception message, cleanup code dotnet/corefx#24817

* Fix misleading exception message, cleanup code dotnet/corefx#24817

* Fix misleading exception message, cleanup code dotnet/corefx#24817

* Revert "Fix misleading exception message, cleanup code dotnet/corefx#24817"

This reverts commit dotnet/corefx@87e87a1e34.

* Revert "Fix misleading exception message, cleanup code dotnet/corefx#24817"

This reverts commit dotnet/corefx@05f4a5a627.

* Revert "Revert "Fix misleading exception message, cleanup code dotnet/corefx#24817""

This reverts commit dotnet/corefx@4e3516910a.

* Fix misleading exception message, cleanup code. fixes dotnet/corefx#24817

* Fix misleading exception message, cleanup code. fixes dotnet/corefx#24817

* Fix misleading exception message, cleanup code. fixes dotnet/corefx#24817

* Fix misleading exception message, cleanup code. fixes dotnet/corefx#24817

* Fix misleading exception message, cleanup code. fixes dotnet/corefx#24817

* Fix misleading exception message, cleanup code dotnet/corefx#25211


Commit migrated from https://github.com/dotnet/corefx/commit/421306d0aa0f3aaa53c22188e7fedec6d7125e98
2017-11-19 05:54:45 +00:00
Jeremy Kuhne 4c7142aaec Clean up CreateFile usage. (dotnet/corefx#25318)
* Clean up CreateFile usage.

The "safe" create file was specifically targetted at FileStream and doesn't apply to remaining usages in FileSystem.

Also collapse a few unnecessary methods.

* Missed a file.

* Related UAP changes

* Remove unnecessary qualifiers.


Commit migrated from https://github.com/dotnet/corefx/commit/c3abf82d27ae168cfdb5965bb1a28185800a22ca
2017-11-17 18:20:39 -08:00
Stano Peťko 1a70106b96 File path is in IO exception messages (dotnet/corefx#25195)
* Added path to message Argument_InvalidPathChars.

* Added path to message IO_PathTooLong.

* IO_PathTooLong - separate message when path is empty.

* Added argument reference to message.


Commit migrated from https://github.com/dotnet/corefx/commit/51da21f9934c63216a8d7a2eb27ec5aa97944600
2017-11-14 23:09:24 -05:00
Frederik Carlier a1d44f82ce Fix casing of .uap (dotnet/corefx#25185)
Commit migrated from https://github.com/dotnet/corefx/commit/025230bc5dacab6d012a537c583003ea96381c97
2017-11-12 22:36:21 -05:00
Viktor Hofer fcc00e81f3 Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)
* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors


Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
2017-10-27 18:00:52 +02:00
Kasper Fabæch Brandt 58ea9bfc83 Make FileSystemWatcher tests tolerant of spurious/extra events on all platforms. Fixes dotnet/coreclrdotnet/corefx#14154. (dotnet/corefx#24406)
Commit migrated from https://github.com/dotnet/corefx/commit/8665e8bbd98cc47bf4bcfdc7c2939c477953d85c
2017-10-03 14:38:04 -07:00
Paulo Janotti 6dca35f789 active supress coreclr dotnet/corefx#14154 (dotnet/corefx#24305)
Commit migrated from https://github.com/dotnet/corefx/commit/9c18f4b74d61fd86dd1f01f5d512474a08adee99
2017-09-28 10:10:01 -07:00
Paulo Janotti fe84978ce5 [WIP] Removing CreateFileW from UWP (dotnet/corefx#24297)
* [WIP] Removing CreateFileW from UWP

* CR: move conditional to its own ItemGroup

* removed pinvoke exceptions for Runtime.Extensions

* Fixed condition for CreateFile ItemGroup

* exception still needed for netstandard


Commit migrated from https://github.com/dotnet/corefx/commit/a989d4f91cf4208b7a2481d120498a581328eb1d
2017-09-28 06:56:20 -07:00
Dan Moseley b27ba97af5 Rename IsWinRT to IsInAppContainer (dotnet/corefx#23935)
* Rename IsWinRT to IsInAppContainer

* Grep error


Commit migrated from https://github.com/dotnet/corefx/commit/8d51233795da222041c23d33b1eb44bbe458d0eb
2017-09-11 02:57:28 -04:00
Brian Chavez 232a1dfac0 Grammar check - "a [a,e]" rule. (dotnet/corefx#23697)
* Grammar check - "a [a,e]" rule.

* Corrected "a attributes" to "an attribute"


Commit migrated from https://github.com/dotnet/corefx/commit/be75987c628347e1d44bba15c5272ade3dcfa65c
2017-08-31 09:29:39 -04:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* 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
2017-08-10 22:37:36 -07:00
Ian Hays ebd5caab49 Add FSW tests for two set NotifyFilters
Commit migrated from https://github.com/dotnet/corefx/commit/77883e33b94164a318eb128605340dc2e61cd358
2017-08-07 16:43:18 -07:00
Ian Hays af8f8840b0 Add FSW file/directory event filtering to Linux
Because we are using inotify as the underlying implemenation for FileSystemWatcher on Linux, we can not only raise events for files or only raise events for directories, so we have to allow events for both to be raised regardless of NotifyFilters.

However, inotify does tell us that if an event occurred on a directory or on a file after the event has been raised. Since this is after filtering has already been done, we forward that event regardless of the NotifyFilters. This commit passes NotifyFilters to the RunningInstance that forwards the events and adds in some manual filtering after the fact. It isn't quite the same as filtering through the native call, but it does bring us closer to the Windows behavior.


Commit migrated from https://github.com/dotnet/corefx/commit/541f8e1535466c94b798e4e0177b834d1c3210da
2017-08-04 14:23:19 -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
Jose Perez Rodriguez fb0f360046 Disabling FileSystemWatcher test on uap
Commit migrated from https://github.com/dotnet/corefx/commit/5fe6b5a61d2ef5ec5b813683a6c91a874909c675
2017-06-15 16:51:56 -07:00
Dan Moseley 64f96fdd75 Update Pinvoke baselines to match latest modernapis.xml entries (dotnet/corefx#21028)
* Pinvoke updates

* S.S.AccessControl

* csp

* Networking

* Add issues

* comment

* Remove memory mapped file baseline

* Fix RtlGetVersion

* Remove unnecsesary baseline

* Remove dead condition

* Add comments

* Update buildtools

* Add GetKeyState to OneCore baseline

* baselines

* Fix violation in RI


Commit migrated from https://github.com/dotnet/corefx/commit/51a6f64004c28db7343e5c8605458f26bb057a18
2017-06-14 17:24:06 -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 StJohn eb4fbea10f Merge pull request dotnet/corefx#20322 from ericstj/updateConfigurations
Update configurations

Commit migrated from https://github.com/dotnet/corefx/commit/2a1751d92d3124c3a34ba28839f1a624cec1e0a9
2017-05-26 12:28:01 -07:00
Santiago Fernandez Madero e8c0db60b4 Update buildtools and extensions and do tests cleanup for new attributes behavior (dotnet/corefx#20333)
* Update buildtools and extensions and do tests cleanup for new attributes behavior


Commit migrated from https://github.com/dotnet/corefx/commit/bc73a9b7ca2a644efd9fc3cb51dde3bc3726ecd7
2017-05-26 02:13:52 -05:00
Morgan Brown c748507f03 ISerializable cleanup (dotnet/corefx#20220)
* 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
2017-05-25 12:38:09 -07:00
Eric St. John af1d155bf6 Remove help VS comments
Many CSProjs included the comment
`<!-- Help VS understand available configurations -->`

These aren't handled well by the tooling that rewrites projects and weren't providing much value.

Remove them.


Commit migrated from https://github.com/dotnet/corefx/commit/5ba948d13e3177c2c7075b6b00791e574bfa0860
2017-05-25 11:10:27 -07:00
Gaurav Khanna f167b0de93 Merge pull request dotnet/corefx#19842 from ericstj/incrementVersions
Increment versions post 2.0

Commit migrated from https://github.com/dotnet/corefx/commit/45d30e6bdf44d4a0e55df5a6064e8275cdf14d25
2017-05-17 12:03:29 -07:00
Morgan Brown 975ad3c685 Scale back [Serializable] CoreFX types (dotnet/corefx#19742)
* 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
2017-05-16 18:16:29 -04: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
FAREAST\v-lijiay 6b76c4a669 Disable failed test for issue 18308.
Commit migrated from https://github.com/dotnet/corefx/commit/ad0dd782ee220cca6637546f532e667dbf721063
2017-05-05 02:08:45 -07:00
Ian Hays d6054244af Fix 2 failing IO tests. (dotnet/corefx#18952)
* Fix 2 failing IO tests.

The MMF test is failing from a purposeful design change around the default FileShare being used in CreateFromFile. The FSW tests are failing intermittently from inconsistency so I'm reverting my recent change to move them to innerloop and reduce their wait time.

* Add issue number to Skip tag for MMF test


Commit migrated from https://github.com/dotnet/corefx/commit/9f35bcfb7728345151147e72b8264773085e56a0
2017-04-26 13:55:37 -04:00
Stephen Toub 876ce9c240 Expose Task.IsCompletedSuccessfully
Commit migrated from https://github.com/dotnet/corefx/commit/5f7986c01ee2a31abe0b54f89d5f2387c64110e5
2017-04-19 08:07:24 -04:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -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
danmosemsft 436098c2d8 Disable test for UWP
Commit migrated from https://github.com/dotnet/corefx/commit/221ebe188de359a5cd6a7f229ab20cfcc021172c
2017-04-06 15:58:04 -07:00
Alex Perovich fc4bb66b9f Fold or rename *.netstandard.cs files (dotnet/corefx#17697)
* Win32.Primitives

* System.Collections.Specialized

* System.Diagnostics.Process

* System.Globalization

* System.Globalization.Calendars

* System.IO

* System.IO.Compression

* System.IO.FileSystem

* System.IO.FileSystem.Watcher

* System.IO.Pipes

* System.Linq.Expressions

* System.Net.Primitives

* System.Net.Requests

* System.Net.Sockets

* System.Net.WebHeaderCollection

* System.ObjectModel

* System.Reflection

* System.Reflection.Emit

* System.Resources.ResourceManager

* System.Runtime

* System.Runtime.Extensions

* System.Runtime.Handles

* System.Runtime.InteropServices

* System.Security.Cryptography.X509Certificates

* System.Text.Encoding

* System.Text.Encoding.CodePages

* System.Threading

* System.Threading.Tasks

* System.Threading.Thread

* System.Threading.Timer

* System.ValueTuple


Commit migrated from https://github.com/dotnet/corefx/commit/023b6bdd6086271cbb6ca932c33d7783f8406062
2017-03-30 17:28:22 -05:00