runtime
runtime copied to clipboard
CopyToOutputDirectory
- Create solution with two .net core projects "Pr1", "Pr2".
- Make "Pr1" as default solution project.
- Add "Settings.cs" class with some code to the "Pr1".
- Add the same file "Settings.cs" but with another code to the "Pr2".
- Add to the "Pr1", "Pr2"
.projfiles:
<ItemGroup>
<Compile Update="Settings.cs">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Compile>
</ItemGroup>
- Add reference of project "Pr2" to "Pr1".
- Build project "Pr1"
Actual result: in /bin directory there is only one file "Settings.cs" from "Pr1"
Expected result: warring/error that file "Settings.cs" from "Pr2" was replaced with "Settings.cs" file from "Pr1"
Duplicate of https://github.com/microsoft/msbuild/issues/989?
This issue was moved to microsoft/msbuild#4654