FileNesting icon indicating copy to clipboard operation
FileNesting copied to clipboard

CopyToOutputDirectory is lost after nesting and unesting

Open LazaroOnline opened this issue 5 years ago • 0 comments

Installed product versions

  • Visual Studio: 2019 Enterprise
  • This extension: 2.6.85

Description

File properties are lost after nesting/unesting a file.

Steps to recreate

  • Add a new file to csproj called "mytest.config"
  • set it's properties to "Copy to output directory" = "Copy always".
  • Use the extension to set "mytest.config" as a nested file to another file.
  • Use the extension again to unsert the nested file "mytest.config"

Current behavior

The "CopyToOutputDirectory" value has been lost in the process.

Expected behavior

As a user I would expect the nesting/unesting to not be a destructive operation and keep the options like "CopyToOutputDirectory", or if it is really needed to remove the properties then at least show a warning.

LazaroOnline avatar Feb 17 '20 12:02 LazaroOnline