Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@mattleibow
Copy link
Contributor

No description provided.

variables:
BUILD_NUMBER: $(Build.BuildNumber)
BUILD_COMMIT: $(Build.SourceVersion)
PRE_RESTORE_PROJECTS: true # Windows is having an issue on CI right now
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so the WORKAROUND is temporary :)

.WithProperty("AndroidSdkBuildToolsVersion", "28.0.3")
.WithTarget("Restore");

foreach (var csproj in GetFiles("./generated/**/*.csproj")) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, a global restore is broken. So, just restore each project be fore building.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

.SetVerbosity(VERBOSITY)
.SetMaxCpuCount(0)
.WithRestore()
.WithProperty("NoBuild", "true")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't build on the Pack - speeds things up as it doesn't have to check for Restore and Build.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool trick

@moljac moljac merged commit b9a391f into AndroidX Oct 17, 2019
@moljac
Copy link
Contributor

moljac commented Oct 17, 2019

/azp run

@mattleibow mattleibow deleted the dev/fixing-devops branch October 17, 2019 09:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants