Skip to content

Comments

fix: remove analyzer-disabling AdditionalProperties that caused duplicate builds#339

Closed
RicherTunes wants to merge 1 commit intomainfrom
fix/msbuild-duplicate-builds
Closed

fix: remove analyzer-disabling AdditionalProperties that caused duplicate builds#339
RicherTunes wants to merge 1 commit intomainfrom
fix/msbuild-duplicate-builds

Conversation

@RicherTunes
Copy link
Owner

Summary

Removes analyzer-disabling properties from the AdditionalProperties on the Common ProjectReference that were causing MSBuild to treat Common as a different build configuration, leading to duplicate parallel builds and file locking race conditions on Windows CI:

CSC error CS2012: Cannot open 'dll' for writing

Changes

Brainarr.Plugin/Brainarr.Plugin.csproj

Before:

<AdditionalProperties>GeneratePackageOnBuild=false;RunAnalyzersDuringBuild=false;RunAnalyzersDuringCompilation=false;EnableNETAnalyzers=false</AdditionalProperties>

After:

<AdditionalProperties>GeneratePackageOnBuild=false</AdditionalProperties>

Kept GeneratePackageOnBuild=false which is legitimately needed to prevent Common from generating a NuGet package during plugin builds.

Related

🤖 Generated with Claude Code

…cate builds

The AdditionalProperties on the Common ProjectReference were disabling
analyzers (RunAnalyzersDuringBuild, EnableNETAnalyzers) to suppress
PublicAPI warnings. However, this caused MSBuild to treat the Common
project as a different build configuration than when built standalone,
leading to duplicate parallel builds and file locking race conditions:

  CSC error CS2012: Cannot open 'dll' for writing

Fix: Keep only GeneratePackageOnBuild=false (which is legitimately needed
to prevent Common from generating a NuGet package during plugin builds).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@RicherTunes
Copy link
Owner Author

Stale — superseded by packaging-gates adoption (#397) and ecosystem standardization.

@RicherTunes RicherTunes closed this Feb 6, 2026
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.

1 participant