You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a WPF exe project referencing a Library project which in turn references a Native DLL project. See attached sample project.
When rebuilding the solution, the output folder of the exe project contains all binaries:
MyLib.dll
NativeLib.dll
WpfApp2.dll
WpfApp2.exe
Then, perform any code change in the WpfApp2 project and Build it (F7 on my setup). The NativeLib.dll gets deleted. Using verbose logging, I can see that it incorrectly gets picked up in _CleanOrphanFileWritesInOutput processed by the IncrementalClean target.
Native DLL output should not be deleted when building solution.
Actual Behavior
Native DLL output is deleted when building solution.
In real-world solutions, this causes runtime errors. We have spent many days trying to debug issues that weren't real issues; the build is in fact broken.
Ask us questions
No response
The text was updated successfully, but these errors were encountered:
Generally, the task/target that copies the NativeLib.dll to the output directory should also append to the "FileWrite" ItemGroup so that the Incremental Clean step won't delete it.
I wonder if this is the bug where building from the IDE and command line has different behavior.
Issue Description
I have a
WPF
exe project referencing aLibrary
project which in turn references aNative DLL
project. See attached sample project.When rebuilding the solution, the output folder of the exe project contains all binaries:
Then, perform any code change in the
WpfApp2
project and Build it (F7
on my setup). TheNativeLib.dll
gets deleted. Using verbose logging, I can see that it incorrectly gets picked up in_CleanOrphanFileWritesInOutput
processed by theIncrementalClean
target.Steps to Reproduce
See attached sample project.
SimpleApp.zip
Expected Behavior
Native DLL output should not be deleted when building solution.
Actual Behavior
Native DLL output is deleted when building solution.
In real-world solutions, this causes runtime errors. We have spent many days trying to debug issues that weren't real issues; the build is in fact broken.
Ask us questions
No response
The text was updated successfully, but these errors were encountered: