Skip to content

Added SupportedOSPlatform property to AssemblyInfoSettings.#4725

Merged
devlead merged 2 commits intocake-build:developfrom
squid-box:feature/AssemblyInfo-Multiple-CustomAttributes
Feb 25, 2026
Merged

Added SupportedOSPlatform property to AssemblyInfoSettings.#4725
devlead merged 2 commits intocake-build:developfrom
squid-box:feature/AssemblyInfo-Multiple-CustomAttributes

Conversation

@squid-box
Copy link
Contributor

This fixes #4071 by introducing a new property to AssemblyInfoSettings.

It seemed more correct to introduce a new property rather than trying to alter the behavior of how CustomAttributes are handled, but I'm not dead set on this implementation if there is a better suggestion.

My main reasoning is that this will not break any existing setup which uses CustomAttributes to apply the SupportedOSPlatform attribute, but it enables what I need (to specify multiple platforms).

@squid-box squid-box force-pushed the feature/AssemblyInfo-Multiple-CustomAttributes branch from a03587e to a80b3de Compare February 21, 2026 12:47
@squid-box squid-box force-pushed the feature/AssemblyInfo-Multiple-CustomAttributes branch from a80b3de to a4726a9 Compare February 24, 2026 21:07
@devlead devlead force-pushed the feature/AssemblyInfo-Multiple-CustomAttributes branch from a4726a9 to 4634dfe Compare February 25, 2026 07:13
- Add SupportedOSPlatform to AssemblyInfoParseResult and parse it in AssemblyInfoParser (same pattern as InternalsVisibleTo)
- Extend parser fixtures (C# and VB) with SupportedOSPlatform for tests
- Add unit tests: Should_Read_SupportedOSPlatform and Should_Read_Multiple_SupportedOSPlatform
- In integration tests: assert ParseAssemblyInfo returns SupportedOSPlatform and add CreateAssemblyInfoWithSupportedOSPlatform and CreateAssemblyInfoWithMultipleSupportedOSPlatform tasks
@devlead devlead force-pushed the feature/AssemblyInfo-Multiple-CustomAttributes branch from 453e5da to a425fab Compare February 25, 2026 13:26
Copy link
Member

@devlead devlead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT 👍

@devlead devlead merged commit 6472b83 into cake-build:develop Feb 25, 2026
15 of 16 checks passed
@devlead
Copy link
Member

devlead commented Feb 25, 2026

@squid-box your changes have been merged, thanks for your contribution 👍

@squid-box
Copy link
Contributor Author

Thank you, and sorry for completely missing the AssemblyInfoParser and integration tests 🙈

@squid-box squid-box deleted the feature/AssemblyInfo-Multiple-CustomAttributes branch February 25, 2026 14:51
This was referenced Mar 2, 2026
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.

Unable to set multiple of the same attribute CustomAttributes in AssemblyInfo creator

2 participants