Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Compilation : using Systen.Net.Socket, system.net.primitives not found

$
0
0

Hi,

I use the prerelease protable library, create by microsoft,"System.Net.Socket" from nuget. (https://www.nuget.org/packages/System.Net.Sockets/).

When i try to use it, i go a compilation error on the TcpClient.ConnectAsync method.

I pass string argument to this one but one of the definition use an IPAddress structure and it seem that MSBUILD didn't succeed to found the System.Net.Primitives dll where the IPAddress seem to be locate.

error CS7069: Reference to type 'IPAddress' claims it is defined in 'System.Net.Primitives', but it could not be found.

The nuget package is correctly installed and configured.

When i change the CSPROJ to add the reference manually MSBUILD raised an error about the dll "System.Net.Primitives" that exist twice during the compilation process.

Someone had a solution ?

Someone know if there is a way to report this bug or to contact people that could solve the situation ?

Thanks


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>