Last active
December 31, 2019 16:45
-
-
Save Danthar/f97c53a639f4cf5fb8317a0f947ef344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);PackReferencedProjectOutputs</TargetsForTfmSpecificBuildOutput> | |
</PropertyGroup> | |
// we put this target in an props file and import it | |
<Target Name="PackReferencedProjectOutputs" DependsOnTargets="BuildOnlySettings;ResolveReferences"> | |
<ItemGroup> | |
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" /> | |
</ItemGroup> | |
</Target> | |
<ItemGroup> | |
<PackageReference Include="some public nuget" Version="0.0.0.0.0.0" /> | |
</ItemGroup> | |
<ItemGroup> | |
<ProjectReference Include="..\yourprivateproject.csproj" PrivateAssets="all" /> | |
</ItemGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment