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

Referencing System.Net.Primitives with Target Framework .net standard v1.2 #27612

Closed
gokussx4 opened this issue Oct 11, 2018 · 2 comments
Closed
Labels
area-System.Net question Answer questions and provide assistance, not an issue with source code or documentation.
Milestone

Comments

@gokussx4
Copy link

The IPAddress type is not available even though the System.Net.Primitives package shows that should be included for v1.1 and higher.

To reproduce:

  1. Create a .net core library, set target framework to v1.2
  2. Browse nuget and install System.Net.Primitives (4.3.0)
  3. Attempt to use the System.Net.IPAddress class.
  4. Build fails

I must be doing something wrong, thanks for any help!

@karelz
Copy link
Member

karelz commented Oct 12, 2018

IPAddress is available in .NET Standard 1.3+: https://apisof.net/catalog/System.Net.IPAddress
You need to target higher version of .NET Standard to get access to it.

@karelz karelz closed this as completed Oct 12, 2018
@gokussx4
Copy link
Author

gokussx4 commented Oct 12, 2018 via email

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
None yet
Development

No branches or pull requests

3 participants