Wpf Could not load file or assembly System.Net.Sockets
Add to wpf project file
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
Mostly Robot
Add to wpf project file
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>