Skip to content

Generation may fail for Xamarin.Android projects on Azure Devops hosted agents #109

@jeromelaban

Description

@jeromelaban

When building an Xamarin.Android project on Azure Devops, setting the JavaSdkDirectory property is required, as the environment variable has no effect.

This property is not propagated to the Uno.SourceGeneration build context, making the generation fail.

Workaround

Create or update a Directory.Build.props file with this content:

<Project>
 <PropertyGroup>
   <JavaSdkDirectory Condition="'$(JavaSdkDirectory)'=='' and '$(JAVA_HOME_8_X64)'!=''">$(JAVA_HOME_8_X64)</JavaSdkDirectory>
 </PropertyGroup>
</Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions