Skip to content

Build generates multiple tlog folders #741

@tersers

Description

@tersers

When building my project, I'm getting a warning from MSBuild saying:

MSB8028: The intermediate directory (<intermediate directory here>) contains files shared from another project (<project name here>)

What's interesting is the shared project name is the exact same as the project I'm currently building. Upon investigation into the folder it complains about, I noticed MSBuild is sometimes creating multiple tlog folders. Since the name of my project is long, the folder hierarchy looks something like this:

|-IntermediateDir
    |-MyProjectNameIsL.123454678.tlog
    |-MyProjectNameIsL.ABCDEFGH.tlog

Note that MyProjectNameIsL is not a typo, it is to exemplify the length of my project's name and why MSBuild appears to serialize it. For the purpose of this question the name of the project is MyProjectNameIsLong.

If I delete these folders, it works fine for the first build but reports a warning for the second. It appears that MSBuild forgets about the existence of the original tlog folder and just creates a new one. Why is this the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions