Skip to content

Fixes Analyzer warning because of missing PrivateAssets #70

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

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

BenjaminAbt
Copy link
Member

This pull request updates the Directory.Build.props and Directory.Packages.props files to explicitly include PrivateAssets and IncludeAssets metadata for several PackageReference and PackageVersion entries. This ensures consistent asset visibility and prevents unintended asset propagation.

Updates to package metadata:

  • Directory.Build.props:

    • Added PrivateAssets and IncludeAssets metadata to the PackageReference entries for Microsoft.CodeAnalysis.CSharp.Workspaces, Microsoft.CodeAnalysis.Common, and Microsoft.CodeAnalysis.CSharp.
  • Directory.Packages.props:

    • Added PrivateAssets and IncludeAssets metadata to the PackageVersion entries for Microsoft.CodeAnalysis.CSharp.Workspaces, Microsoft.CodeAnalysis.Common, and Microsoft.CodeAnalysis.CSharp.

Updated `Directory.Build.props` and `Directory.Packages.props` to add `PrivateAssets` and `IncludeAssets` properties for `Microsoft.CodeAnalysis` packages. This improves asset visibility and management of package dependencies during the build process.
@BenjaminAbt BenjaminAbt self-assigned this Apr 26, 2025
@BenjaminAbt BenjaminAbt requested a review from gfoidl April 26, 2025 08:43
@BenjaminAbt BenjaminAbt merged commit 879243b into main Apr 26, 2025
2 checks passed
@BenjaminAbt BenjaminAbt deleted the feature/fix-analyzer-privateassets branch April 26, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NuGet: Microsoft.CodeAnalysis.* dependencies should likely be private assets
2 participants