Skip to content

Update/Install re-adds content items if they have been modified to EmbeddedResource #1584

Description

@pms1969

If you have a package with content, and you want that content then to become an embedded resource (you switch it in VS), a paket update or paket install will add the file a second time to the project (i.e. it appears twice in VS).

Just wondering if this is a bug, or if there is some paket.dependencies jigpokery I can do to stop this.

Repro steps

As described above.

  1. add a package that has content.
  2. open solution in VS
  3. change content file to EmbeddedResource in properties pane
  4. run paket update

Expected behavior

I'd expect there to be only 1 file, or there to be a way in paket.dependencies to ensure that the content is embeded, but given that you may only want to do this to certain files, maybe not adding it again would be preferable.

Actual behavior

file appears twice in the project.

Known workarounds

unknown

Related information

  • Operating system = Windows
  • Branch = Paket version 2.58.6.0
  • .NET Runtime 4.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions