Xamarin.forms xamarin android项目的应用程序中心构建失败

Xamarin.forms xamarin android项目的应用程序中心构建失败,xamarin.forms,visual-studio-app-center-distribute,Xamarin.forms,Visual Studio App Center Distribute,我正在尝试为xamarin Android项目在APP CENTER上设置构建配置,如下所示 当我运行构建时,我得到了低于错误的信息 "/Users/runner/work/1/s/EmguCVSource/Android/Emgu.CV.Platform.Android.csproj" (default target) (2:2) -> (_CheckForInvalidConfigurationAndPlatform target) -> /Libra

我正在尝试为xamarin Android项目在APP CENTER上设置构建配置,如下所示

当我运行构建时,我得到了低于错误的信息

"/Users/runner/work/1/s/EmguCVSource/Android/Emgu.CV.Platform.Android.csproj" (default target) (2:2) ->
(_CheckForInvalidConfigurationAndPlatform target) -> 
  /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(791,5): error : The OutputPath property is not set for project 'Emgu.CV.Platform.Android.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Dev'  Platform='AnyCPU'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [/Users/runner/work/1/s/EmguCVSource/Android/Emgu.CV.Platform.Android.csproj]

    141 Warning(s)
    1 Error(s)

Time Elapsed 00:00:38.88
##[error]Error: The process '/Library/Frameworks/Mono.framework/Versions/6_4_0/bin/msbuild' failed with exit code 1
See https://go.microsoft.com/fwlink/?LinkId=760847.```

i tried to fix this by changing mono version but not success.

what should i do to avoid this issue?

这是一个很好的例子,如果你有两个csproj在旁边的项目

就我而言,我有两个

  • 原始的xamarin.android.csproj
  • Emgu.CV.Platform.Android.csproj(我用于图像转换)
  • 为了解决这个问题,我必须将Emgu.CV.Platform.Android.csproj更新为与xamarin.Android.csproj相同的版本

    所以我通过在下面的代码行中添加代码来解决这个问题

    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Dev|AnyCPU' ">
        <DebugType>pdbonly</DebugType>
        <Optimize>true</Optimize>
        <OutputPath>$(OpenCVBinaryDir)\Build\$(AssemblyName)\$(Platform)\$(Configuration)\</OutputPath>
        <DefineConstants>TRACE</DefineConstants>
        <ErrorReport>prompt</ErrorReport>
        <WarningLevel>4</WarningLevel>
        <DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
      </PropertyGroup>
    
    
    pdbonly
    真的
    $(OpenCVBinaryDir)\Build\$(AssemblyName)\$(平台)\$(配置)\
    痕迹
    促使
    4.
    $(OutputPath)$(AssemblyName).xml
    
    多谢各位