如何解决XXXX 与 monoandroid10.0 不兼容
我有一个 Xamarin 项目,它在我的本地机器上构建得很好,但没有在 azure 服务器上构建。有没有人见过这个?
// Typescript fragment implementation of visitor with ability to add
// semantic errors to error stream
export class MYLANGUAGETranslator
extends AbstractParseTreeVisitor<MYNODETYPE>
implements MYLANGUAGEVisitor<MYNODETYPE> {
/**
* Adds a second pass error to the error stream.
*
* @param ecx The context token which triggered the error
* @param msg The error message
*/
semanticError(ecx: ParserRuleContext,msg: string): void {
customErrorListenerInstance.SyntaxError(undefined,undefined,ecx.start.line,ecx.start.charPositionInLine,msg,undefined);
}
解决方法
如果您使用 Azure 管道来构建和部署 Xamarin 应用程序,请参阅此 doc。而如果你使用Microsoft-hosted agent,它的构建环境与本地机器不同,比如它可能缺少某些软件或安装不同的软件版本。您可以通过选择表中的包含的软件链接来查看每个托管代理的已安装软件。
对于您的问题,请检查您使用哪个 NuGet 版本在本地构建此项目,然后使用 Azure 管道中的 NuGet Tool Installer task 指定此 NuGet 版本(也许 5.8.0 适用于您的问题正如鼠标评论的那样)使用 Microsoft-hosted agent 构建您的项目。
您也可以deploy local self-hosted Windows agent并在 Azure 管道中使用它来构建您的项目,该项目将运行本地构建环境。
顺便说一句,您可以参考此文档:Review logs to diagnose pipeline issues 以在遇到管道问题时执行初始故障排除步骤。
,将您的 nuget 版本升级到 5.8,这一切都会消失:)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。