DEV Community

Discussion on: Include both Nuget Package References *and* project reference DLL using “dotnet pack” 📦

Collapse
 
alexeyzimarev profile image
Alexey Zimarev

Thanks! Solved my issue today :)

I managed to get it working without those lines:

  <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
  <IncludeAssets>ProjectB.dll</IncludeAssets>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
maxkoshevoi profile image
Maksym Koshovyi

Could you please share your solution?

Collapse
 
ibrahimnamdar profile image
Ibrahim Namdar

I solved it by setting PrivateAssets="all"

<ProjectReference Include="..\ProjectB.csproj" PrivateAssets="all"/>
Otherwise ProjectB was seen as a package dependency not a project dependency.