Bug 59853 - Clean target fails to remove a FileListAbsolute.txt file in d15-5
Summary: Clean target fails to remove a FileListAbsolute.txt file in d15-5
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild (show other bugs)
Version: 8.1 (15.5)
Hardware: All All
: Normal normal
Target Milestone: 15.6
Assignee: Ankit Jain
Depends on:
Reported: 2017-09-29 14:51 UTC by Peter Collins
Modified: 2018-01-22 18:19 UTC (History)
2 users (show)

See Also:
Is this bug a regression?: Yes
Last known good build: d15-4


Description Peter Collins 2017-09-29 14:51:59 UTC
Building and then cleaning a simple forms project is leaving behind a new artifact in d15-5, resulting in a non-empty obj and bin file after invoking clean:

> /obj/Debug/WorkingWithStyles.Android.csproj.FileListAbsolute.txt

On a related note, I should mention again Bug #58174 which is tracking an extra *csproj.CopyComplete which is also not cleaned up appropriately. Both bugs are reproducible on Mac and Windows, and the same repro steps from Bug #58174 apply here:

## Steps to reproduce ##
1) nuget restore WorkingWithStyles/WorkingWithStyles.sln 
2) msbuild /t:SignAndroidPackage WorkingWithStyles/Android/WorkingWithStyles.Android.csproj
3) Take note of content in WorkingWithStyles/Android/obj/Debug/
4) msbuild /t:Clean WorkingWithStyles/Android/WorkingWithStyles.Android.csproj
5) Again take note of content in WorkingWithStyles/Android/obj/Debug/
6) Observe leftover file `WorkingWithStyles.Android.csproj.CopyComplete`

## Environment ##
Operating System: Mac OS X 10.12.3
Repo Name: monodroid
Branch Name: d15-5
Build Revision: 12e1ed307ba15f186f2a2363815a5bf195c41370
Comment 1 dean.ellis 2017-10-03 15:36:37 UTC

FileListAbsolute.txt and .CopyComplete are msbuild file, its not something the android team manages. So this is an msbuild bug.
Comment 2 Ankit Jain 2018-01-18 21:37:24 UTC
re:FileListAbsolute.txt, I tested with and but could not reproduce this.
Comment 3 Ankit Jain 2018-01-18 21:41:53 UTC
re:CopyComplete, https://github.com/Microsoft/msbuild/pull/2878 .
Comment 4 Ankit Jain 2018-01-22 18:19:12 UTC
Upstream PR has been merged. And we should have it in mono's msbuild shortly.

Note You need to log in before you can comment on or make changes to this bug.