fsprojects / fsprojects/Paket

Content files do not get copied

Open
#3,465 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

Paket version 5.194.3

I have a NuGet package with a Content folder which contains 1 file. Whatever I try, it is impossible to get this Content file to show up in my project.

Repro steps

Clone https://github.com/Informatievlaanderen/example-registry.git at commit https://github.com/Informatievlaanderen/example-registry/commit/04fb3fe67341aa679d5aed24db4192fd5fcb20e8

https://github.com/Informatievlaanderen/example-registry/blob/04fb3fe67341aa679d5aed24db4192fd5fcb20e8/paket.dependencies#L33 lists nuget Be.Vlaanderen.Basisregisters.Testing.Infrastructure.Events ~> 1.0 content: true, copy_content_to_output_dir: always, copy_local: true (Yes, I tried it all eventually :p)

https://github.com/Informatievlaanderen/example-registry/blob/04fb3fe67341aa679d5aed24db4192fd5fcb20e8/test/ExampleRegistry.Tests/paket.references#L8 references this package

When I run paket install --force nothing gets added to the project:

image

In the packages folder I can see the package with the Content folder:

image

Expected behavior

I expect the InfrastructureEventsTest.cs folder to be copied to the folder. Just need the file to be copied, MSBuild (.NET Core) should probably take care of the rest.

Actual behavior

Nothing happens

Known workarounds

No idea.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the linked example-registry commit, checking paket.dependencies and test/ExampleRegistry.Tests/paket.references, then run paket install --force. Trace Paket's handling of NuGet Content files and verify that InfrastructureEventsTest.cs is copied into the project as expected.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.