C# Microsoft.Advertising.Mobile.Xna,命名空间中不存在Xna
我已经创建了一个移动应用程序,这是我的第一个应用程序,我正在学习如何使用windows phone应用程序,我想在其中插入广告 我看过这个网站: 但是当我使用Microsoft.Advertising.Mobile.Xna添加C# Microsoft.Advertising.Mobile.Xna,命名空间中不存在Xna,c#,wpf,windows-phone-7,visual-studio-2012,xna,C#,Wpf,Windows Phone 7,Visual Studio 2012,Xna,我已经创建了一个移动应用程序,这是我的第一个应用程序,我正在学习如何使用windows phone应用程序,我想在其中插入广告 我看过这个网站: 但是当我使用Microsoft.Advertising.Mobile.Xna添加时,我已经能够添加参考Microsoft.Advertising.Mobile和Microsoft.Advertising.Mobile.UI,但是我没有找到Microsoft.Avertising.Mobile.Xna 是否有其他方法插入由Microsoft PubCen
时,我已经能够添加参考Microsoft.Advertising.Mobile
和Microsoft.Advertising.Mobile.UI
,但是我没有找到Microsoft.Avertising.Mobile.Xna
是否有其他方法插入由Microsoft PubCenter创建的广告,我是否遗漏了有关Xna
?windows phone 7广告Sdk实施的以下步骤:
安装Microsoft广告SDK
向Microsoft pubCenter注册应用程序
在应用程序中嵌入ad控件
要在应用程序中实现AdControl,您可以尝试以下方法:
XAML:
在此之后,您可以在应用程序中看到测试广告
有关更多参考信息,请访问此处,您可以在此处找到好的样本。。。程序集:Microsoft.advisting.Mobile.Xna(在Microsoft.advisting.Mobile.Xna.dll中)版本:6.1.909.0-是否包含此版本?如果要添加.dll,我必须使用NuGet,我已尝试,但未找到。您只包含对dll的引用,NuGet在查找要添加的引用时不会进入其中,我找到了Microsoft.Advertising.Mobile
和Microsoft.Advertising.Mobile.UI
,但我没有找到Microsoft.Advertising.Mobile.Xna
我正在使用VS express 2012 for windows phone,这可能是我在引用管理器中找不到引用的原因吗?我以前从未使用过此dll。。你的本地机器上有吗?好的,谢谢。我会尽快接受你的回答,这正是我想要的!只是为了今晚少睡一觉,Xna只用于游戏应用程序,这是我在应用程序中没有找到它的原因吗?我在windows phone emulator中没有看到广告是正常的吗?还是我错过了什么?我发现:
我们在emulator中看不到广告。为了获得广告,我们需要将其部署到真实的设备上
<advertising:AdControl ApplicationId="test_client"
AdUnitId="Image480_80">
</advertising:AdControl>
xmlns:advertising="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"