I'm working on a personal project with VS 2015/Universal app solution and i try to follow this code sample :
Asynchronous Server Socket Example
But when i want to create a new IPHostEntry
or make a Dns.GetHostName()
VS don't find the assembly.
I have these references on my solution explorer :
Analyzer
Microsoft.ApplicationInsights
Microsoft.ApplicationInsights.PersistenceChannel
Microsoft.ApplicationInsights.WindowsApps
Microsoft.NETCore.UniversalWindowsPlatform
Universal Windows
and the using directives following :
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
using System.Net.Sockets;
I tried also to add System.Net dll
manually (located in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6) to the solution references but i got an error telling me that the component is already automatically added by the generation system.