Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jeromelaban opened this issue Jun 26, 2019 · 0 comments

Comments

@jeromelaban
Copy link
Member

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant