Missing option to create/fill attribute `GeneratePathProperty` for element `PackageReference`
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
-
Consume a package XYZ in new project via Paket
-
Install/Restore the packages
-
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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