Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Packages created with paket.template type "project" do not include dependencies to projects with paket.template type "files"

Open antineutrino opened this issue 4 years ago • 1 comments

Description

paket.template files with type "project" do not include references to projects with paket.template files of type "files"

The documentation says

including project references for projects in the solution that have a paket.template file.

https://fsprojects.github.io/Paket/template-files.html

paket version 6.2.1

Repro steps

Create project A with paket.template file type files Create project B with paket.template file type project Let B project reference project A Call paket pack

project A

type file
id A
version 1.0.0.0
authors XXX
description
  A
files
	..\..\Build\Repacked\A.dll ==> lib\net472
dependencies 
  Test LOCKEDVERSION
excludeddependencies
  Microsoft.CodeAnalysis.FxCopAnalyzers
  StyleCop.Analyzers

project B

type project
id B
version 1.0.0.0
authors XXX
description
  B
excludeddependencies
  Microsoft.CodeAnalysis.FxCopAnalyzers
  StyleCop.Analyzers

Expected behavior

NuGet package of B has a dependency to NuGet package A.

Actual behavior

NuGet package B has no dependency to A

Known workarounds

Change all paket.template files of type projec to type files :(

antineutrino avatar Feb 11 '22 06:02 antineutrino

I've found the reason why this does not work: If one does not specify the template files via the --template parameter it works as expected. If one does specify it referenced projects are included as DLL and not as NuGet dependency.

This has to be a bug.

antineutrino avatar Apr 26 '22 09:04 antineutrino