Skip to content

Default ProjectImports still creates a temporary zip #5383

@asklar

Description

@asklar

https://github.com/microsoft/msbuild/blob/5cb677292e0fe6f9db973d416ea866332833c306/src/Build/Logging/BinaryLogger/BinaryLogger.cs#L187

The docs say that the default for /bl is ProjectImports=Embed. However msbuild creates a zipfile, writes to it, then reads from to embed it in the binlog and deletes the zip file.
This is causing file lock contention with some tools we have (Metro bundler, used in React Native). The bundler watches for new files and .zip is one of the file extensions it watches. The end result is that metro tries accessing the newly created file while msbuild is writing it.

See also https://github.com/MicrosoftDocs/visualstudio-docs/issues/5388

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions