Hi thanks a lot for this solution. I like it to structure my nuget solutions in projects. Is there a way to include the xml doc files form the referenced projects into the nuget. This would make IntelliSense possible for the nuget.
I manged to include *.xml and *.pdb files in the output folder into the nuget with this changes:
<PropertyGroup> ... <TargetsForTfmSpecificBuildOutput> $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage </TargetsForTfmSpecificBuildOutput> <AllowedOutputExtensionsInPackageBuildOutputFolder> $(AllowedOutputExtensionsInPackageBuildOutputFolder);.xml $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb </AllowedOutputExtensionsInPackageBuildOutputFolder> </PropertyGroup>
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage"> <ItemGroup> <BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" /> <BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->Replace('.dll', '.xml'))" /> <BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->Replace('.dll', '.pdb'))" /> </ItemGroup> </Target>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi
thanks a lot for this solution. I like it to structure my nuget solutions in projects.
Is there a way to include the xml doc files form the referenced projects into the nuget.
This would make IntelliSense possible for the nuget.
I manged to include *.xml and *.pdb files in the output folder into the nuget with this changes: