我想打开web浏览器使用XNA的WP7,我想我必须使用WebBrowserTask
来做到这一点,但我不知道如何添加Microsoft.Phone
我试着右击参考文献,但我找不到参考文献Microsoft.Phone
我试着在我的代码中输入它,但它仍然不起作用。有人知道为什么吗?我的方向对吗?
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
using Microsoft.Phone; // <-- Error here
我使用vs2010 Express for windows phone, WP SDK 7.1.1和windows 8 Pro
好的,在我的PC上这个库位于这里:
C:Program FilesReference AssembliesMicrosoftFrameworkSilverlightv4.0
ProfileWindowsPhone71Microsoft.Phone.dll
可以从解决方案资源管理器中添加:
References -> Add reference -> Browse
,然后粘贴路径到文件名文本框。