Condition still doesn't work on PackageReference, according to docs

YoshiRulz 2025-04-18 23:40:43 +10:00
parent 137d92c0d6
commit c4b84fd4a0
1 changed files with 3 additions and 1 deletions

@ -116,7 +116,9 @@ public static ReadOnlySpan<TTo> UnsafeDowncast<TFrom, TTo>(ReadOnlySpan<TFrom> s
## MSBuild `Condition` placement
On (older versions of?) VS, `Condition` is ignored if placed on a property/item. Create a new `<PropertyGroup/>`/`<ItemGroup/>`.
On (older versions of?) VS, `Condition` is ignored if placed on a property/item.
It's also ignored if placed on a `<PackageReference/>` (according to [docs](https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#adding-a-packagereference-condition) circa .NET 8).
Create a dedicated `<PropertyGroup/>`/`<ItemGroup/>`.
## MSBuild project evaluation (without build)