Skip to content

[Xamarin.Android.Build.Tasks] Fix IncrementalClean on msbuild. - #1063

Merged
jonpryor merged 1 commit into
dotnet:masterfrom
dellis1972:designtimeb1
Dec 4, 2017
Merged

jonpryor merged 1 commit into
dotnet:masterfrom
dellis1972:designtimeb1

Conversation

@dellis1972

Copy link
Copy Markdown
Contributor

Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60880

Commit 552ad5d added code to make sure the designtime build
files are NOT deleted by the IncrementalClean target.
While it fixed the issue for xbuild it did NOT fix it for
msbuild. As a result the file was still deleted.

So we need to add the file to the target in the
Xamarin.Android.Windows.targets to ensure that it is NOT
removed (just like the mdb files).

Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60880

Commit 552ad5d added code to make sure the `designtime` build
files are NOT deleted by the `IncrementalClean` target.
While it fixed the issue for `xbuild` it did NOT fix it for
`msbuild`. As a result the file was still deleted.

So we need to add the file to the target in the
Xamarin.Android.Windows.targets to ensure that it is NOT
removed (just like the mdb files).

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The only thing that scares me about this one, is a missing test.

Would something like this test: https://github.com/xamarin/xamarin-android/blob/master/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs#L1844

If you added a regular (non-design-time) build after it and make sure all the right files are still there. Would that probably fail before this change?

@dellis1972

Copy link
Copy Markdown
Contributor Author

@jonathanpeppers we have a test already. It was failing locally when running in the IDE because we run msbuild. On Jenkins etc we are still running xbuild which is why we missed it.

@jonpryor
jonpryor merged commit 2b4039a into dotnet:master Dec 4, 2017
jonpryor pushed a commit that referenced this pull request Dec 4, 2017
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60880

Commit 552ad5d added code to make sure the `designtime` build
files are NOT deleted by the `IncrementalClean` target.
While it fixed the issue for `xbuild` it did NOT fix it for
`msbuild`. As a result the file was still deleted.

So we need to add the file to the target in the
Xamarin.Android.Windows.targets to ensure that it is NOT
removed (just like the mdb files).
jonpryor added a commit that referenced this pull request Dec 4, 2017
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60880

Commit 552ad5d added code to make sure the `designtime` build
files are NOT deleted by the `IncrementalClean` target.
While it fixed the issue for `xbuild` it did NOT fix it for
`msbuild`. As a result the file was still deleted.

So we need to add the file to the target in the
Xamarin.Android.Windows.targets to ensure that it is NOT
removed (just like the mdb files).
jonpryor pushed a commit that referenced this pull request Jan 21, 2020
Changes: https://github.com/xamarin/monodroid/compare/2c9ce23d...dab75e88

Fixes: https://work.azdo.io/1041849
Fixes: https://developercommunity.visualstudio.com/content/problem/858509/adb0030-monoandroidtoolsrequiresuninstallexception-2.html

  * xamarin/monodroid@dab75e880: Bump to xamarin/android-sdk-installer/d16-5@5adcbfa (#1066)
  * xamarin/monodroid@3293f67a9: Bump to xamarin/android-sdk-installer/d16-5@dd6e2c0 (#1063)
  * xamarin/monodroid@8ecaa9d30: [tools/msbuild] prevent InstallPackageAssemblies from reporting two errors (#1058) (#1064)
  * xamarin/monodroid@284b81933: Bump to xamarin/androidtools/d16-5@62844ab (#1062)
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants