How to use using Windows.Networking.Connectivity?

Saga 431 Reputation points
2021-04-24T02:37:55.233+00:00

Hi all,

Using VS 2015 with Win 10. I have found some interesting code that I may be able to use in my project. It includes the line:

using Windows.Networking.Connectivity;

However, when I attempt to type it into my source, Intellisence does not find "Windows". I thought I might be missing a reference, so I proceeded to do this. I did not find Windows.Networking.Connectivity in the references list, so I went to the Browse option. There I did find the corresponding entry, but when I select it and then proceed to add it, it gives me an error:

90885-refinsterror.png

I am not sure what I am missing here. Do I need to install a separate component? Thanks! Saga

Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Artemiy Moroz 271 Reputation points
    2021-04-24T16:18:13.82+00:00

    hi! This is for use in UWP apps.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Saga 431 Reputation points
    2021-04-25T00:10:59.233+00:00

    Thanks. OK, understood, bummer.

    I am trying to get a list of available WiFi networks and am finding it rather difficult. The titular namespace has the ability to do this, but mine is a Windows Forms App. I am going to start another thread with this more specific question. Thanks for your input. Saga

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.