Skip to content

Skip MSBuild-only package files - #762

Open
BeautyfullCastle wants to merge 2 commits into
GlitchEnzo:masterfrom
BeautyfullCastle:fix/skip-msbuild-only-files
Open

Skip MSBuild-only package files#762
BeautyfullCastle wants to merge 2 commits into
GlitchEnzo:masterfrom
BeautyfullCastle:fix/skip-msbuild-only-files

Conversation

@BeautyfullCastle

Copy link
Copy Markdown

Fixes #707.

NuGet packages can contain buildTransitive and rulesets directories for MSBuild.

Unity imports extracted .globalconfig and .ruleset files as analyzer configuration files. When a package contains multiple such files, Unity logs repeated “already contains” warnings during project import.

Skip these MSBuild-only directories during package extraction, consistent with the existing build directory handling. Analyzer assemblies are still extracted.

References:

Add coverage for both directory paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error spam on every startup with the Microsoft.CodeAnalysis.BannedApiAnalyzers package installed

2 participants