We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
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.
testhost.dll
build/netcoreapp3.1/x64
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
lib
ReferenceCopyLocalPaths
No double writes. It's a bit discouraged.
Double writes.
The text was updated successfully, but these errors were encountered:
@drognanar I think you were investigating similar issue in the past, do you remember if it was resolved?
Sorry, something went wrong.
No branches or pull requests
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.
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
inbuild/netcoreapp3.1/x64
directory as<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
. However, MSBuild also adds thetesthost.dll
fromlib
directory toReferenceCopyLocalPaths
.Expected behavior
No double writes. It's a bit discouraged.
Actual behavior
Double writes.
Diagnostic logs
Environment
The text was updated successfully, but these errors were encountered: