My current specific situation is that I want to use DataContractSerializer Class in a library supporting .NETStandard1.3. I am unable to reference it in the library. The document gives me an impression that it is a part of .Net Standard Library. Could you anyone offer a tip on how to determine if a class is supported by .Net Standard Library?
Asked
Active
Viewed 1,586 times
3 Answers
4
The first version supporting that is .NET Standard 2.0.
You can search at apisof to find out what frameworks contain an API.

Cory Nelson
- 29,236
- 5
- 72
- 110
2
Your one-stop shop for all .NET-based APIs .NET API Browser
- select .Net Standard
- select version
- Enter your search: DataContractSerializer
You find DataContractSerializer in .Net Standard 2.0 only

M.Hassan
- 10,282
- 5
- 65
- 84
-
This is neat. Thanks. – Hong Oct 03 '17 at 12:26
1
You are looking at the .NET Core docs.
In the .NET Support chart:
you can see that NetStandard1.3 does not support .NET Core. You'd have to move up to 2.0

Jonesopolis
- 25,034
- 12
- 68
- 112
-
Thanks a lot for the elucidation. How do you tell it is the .NET core docs. Why doesn't .Net Standard 1.6 support it? According to your chart, netstandard 1.6 supports .NET Core 1.0. Probably I do not fully understand the chart. – Hong Jan 16 '17 at 20:02
-
sorry - you're right, if you target netstandard1.6 you can use .net core 1.0 – Jonesopolis Jan 16 '17 at 20:05
-
This answer has the relationship inverted -- .NET Core supports .NET Standard, not the other way around. So .NET Core can have additional features that are not in .NET Standard. – Cory Nelson Jan 16 '17 at 20:18
-
Now, I am getting "error : Your project is not referencing the ".NETPlatform,Version=v5.0" framework. Add a reference to ".NETPlatform,Version=v5.0" in the "frameworks" section of your project.json, and then re-run NuGet restore." I get this for a brand new libary targeting netstandard 1.6 – Hong Jan 16 '17 at 20:32