Age | Commit message (Collapse) | Author |
|
We need to ifdef out the `Editor` attribute since System.Drawing.Design is not there on mobile.
|
|
They're moved to System.Drawing.Common.dll in Mono 2019-02.
|
|
|
|
* Mono specific changes to System.Drawing and System.Net
* remove redundant conditions
* make HttpVersion non-static for mono
|
|
|
|
* Added DCS Tests for System.Drawing Types
* Revert "Added DCS Tests for System.Drawing Types"
This reverts commit 20288796a73d2c90747297819344a53174144318.
* Move Utils.cs to CommonTest project
* add references to common helper method file and Utils.cs, add tests
* update references to Utils.cs
* fix indentation
|
|
|
|
|
|
|
|
Contributes to https://github.com/dotnet/corefx/issues/6185.
|
|
|
|
|
|
|
|
UpdateVSConfigurations (#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
|
|
|
|
* 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
|
|
|
|
|
|
* Don't consider 0 a valid KnownColor
Fixes #22819
* Remove KnownColor.First and KnownColor.Last
Fixes #22820
* Remove filter in FillConstants for gettable properties.
Always true, replace with assert.
* Remove always-true check in GetHue()
* Remove check in KnownColorToArgb and KnownColorToName already done in caller
* Minor opt on min & max: Don't check something is < min if it is > max
* Make KnownColor tests corefx-only.
* Out-of-range KnownColor tests as theories
|
|
* 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
|
|
# Conflicts:
# src/Microsoft.Win32.Primitives/src/System/ComponentModel/Win32Exception.cs
# src/System.ComponentModel.TypeConverter/src/System/ComponentModel/BindingList.cs
# src/System.DirectoryServices/src/System/DirectoryServices/DirectoryServicesCOMException.cs
# src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs
# src/System.ObjectModel/src/System/Collections/ObjectModel/ReadOnlyObservableCollection.cs
|
|
* Move AssertExtensions to Corefx.Private.TestUtilities
* Update csprojs
* Fix Linq.Expressions uapaot build
|
|
# Conflicts:
# src/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/common/DirectoryException.cs
# src/System.Drawing.Common/src/System/Drawing/Printing/Margins.cs
# src/System.Drawing.Common/src/System/Drawing/SystemBrushes.cs
# src/System.Drawing.Primitives/src/System/Drawing/SizeF.cs
# src/System.Net.WebHeaderCollection/tests/WebHeaderCollectionTest.cs
# src/System.Runtime.CompilerServices.VisualC/src/System/Runtime/CompilerServices/Attributes.cs
|
|
AssertExtensions (#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 #21463
|
|
<--> Desktop and adding full binary mode tests (#21223)
* Adding TypeForward to PathListComparer, CookieCollection member, full-mode tests, SizeF publickeytoken fix
* Making FormatterAssemblyStyle explicit
* Update blobs after CompareInfo culture field added to serialization payload
* Added blob integrity check
* Remove unnecessary operation which has no impact on netfx serialization
* Putting pragma around the unused field...
* Setting m_version value to include it in the serialization payload. Remove static versions for blob comparison
* Update compare logic
* update blobs
* disable checking if blob has changed
|
|
|
|
* Add CoreFx.Private.TestUtilities solution file
* Update VS configurations across corefx
|
|
* wip: add stubs for custom isEqual
* Updated blobs, small code refactoring, disabled CookieContainer test
* Fixed netfx471 detection
* add custom equals for graph with cycles
* fix few more comparers
* Merge
* fix few more test cases
* fix few more types, fix GetExtensionMethod to work with parameters with same type name but different generic params
* finish tests (2 comparisons are commented out: search for TODO)
* Adding TypeForward for DictionaryNode
* Updating blobs
* Update Cookie hashes, adding TypeForwards, removing unnecessary equality checks for CookieCollection
* Reenabling SortedDictionary test
* Update blobs
* make cookie.Timestamp to roundtrip correctly
* regenerate netfx and corefx blobs to account for Cookie.Timestamp change
* make regex fix the blob for ObjectWithArray
* fix ObjectWithArray netfx test failure
* Replacing Dictionary with Hashtable for desktop serialization support
* Update blobs
* Fixing a lot of TypeForwards, adding another hashtable test, other fixes
* Adding a few more TypeForwardedFrom attributes
* Updating the coreclr version, disabling CookieContainer test
* Update blobs
* Disabling CompareInfo test --> waiting for coreclr
* generate test cases
* update blobs, comment out not working cases
* fix null equality checks for new test cases and reenable them
* PR feedback addressed
* Fixed a typo...
* Updating used coreclr version, enabling compareinfo test again
|
|
|
|
Consolidate KnownColorTable.cs into a single shared source file
|
|
If GetProperties returns items in different orders on multiple calls, it's possible for at least one of the tests to fail. Just cache the results.
|
|
|
|
profiles
|
|
|
|
TypeForwardFrom to serialiazable types (#20697)
* Manually build mscorlib shim to allow for internal type forwards
* prepare tests for netfx->core deserialization changes
* update netfx serialized data
* change hash updater so it doesn't use hard-coded path
* Code cleanup for binary serialization
* Changed ListT to ArrayList in CookieCoolection for cross serialization
* Merge
* Changed observablecollection typeforwards that already had typeforwards on netfx
* Adding ValueTuple blobs for netfx471
* Add internal types which need to be forwarded
* Pull mscorlib shim in along with windows.winmd
To build UAP refs and libs we need an mscorlib shim. So for the build
we pull one in from packages and it will get overwritten when we build
the final one as part of our shim builds
* Removed not needed typeforward and added description
* Remved typeforwards from nested types
* Fixed generic type syntax
* Updated coreclr version, ifdefed imports for netcoreapp
* disable netfx serialization for now
* Merge error fixed
* Update blobs after coreclr changes
* Adding ValueTuple manual typeforwards
* Renamed serialization variables for SortedSet
* Disabling TreeSet<,> serialization support (for now)
* Exception internal data storage typeforward added
* Fix type conflict for mscorlib shim in uapaot configuration
* Split the runtime and ref mscorlib shim
We need to build the ref mscorlib shim only against the reference
assemblies so we still build in shims.proj. However the runtime
mscorlib shim needs to have access to internals so we build it against
the runtime implementation using a manual project.
|
|
* Issue #18017 Operators * / for Size and SizeF
* Fixes as per review comments.
* Review fixes, remove reciprocal mult for div
* Review fixes.
* Review fixes.
|
|
Also, use Open key for System.Drawing.Common.
|
|
|
|
This change adds a new library, System.Drawing.Common, which supports a
large subset of the System.Drawing API. It is a direct port of the code
from the .NET Framework codebase. The code has been cleaned, formatted,
and sanitized to match the code style of corefx, but is otherwise very
similar to the .NET Framework version. There are a few key differences:
* TypeConverter's have been omitted for now. If we want to add these to
.NET Core, we should add them to the TypeConverter library, rather than
System.Drawing.Common itself.
* Some parts of the library do not respond to "System Events", because
they are not yet implemented in .NET Core. This means that fonts and
colors will not automatically update when the system defaults change,
as they do in .NET Framework. The code is still there, but behind the
feature flag "FEATURE_SYSTEM_EVENTS".
* Various attributes have been removed from the codebase, because they are
no longer applicable. Examples:
* Designer-related attributes (DefaultProperty, DefaultEvent, Editor,
etc.)
* CAS-related attributes. CAS-related method calls (Security demands and
asserts) have also been removed.
There is still further cleanup that can be done in order to match the
style and structure of corefx. For example, the Interop code should be
reorganized to match other BCL libraries.
NOTE: This implementation will only work on Windows, and not in UWP. This
is a strictly compatibility-driven feature. Any changes made to it should
not significantly diverge from the .NET Framework implementation.
Libraries should only take a dependency on System.Drawing.Common if they
are relying on legacy components from .NET Framework; newly-written code
and features should rely on modern alternatives.
|
|
|
|
This reverts commit 6dd451f51451a7d0ceea6104b51bd17005e9a0e6.
|
|
Increment versions post 2.0
|
|
* 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
|
|
|
|
* 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.
|
|
* Skip test on netfx
* Fix build
* build2
* build3
|
|
Fixes #17930
|
|
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
|
|
Kept KnownColors as an internal enum for implementation ease but
removed the public surface area for it.
Remove SystemColors from .NET Core
Fix TypeConverter tests to work on netfx and core
|
|
|