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

[build] fix Novell/*.MonoDroid.*.targets copy during build #1079

Closed

Conversation

jonathanpeppers
Copy link
Member

For a little while, our build has been copying three files to the root
of our build tree:

  • Novell/MonoDroid.FSharp.targets
  • Novell/Novell.MonoDroid.Common.targets
  • Novell/Novell.MonoDroid.CSharp.targets

These files are copied to build output in the
Xamarin.Android.Build.Tasks project, but they should go in
bin/$(Configuration) not the root of the build tree.

While looking at binary log output, I noticed the
Xamarin.Android.Build.Tests project was doing the copy due to having a
<ProjectReference /> to Xamarin.Android.Build.Tasks.

Adding <Private>False</Private> to the <ProjectReference /> fixes
these files from being copied, and doesn't appear to have any other ill
effects.

For a little while, our build has been copying three files to the root
of our build tree:
- Novell/MonoDroid.FSharp.targets
- Novell/Novell.MonoDroid.Common.targets
- Novell/Novell.MonoDroid.CSharp.targets

These files are copied to build output in the
Xamarin.Android.Build.Tasks project, but they should go in
`bin/$(Configuration)` not the root of the build tree.

While looking at binary log output, I noticed the
Xamarin.Android.Build.Tests project was doing the copy due to having a
`<ProjectReference />` to Xamarin.Android.Build.Tasks.

Adding `<Private>False</Private>` to the `<ProjectReference />` fixes
these files from being copied, and doesn't appear to have any other ill
effects.
@jonathanpeppers
Copy link
Member Author

build

@jonathanpeppers
Copy link
Member Author

Need to look and see if there is another way to fix this--it looks like it breaks a set of tests.

I believe this started happening in this commit, when a <ProjectReference /> was added in Xamarin.Android.Build.Tests for Xamarin.Android.Build.Tasks.

@jonathanpeppers jonathanpeppers added the do-not-merge PR should not be merged. label Dec 20, 2017
@jonathanpeppers
Copy link
Member Author

I'll revisit this when I am back with a different PR, the changes here didn't do what we needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
do-not-merge PR should not be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants