* Include NetCoreAppCurrent configs in packages
The NetCoreAppCurrent configurations were omitted from packages to avoid
ever growing packages. Now that we adhere to the support policy for
packages we don't need to exclude them anymore as the policy defines a
baseline for .NETCoreApp configurations.
This will remove an artificial difference when source building the
repository and also make it so that partner repositories which don't
depend on a transport package like windowsdesktop (winforms) receive
the very latest assets that are included in the shared framework as
well.
* Fix package validation for non exposed inbox libs
* Remove DynamicallyAccessedMembers on JsonSerializer
Fix#52268
* Remove DynamicallyAccessedMembers from System.Net.Http.Json
These are no longer required since System.Text.Json doesn't have these annotations anymore.
* Update PreviousNetCoreApp baseline for attribute removal
* Fix trimming tests on browser-wasm
* Fix Json tests on EnableAggressiveTrimming leg
* Add JSON source-gen mode that emits serialization logic
* Fix System.Net.Http.Json test issues
* Fix System.Text.Json test issues
* Make check to determine if fast-path can be used more efficient
* Address review feedback
* Improve derived-JsonSerializerContext detection and support
* Address review feedback; reenable tests, and simplify object metadata
init
* Fix formatting
* Add Put/Get methods to HttpClientJsonExtensions that take type metadata
* Make JsonContentOfT derive directly from HttpContent
* Fix linker error
* Rename Helper to JsonHelpers
* Add granular suppressions for linker warnings
* Add suppressions for mono SPC
* Misc additions
* Add suppressions for Debug config
* Fix Android xml file
* Include System.ComponentModel.Annotations suppressions
* Add suppressions for System.Security.Cryptography.X509Certificates on Linux
* Fix TargetOs exists check
* Add IL2077 to System.Security.Cryptography.X509Certificates on Android
* Generalize some System.Security.Cryptography.X509Certificates suppressions to 'NonWindows'
* Remove ref to catch-all System.Security.Cryptography.X509Certificates file
* Misc clean up and some feedback
* Use ILLinkDirectory in CreateRuntimeRootILLinkDescriptorFile.targets
* Update paths for directories
* Set TargetPath as part of include
* Delete bin-placing TODO
* Include more xml files during per-library run
* Include more xml files during per-library run, pt 2
* Include more xml files during per-library run, pt 3
* Try including System.ComponentModel.Annotations based on BuildingNETCoreAppVertical
* Switch to BuildAllConfigurations
* Include xml extension in file paths
* Remove version number from assembly suppression files
* Delete ILLink.Suppressions.xml
* Try removing IL2035 nowarn
* Remove version from Microsoft.VisualBasic.Core assemly name
* Add transitive CompilerServices.Unsafe dependency
for System.Memory and System.Threading.Tasks.Extensions package
references. Adding the dependency as a P2P to prefer the live asset
over the prebuilt.
* Add JsonNumberHandling.AllowReadingFromString as a JsonSerializer web default
* Add test assertion for number handling option in S.N.H.Json
* Test number-as-string behavior in System.Net.Http.Json
* Move content type verification to a later stage
Fix#38713
* Rename ValidateContent to ValidateContentType
Fix#38713
* Get rid of content type check
* Add newline at end of the file
* Rename TestValidMediaTypes to TestVariousMediaTypes
- Remove depprojs which currently binplace external references into the RefPath folders in favor of PackageReference and PackageDownload items.
- Build all configurations by default when building an individual project (either on the CLI or inside VS) same as with the official SDK. This enables .NETFramework Test Explorer support.
- Centrally define libraries that compose the shared framework instead of in each Directory.Build.props file to be able to build the targeting pack first and consume it in the OOB libraries.
- Use ProjectReferences to reference OOB projects. Compile against the reference assembly but use the implementation assembly app-local during runtime.
- Remove OOBs from the testhost and remove the testhost folder for .NETFramework as it isn't required anymore.
- Only binplace for $(NetCoreAppCurrent) to compose a) the targeting pack, b) the runtime pack, c) the testhost, d) a full closure for the shims.
- Use Targeting Packs for OOB projects (with their implicit assembly references) but still explicitly define granular references for .NETCoreApp configurations (DisableImplicitAssemblyReferences switch). Use the implicit targeting pack references in some Microsoft.Extensions.* cases.
- Remove placeholder configurations as they aren't needed anymore with explicit P2Ps vs Targeting Pack references.
- Remove implicit assembly references (ie for .NETFramework, mscorlib)
- Remove AssemblySearchPath hacks that were introduced with b7c4cb7 as the targeting pack is now used by default.
- Reduce unnecessary .NETFramework configurations that were added to run tests in favor of the already existing ref&src configurations.
- Stop hardcoding the paths for wasm assemblies and use the returned TargetPath of the ProjectReferences.
- Addressed formatting (ItemGroups, References at the bottom of the project file, ordering of references, use LibrariesProjectRoot instead of a relative path, unnecessary AssemblyName and RootNamespace properties which are identical to the project name, ordering of tfms)
- Revert "fix clean (#33758)"
* Forward CancellationToken to methods that can take it
* Address suggestions
* address suggestions
* Revert using
* Make rule 2016 a warning in runtime
* Extra cases found
* Revert changes that should not pass a token, change rule to info to verify build and test CI results
* Pass CancellationToken.None to base.CreateContentReadStreamAsync, as in its default overload
* Address stack overflow in MultipartContent
* HostingAbstractionsHostExtensions address using
* Update nuget package version to latest, Info->Warning again, fix one more case.
* System.Diagnostics.ProcessWaitState.Unix token
* Remove two unnecessary tokens
* Porting new netfx configurations for packages
* Add Netfx configurations to Microsoft.Extensions and missing System packages
* Making sure net461 configurations build against targeting pack assembly versions
* Undo changes to add netfx configurations on reference projects that don't ship in their package
* Fix issue with M.E.FP.P package by removing NetStandard.Library metapackage dependency
* Fix issues with depending on higher version than the one available in net461
* Disable UTF8String verifyClosure on package
* Undo changes to Microsoft.XmlSerializer.Generator
* Update src/libraries/Microsoft.Extensions.FileProviders.Physical/src/Microsoft.Extensions.FileProviders.Physical.csproj
Co-authored-by: Eric StJohn <[email protected]>
Co-authored-by: Eric StJohn <[email protected]>
All of the tests start a socket-based loopback server which doesn't work on WebAssembly.
We can do the tests using a custom HttpMessageHandler instead of the loopback server as well.
- Disallow Encoding.GetEncoding("utf-7", ...) from returning an Encoding instance
- Minor code cleanup by removing unused ifdefs
- A compat switch is available to re-enable Encoding.GetEncoding("utf-7", ...)
Changes:
- enabled `runtime (Libraries Test Run release mono Windows_NT x64 Debug)` CI lane (Windows Nano Server CI leg is disabled);
- enabled the tests that pass;
- marked failing test assemblies/classes/methods with `ActiveIssue` attribute using respective GH issues;
- removed CoreFX.issues_windows.rsp file and related mono rsp arguments.
Fixes#1980
* Add System.Net.Http.Json related projects
* Add JsonContent, HttpContent extensions, and tests.
* Rename PErson.cs to Person.cs
* Adding package for System.Net.Http.Json library
* Improve tests, minor fixes and code clean-up.
* Remove annotations and code clean-up.
* Add draft description and common types to NuGet pkg.
* Addres nullability issues on API surface area.
* Add missing configurations to projects
* Addressing most of the feedback.
TODO: Implement transcoding for non-UTF-8 content.
* Fix csproj formatting and use open StrongNameKeyId
* Address API review comments.
* Add transcoding support for .NET 5
* Port TranscodingRead/WriteStream to netstandard2.0
* Remove netcoreapp dependencies on TranscodingStream classes.
* Mark TransportContext as nullable to fix CI issues.
* Addres issues raised by new nullablity awareness code in System.Net.Http
* Re-enable LoopBackServer tests, address suggestions and code clean-up.
* Use default JsonSerializerOptions when passed-in is null
* Escape a few remaining Unicode characters in test files.
* Address nits.
* Validate inputType.IsAssignableFrom(inputValue.GetType()) on JsonContent ctor.
* Allow only ContentTypes application/json and application/<subtype>+json.
* Address comments.
* Add Unit.Tests project
* Make mediaType argument optional on JsonContent.Create
* Address latest comments.
* Perform case-insensitive comparisons on MediaType instead of ToLower.
* Address comments related to Transcoding classes.
* Address feedback
* Document TranscodingWriteStream.MaxByteBufferSize
* Replace MediaTypeHeaderValue.Parse with .ctor since it performs better.
Co-authored-by: Jose Perez Rodriguez <[email protected]>