[Mono.Posix] Add @(ProjectReference) for Xamarin.Android.Build.Tasks #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@atsushieno is unable to build from a clean state on Linux,
because when
src/Mono.Posixis builtclass-parse.execan't befound:
(Yes, the error says
mandroid, but it's the$prefix/lib/mandroiddirectory it's complaining about, which contains
class-parse.exe.)This doesn't immediately make sense, because
Xamarin.Android.Build.Tasks.csprojhas a@(ProjectReference)onthe
class-parse.csprojproject, and thusclass-parse.exeshouldexist...unless
Xamarin.Andorid.Build.Tasks.csprojhasn't been built!Indeed,
Mono.Posix.csprojdoes not contain a@(ProjectReference)on
Xamarin.Android.Build.Tasks.csproj, and thus there is norequirement known by MSBuild that
Xamarin.Android.Build.Tasksbebuilt before
Mono.Posix. This could explain whyclass-parse.execan't be found.
(Though this itself seems a tad odd, because if
Xamarin.Android.Build.Tasks.csprojwasn't built at all, then I'dexpect the
<Import/>withinMono.Posix.csprojfor$(OutputPath)\..\..\..\xbuild\Xamarin\Android\Xamarin.Android.CSharp.targetsto fail first, but that's not the reported error...)
Fix the
Mono.Posix.csprojandMono.Data.Sqlite.csprojprojects sothat they depend upon
Xamarin.Android.Build.Tasks.csproj, to ensurethat build dependencies are roperly expressed.