Skip to content
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

testhost.dll is double written #4911

Open
Youssef1313 opened this issue Feb 28, 2024 · 1 comment
Open

testhost.dll is double written #4911

Youssef1313 opened this issue Feb 28, 2024 · 1 comment

Comments

@Youssef1313
Copy link

Description

See https://github.com/KirillOsenkov/MSBuildStructuredLog/wiki/Double%20write%20detection and https://www.meziantou.net/detecting-double-writes-in-msbuild-using-the-binlog.htm for info about double writes.

In a binlog from a private repo, I'm seeing testhost is double written.

image

Steps to reproduce

I didn't try to produce a minimal repro, but basically, the package props (https://github.com/microsoft/vstest/blob/39c7dd12c7ec24d0552513e84d95476f2077ca33/src/package/Microsoft.TestPlatform.TestHost/Microsoft.TestPlatform.TestHost.props) is marking testhost.dll in build/netcoreapp3.1/x64 directory as <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>. However, MSBuild also adds the testhost.dll from lib directory to ReferenceCopyLocalPaths.

Expected behavior

No double writes. It's a bit discouraged.

Actual behavior

Double writes.

Diagnostic logs

Environment

@nohwnd
Copy link
Member

nohwnd commented Feb 29, 2024

@drognanar I think you were investigating similar issue in the past, do you remember if it was resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants