Sitelet https://github.com/fsprojects/Paket/issues/1701
Skip to content

BUG?: update with any of the --keep-?? flags doesn't honour content:none in paket.dependencies #1701

Description

@pms1969

Description

Not sure if it's a bug, expected behaviour or something else. But if I do a paket update --keep-major when I have specified content:none for a package in paket.dependencies, I end up with the contents being copied to the project folder and the csproj being updated. Running paket update again removes the files as expected.

Repro steps

Please provide the steps required to reproduce the problem

  1. create an empty solution with an bare class library project
  2. paket init
  3. paket add nuget bootstrap project <projectname>
  4. note the addition of the content files to the project (folders contents, fonts, scripts)
  5. edit paket.dependencies and place content:none next to bootstrap
  6. paket update
  7. note the contents have been removed from the project
  8. paket update --keep-major
  9. note the contents are back.

Expected behavior

at step 9, the project should not contain the contents of the bootstrap package

Actual behavior

It does

Known workarounds

update the package.references file to include content:none for the package as well

Related information

  • Operating system: Windows 7
  • Branch : paket version 2.65.2.0
  • .NET Runtime, CoreCLR or Mono Version: 4.5
  • Performance information, links to performance testing scripts

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions