-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Ensure *.CopyComplete file gets removed on Clean #2878
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should totally do this. Nit on the implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you instead do this?
<Touch Files="@(CopyUpToDateMarker)"
AlwaysCreate="true"
Condition="'@(ReferencesCopiedInThisBuild)' != ''">
<Output TaskParameter="TouchedFiles" ItemName="FileWritesShareable"/>
</Touch>That is more parallel to the copy task above, and it might be infinitesimally faster to avoid the additional implied item creation below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is definitely better. BTW, why *Shareable? IIUC, this file should get removed if the project's build outputs are being removed. Please correct me if I'm wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, use FileWrites, not -Shareable. That naming convention never really sunk in for me and I find it confusing every time I have to think about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For posterity: I was very, very wrong on this: #6917.
The @(CopyUpToDateMarker) file is not added to @(FileWrites), so it gets left behind after a Clean. https://bugzilla.xamarin.com/show_bug.cgi?id=58174 - This is a Xamarin.Android bug, but the same issue is reproducible with regular .net projects too
|
Updated. |
|
Looks good, thanks! |
The @(CopyUpToDateMarker) file is not added to @(FileWrites), so it gets left behind after a Clean. https://bugzilla.xamarin.com/show_bug.cgi?id=58174 - This is a Xamarin.Android bug, but the same issue is reproducible with regular .net projects too
The @(CopyUpToDateMarker) file is not added to @(FileWrites), so it gets
left behind after a Clean.
https://bugzilla.xamarin.com/show_bug.cgi?id=58174
regular .net projects too