Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure private assets always for NuGetizer #355

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NuGetizer.Tasks/NuGetizer.Inference.targets
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<ItemGroup>
<!-- NuGetizer should never pack transitively (i.e. SponsorLink assets), even
when PrivateAssets=all is used due to being a development dependency now. -->
<PackageReference Update="NuGetizer" PackTransitively="false" />
<PackageReference Update="NuGetizer" PackTransitively="false" />
</ItemGroup>

<Target Name="_SetDefaultPackageReferencePack" Condition="'$(PackFolder)' == 'build' or '$(PackFolder)' == 'buildTransitive'"
Expand Down
5 changes: 5 additions & 0 deletions src/NuGetizer.Tasks/NuGetizer.Shared.targets
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- Adds CodeAnalysis props and items needed for diagnostics -->
<Import Project="NuGetizer.CodeAnalysis.targets" />

<ItemGroup>
<!-- NuGetizer should *always* be a private asset. This avoids SL checks on P2P scenarios. -->
<PackageReference Update="NuGetizer" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<!-- Whether to infer package contents -->
<EnablePackInference Condition="'$(EnablePackInference)' == ''">true</EnablePackInference>
Expand Down