Visual Studio 2015 Community 无法解决
using Windows.Networking.Connectivity;
我尝试了不同类型的c#项目以及不同版本的.Net,包括3.5-4.5。
Visual Studio 2015 Community 无法解决
using Windows.Networking.Connectivity;
我尝试了不同类型的c#项目以及不同版本的.Net,包括3.5-4.5。
这个命名空间仅适用于通用Windows平台(UWP)。您可以在此处查看:https://msdn.microsoft.com/library/windows/apps/br207308
仅在2021年更新,您可以使用Microsoft.Windows.SDK.Contracts nuget包访问此API(以及其他API)。 在.NET 5中仍会遇到问题,但.Net Core 3.1可以正常工作。
Windows.Networking.dll
或Windows.Networking.Connectivity.dll
文件?请查看以下链接:http://www.solvusoft.com/en/files/missing-not-found-error/dll/windows/microsoft/windows-8-consumer-preview-iso-images/windows-networking-connectivity-dll/ - Ian