From c4b84fd4a0ab0e6cc169580a7d22f076a0aa753a Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 18 Apr 2025 23:40:43 +1000 Subject: [PATCH] Condition still doesn't work on PackageReference, according to docs --- C#-and-.NET-docs-supplement.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C#-and-.NET-docs-supplement.md b/C#-and-.NET-docs-supplement.md index 4b3abaf..8e99d96 100644 --- a/C#-and-.NET-docs-supplement.md +++ b/C#-and-.NET-docs-supplement.md @@ -116,7 +116,9 @@ public static ReadOnlySpan UnsafeDowncast(ReadOnlySpan s ## MSBuild `Condition` placement -On (older versions of?) VS, `Condition` is ignored if placed on a property/item. Create a new ``/``. +On (older versions of?) VS, `Condition` is ignored if placed on a property/item. +It's also ignored if placed on a `` (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 ``/``. ## MSBuild project evaluation (without build)