fsprojects / fsprojects/Paket

Missing option to create/fill attribute `GeneratePathProperty` for element `PackageReference`

Open
#4,194 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

To access artifacts (e.g. additional content like shared .proto) from a package, there is an MSBuild property Pkg{normalized package identifier} available, which points to the package cache folder.

To fill that property, it needs to set the attribute GeneratePathProperty for the PackageReference element.

Repro steps

Please provide the steps required to reproduce the problem

  1. Consume a package XYZ in new project via Paket

  2. Install/Restore the packages

  3. Open the file `.../obj/.csproj.paket.props

Expected behavior

It needs such an enhanced entry with GeneratePathProperty="true":

<PackageReference Include="XYZ.Foundation.Messages.Protobuf" GeneratePathProperty="true">
  <Version>0.0.1-alpha.58</Version>
</PackageReference>
Actual behavior

Currently, only this simple form is created:

<PackageReference Include="XYZ.Foundation.Messages.Protobuf">
  <Version>0.0.1-alpha.58</Version>
</PackageReference>

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

Start by inspecting the generated obj/.csproj.paket.props file after restoring a package, using the issue's current and expected PackageReference examples as the comparison. The work is done when the generated entry includes GeneratePathProperty="true" for the relevant package reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.