IssueRaiser

Feature : Allow project reference DLLs to be added to the parent nupkg for pack target like IncludeReferencedProjects in nuget.exe

## Steps 1. `dotnet new --type lib` two .csproj class libraries: projectA and projectB. 1. Change `<TargetFramework>` to `<TargetFrameworks>` if you don't have https://github.com/NuGet/Home/issues/3865. 1. Make projectA have a `ProjectReference` to projectB. 1. Add `<Type>project</Type>` to the `<ProjectReference>`. 1. `dotnet pack` projectA 1. Open the resulting .nupkg's lib folder ## Expected projectB.dll should be in the .nupkg along with projectA.dll ## Actual projectB is still a package reference, not a DLL included in the package. ## Environment Tried latest dev's pack target. `dotnet --info` ``` .NET Command Line Tools (1.0.0-preview3-004056) Product Information: Version: 1.0.0-preview3-004056 Commit SHA-1 hash: ccc4968bc3 Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 ``` **UPDATE: Please see workaround posted as [comment](https://github.com/nuget/home/issues/3891#issuecomment-377319939 ) to see how to add ProjectReferences as DLLs in the package dynamically.**

Posted by joelverhagen on Nov 8, 2016, 2:03 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

github (Software)

Feature : Allow project reference DLLs to be added to the parent nupkg for pack target like IncludeReferencedProjects in nuget.exe

joelverhagenNov 8, 2016, 2:03 AM

## Steps 1. `dotnet new --type lib` two .csproj class libraries: projectA and projectB. 1. Change `<TargetFramework>` to `<TargetFrameworks>` if you don't have https://github.com/NuGet/Home/issues/3865. 1. Make projectA have a `ProjectReference` to projectB. 1. Add `<Type>project</Type>` to the `<ProjectReference>`. 1. `dotnet pack` projectA 1. Open the resulting .nupkg's lib folder ## Expected projectB.dll should be in the .nupkg along with projectA.dll ## Actual projectB is still a package reference, not a DLL included in the package. ## Environment Tried latest dev's pack target. `dotnet --info` ``` .NET Command Line Tools (1.0.0-preview3-004056) Product Information: Version: 1.0.0-preview3-004056 Commit SHA-1 hash: ccc4968bc3 Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 ``` **UPDATE: Please see workaround posted as [comment](https://github.com/nuget/home/issues/3891#issuecomment-377319939 ) to see how to add ProjectReferences as DLLs in the package dynamically.**

Comments (0)

No comments yet. Start the discussion.

Comment on this issue