Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw PlatformNotSupportedException in netstandard1.3 #396

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Mar 5, 2023

  • stop trying to use DCS in the JSON and XML formatters
  • if UseDataContractSerializer or !UseXmlSerializer:
    • CanReadType(...) and CanWriteType(...) always return false
    • ReadFromStreamAsync(...) and WriteToStreamAsync(...) always throw
  • change default XML formatter configuration to use XmlSerializer
  • adjust and disable tests in reaction
  • add tests of new netstandard1.3 behavior
  • nits:
    • correct namespace of SerializerConsistencyTests; was alone in previous namespace
    • s/DataContractFormatter/XmlSerializerFormatter/ to reflect actual XmlMediaTypeFormatter test actions

- stop trying to use DCS in the JSON and XML formatters
- if `UseDataContractSerializer` or `!UseXmlSerializer`:
  - `CanReadType(...)` and `CanWriteType(...)` always return `false`
  - `ReadFromStreamAsync(...)` and `WriteToStreamAsync(...)` always `throw`
- change default XML formatter configuration to use `XmlSerializer`
- adjust and disable tests in reaction
- add tests of new `netstandard1.3` behavior
- nits:
  - correct namespace of `SerializerConsistencyTests`; was alone in previous namespace
  - s/DataContractFormatter/XmlSerializerFormatter/ to reflect actual `XmlMediaTypeFormatter` test actions
@dougbu
Copy link
Member Author

dougbu commented Mar 6, 2023

/ping reviewers

@dougbu
Copy link
Member Author

dougbu commented Mar 6, 2023

Thanks @mconnew. Unfortunately, it appears only a select few have write access in this repo 😦 That means I need another reviewer.

@dougbu dougbu merged commit 6451d77 into aspnet:main Mar 7, 2023
@dougbu dougbu deleted the dougbu/platform.not.supported branch March 7, 2023 01:26
dougbu added a commit to dougbu/AspNetWebStack that referenced this pull request Mar 7, 2023
- follow up to aspnet#396
  (unsure why new FxCop and "spelling" errors didn't fail that PR)
dougbu added a commit that referenced this pull request Mar 7, 2023
* Use `msbuild` from VS 2022 if available
  - should ease local and TeamCity builds
  - make `%InstallDir%` unquoted (unlike `%vswhere%`)
    - shorten `%Path%` slightly
  - nits:
    - use script location more; no need to change directories

* React to new build issues
  - follow up to #396
    (unsure why new FxCop and "spelling" errors didn't fail that PR)

* Put `PortReserver` users into an xUnit collection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants