Skip to content

Mmp should log the destination file path when copying it to the bundle #11510

Description

@KirillOsenkov

When Mmp is copying the files to the output bundle it should log the source and destination for each file copied, so people reading the MSBuild binlog can track down who copied the file.

I believe this logic is here:
https://github.com/xamarin/xamarin-macios/blob/a09a7d252352b207f794e7731d33b61667e34e13/tools/mmp/driver.cs#L1532-L1550

By default when MSBuild is copying files the convention is to use the Copying {0} to {1} message format (or Did not copy {0} to {1} because files sizes and timestamps matched).

It would be very helpful if we logged all file copies (including pdb, mdb, and config) using the above message format so one could just search the log for "Copying foo.dll" and find these. Right now it logs "Added assembly" and doesn't specify the destination path, so if you're searching for the destination path you won't find who logged it.

Additionally, we should consider switching Copied {0} to {1} to the same format ("Copying").
https://github.com/xamarin/xamarin-macios/blob/2b7dc07d20fc06344d7f164af8934f5e755572c2/tools/common/FileCopier.cs#L122

https://github.com/xamarin/xamarin-macios/blob/0924ce55efbd7170aa683ae9d4f694433a50b8d5/tools/common/Application.cs#L754

See also here:
https://github.com/xamarin/xamarin-macios/blob/a09a7d252352b207f794e7731d33b61667e34e13/tools/mmp/driver.cs#L1327

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue or pull request is an enhancementmacOSIssues affecting macOS

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions