runtime icon indicating copy to clipboard operation
runtime copied to clipboard

CopyToOutputDirectory

Open ichensky opened this issue 7 years ago • 2 comments

  1. Create solution with two .net core projects "Pr1", "Pr2".
  2. Make "Pr1" as default solution project.
  3. Add "Settings.cs" class with some code to the "Pr1".
  4. Add the same file "Settings.cs" but with another code to the "Pr2".
  5. Add to the "Pr1", "Pr2" .proj files:
<ItemGroup>
    <Compile Update="Settings.cs">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Compile>
  </ItemGroup>

  1. Add reference of project "Pr2" to "Pr1".
  2. 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"

ichensky avatar Aug 23 '19 11:08 ichensky

Duplicate of https://github.com/microsoft/msbuild/issues/989?

khellang avatar Aug 23 '19 12:08 khellang

This issue was moved to microsoft/msbuild#4654

tarekgh avatar Aug 23 '19 18:08 tarekgh