嗨,我在编译插件时不断收到错误。该插件应该来自这里 - https://github.com/Microsoft/unityplugins,我找不到任何已编译的插件。我在尝试编译广告插件时遇到的错误是:
C:\users\brett\Desktop\Microsoft Ads\unityplugins\MainProjects\CommonSource\Microsoft.UnityPlugins.Common\Utils.cs(7,7): error CS0246: The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?) [C:\users\brett\Desktop\Microsoft Ads\unityplugins\MainProjects\Win10\Microsoft.UnityPlugins.Common\Microsoft.UnityPlugins.Common.csproj]
我尝试用解决方案寻找类似的问题,但似乎没有其他人遇到这个问题,即使代码直接从下载而不经修改运行。
根据问题列表和缺少拉取请求,此存储库中的插件尚未维护一段时间。
现在似乎更容易使用XAML手动将Microsoft Advertising
实现到您的游戏中。当您为应用程序生成UWP解决方案时,它将为您创建一个MainPage.xaml
文件。在这里你可以把AdControl
的本地Microsoft Advertising SDK。
你可以see in the documentation,你可以安全地修改文件,而不必担心下一个版本覆盖的更改。