简体   繁体   中英

Windows Phone 8 Missing C# Networking Classes?

I am trying to write a Windows Phone 8 app in C# but I'm getting lots of 'are you missing a using directive or an assembly reference?' errors. It seems Windows Phone 8 is missing many C# networking classes.

What can I do to fix this?

The HttpClient class is not included by default in Windows Phone development. It is available as a separate NuGet package though. Add a reference to that NuGet package and you should be good to go

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM