Skip to content

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.

jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Apr 3, 2020
Changes: https://github.com/xamarin/monodroid/compare/34f5275d1db891e25af17d743b425cc318e6e7df...846697287fb32c38b54ddd2fe21964b9159b2750

  * xamarin/monodroid@846697287: Bump to xamarin/androidtools/master@8a2cadb5 (dotnet#1079)
  * xamarin/monodroid@9d045f82f: Bump to xamarin/android-sdk-installer/master@33a209cc (dotnet#1078)
jonpryor added a commit that referenced this pull request Apr 3, 2020
Changes: https://github.com/xamarin/monodroid/compare/34f5275d1db891e25af17d743b425cc318e6e7df...846697287fb32c38b54ddd2fe21964b9159b2750

  * xamarin/monodroid@846697287: Bump to xamarin/androidtools/master@8a2cadb5 (#1079)
  * xamarin/monodroid@9d045f82f: Bump to xamarin/android-sdk-installer/master@33a209cc (#1078)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
@jonathanpeppers jonathanpeppers deleted the weird-targets-output branch February 21, 2024 18:39
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