我在移动设备上有一个应用程序,它在台式机上连接到我的服务器应用程序,我在台式机上使用TcpListener,在手机上使用TcpClient。我试图添加对Windows8的支持,但微软似乎取消了它,现在我们应该使用StreamSocket作为TcpClient,使用StreamSocketListener作为TcpListener。我试图更改我的代码,但它甚至没有连接到我的TcpListener。(请注意,我在台式机上也使用了异步)。
我桌面上的TcpListener:
server = new TcpListener(Constants.DEFAULT_PORT);
server.Start
我已经创建了一个UserControl,并在其中定义了一个依赖属性Label。当我在一个控件中引用它时,我得到了错误The member "Label" is not recognised or is not accessible。我不明白的是,它在windows phone上运行得很好,但在将应用程序移植到windows8之后,它给出了这个错误。对windows8用户控件有什么不同的做法吗?请帮帮忙。
我在Windows8下运行VS2010。安装NuGet并运行包管理器控制台后,我收到以下消息:
Error: The Package Manager Console requires PowerShell 2.0 runtime, which is not detected on this machine. Please install the PowerShell 2.0 from http://support.microsoft.com/kb/968929 and restart Visual Studio.
我知道Windows3.0是随Windows8自动安装的,为什么会弹出这个错误信