[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-property-patterns":3,"mdc-2miraa-key":34,"related-org-dotnet-property-patterns":1160,"related-repo-dotnet-property-patterns":1325},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":29,"sourceUrl":32,"mdContent":33},"property-patterns","define MSBuild property patterns","MSBuild property definition patterns: conditional defaults, composition\u002Fconcatenation, path normalization, trailing-slash handling, TFM detection helpers, and evaluation order. USE FOR: diagnosing and fixing property definition issues and shared-property anti-patterns in .props\u002F.csproj; DefineConstants or NoWarn overwritten instead of appended; unconditional assignments that block project-level overrides; unquoted conditions that fail on empty properties; hardcoded paths that break cross-platform builds; setting overridable defaults; property evaluation order and last-write-wins semantics. DO NOT USE FOR: props vs targets placement (use directory-build-organization), item operations (use item-management), target structure (use target-authoring), general anti-patterns (use msbuild-antipatterns), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16,19],{"name":13,"slug":14,"type":15},"Configuration","configuration","tag",{"name":17,"slug":18,"type":15},".NET","net",{"name":20,"slug":21,"type":15},"Engineering","engineering",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-19T05:38:17.369697","MIT",332,[28],"agent-skills",{"repoUrl":23,"stars":22,"forks":26,"topics":30,"description":31},[28],"Repository for skills to assist AI coding agents with .NET and C#","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-msbuild\u002Fskills\u002Fproperty-patterns","---\nname: property-patterns\ndescription: \"MSBuild property definition patterns: conditional defaults, composition\u002Fconcatenation, path normalization, trailing-slash handling, TFM detection helpers, and evaluation order. USE FOR: diagnosing and fixing property definition issues and shared-property anti-patterns in .props\u002F.csproj; DefineConstants or NoWarn overwritten instead of appended; unconditional assignments that block project-level overrides; unquoted conditions that fail on empty properties; hardcoded paths that break cross-platform builds; setting overridable defaults; property evaluation order and last-write-wins semantics. DO NOT USE FOR: props vs targets placement (use directory-build-organization), item operations (use item-management), target structure (use target-authoring), general anti-patterns (use msbuild-antipatterns), non-MSBuild build systems.\"\nlicense: MIT\n---\n\n# MSBuild Property Patterns\n\nCanonical property definition and manipulation patterns from the MSBuild repository.\n\n## Conditional Defaults — The Foundational Pattern\n\nSet a property **only if not already set**, allowing callers to override:\n\n```xml\n\u003CPropertyGroup>\n  \u003CConfiguration Condition=\"'$(Configuration)' == ''\">Debug\u003C\u002FConfiguration>\n  \u003CPlatform Condition=\"'$(Platform)' == ''\">AnyCPU\u003C\u002FPlatform>\n  \u003CBuildInParallel Condition=\"'$(BuildInParallel)' == ''\">true\u003C\u002FBuildInParallel>\n\u003C\u002FPropertyGroup>\n```\n\n### Rules\n\n- Always quote both sides: `'$(Prop)' == ''`\n- In `.props`: creates overridable defaults. In `.targets`: creates fallbacks.\n- Properties without the condition **cannot be overridden** by earlier imports.\n\n## Nested Conditional Groups\n\nGroup related properties under a shared condition:\n\n```xml\n\u003CPropertyGroup Condition=\"$(TargetFramework.StartsWith('net4'))\">\n  \u003CDefineConstants>$(DefineConstants);FEATURE_APARTMENT_STATE\u003C\u002FDefineConstants>\n  \u003CDefineConstants>$(DefineConstants);FEATURE_APM\u003C\u002FDefineConstants>\n  \u003CFeatureAppDomain>true\u003C\u002FFeatureAppDomain>\n\u003C\u002FPropertyGroup>\n\n\u003CPropertyGroup Condition=\"'$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)'))' == '.NETCoreApp'\">\n  \u003CNetCoreBuild>true\u003C\u002FNetCoreBuild>\n  \u003CDefineConstants>$(DefineConstants);RUNTIME_TYPE_NETCORE\u003C\u002FDefineConstants>\n\u003C\u002FPropertyGroup>\n```\n\nUse the outer `Condition` on `PropertyGroup` to avoid repeating the same condition on every property.\n\n> **Warning:** `$(TargetFramework)` is empty in `.props` files for single-targeting projects until the project body is evaluated. Place `TargetFramework`-conditioned property groups in `.targets` files (or the project file itself), where the value is always available.\n\n## Composition — Semicolon Concatenation\n\nProperties that hold lists use semicolons. Always include the existing value when appending:\n\n```xml\n\u003CPropertyGroup>\n  \u003CDefineConstants>$(DefineConstants);MY_FEATURE\u003C\u002FDefineConstants>\n  \u003CNoWarn>$(NoWarn);NU5131;IDE0005\u003C\u002FNoWarn>\n  \u003CLibraryTargetFrameworks>$(FullFrameworkTFM);$(LatestDotNetCoreForMSBuild);netstandard2.0\u003C\u002FLibraryTargetFrameworks>\n\u003C\u002FPropertyGroup>\n```\n\n## Path Normalization and Trailing Slashes\n\n```xml\n\u003C!-- Ensure trailing slash on directories -->\n\u003CPropertyGroup>\n  \u003COutDir Condition=\"'$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')\">$(OutDir)\\\u003C\u002FOutDir>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- Normalize paths for cross-platform -->\n\u003CPropertyGroup>\n  \u003CTargetRefPath>$([MSBuild]::NormalizePath('$(TargetDir)', 'ref', '$(TargetFileName)'))\u003C\u002FTargetRefPath>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- Make relative path absolute -->\n\u003CPropertyGroup>\n  \u003CMSBuildProjectExtensionsPath\n      Condition=\"'$([System.IO.Path]::IsPathRooted('$(MSBuildProjectExtensionsPath)'))' == 'false'\">\n    $([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '$(MSBuildProjectExtensionsPath)'))\n  \u003C\u002FMSBuildProjectExtensionsPath>\n\u003C\u002FPropertyGroup>\n```\n\n### Preferred path functions\n\n| Function | Purpose |\n|---|---|\n| `$([MSBuild]::NormalizePath(...))` | Combine and normalize (cross-platform) |\n| `$([System.IO.Path]::Combine(...))` | Combine path segments |\n| `$([System.IO.Path]::IsPathRooted(...))` | Check if absolute |\n| `HasTrailingSlash(...)` | Check for trailing slash |\n| `$([MSBuild]::GetDirectoryNameOfFileAbove(...))` | Walk up directory tree |\n| `$(MSBuildThisFileDirectory)` | Directory of current file |\n\n## Target Framework Detection Helpers\n\n```xml\n\u003C!-- Get TFM identifier -->\n\u003CPropertyGroup Condition=\"'$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)'))' == '.NETCoreApp'\">\n  \u003CNetCoreBuild>true\u003C\u002FNetCoreBuild>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- Check TFM compatibility -->\n\u003CPropertyGroup Condition=\"$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net472'))\">\n  \u003CUseFrozenVersions>true\u003C\u002FUseFrozenVersions>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- OS detection -->\n\u003CPropertyGroup Condition=\"$([MSBuild]::IsOSPlatform('windows'))\">\n  \u003CDefineConstants>$(DefineConstants);TEST_ISWINDOWS\u003C\u002FDefineConstants>\n\u003C\u002FPropertyGroup>\n```\n\n## Guard Properties\n\nMark that a file has been imported to prevent double-imports:\n\n```xml\n\u003C!-- At the end of MySDK.props -->\n\u003CPropertyGroup>\n  \u003CMySDKPropsImported>true\u003C\u002FMySDKPropsImported>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- At the top of MySDK.targets -->\n\u003CImport Project=\"MySDK.props\" Condition=\"'$(MySDKPropsImported)' != 'true'\" \u002F>\n```\n\n## Feature Gating by MSBuild Version\n\n```xml\n\u003CPropertyGroup Condition=\"$([MSBuild]::AreFeaturesEnabled('17.10'))\">\n  \u003CUseNewBehavior>true\u003C\u002FUseNewBehavior>\n\u003C\u002FPropertyGroup>\n```\n\n## Fallback Chains\n\nSet via primary source first, then fall back:\n\n```xml\n\u003CPropertyGroup>\n  \u003CTlbExpPath>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToDotNetFrameworkSdkFile('tlbexp.exe'))\u003C\u002FTlbExpPath>\n  \u003CTlbExpPath Condition=\"'$(TlbExpPath)' == ''\">$(_NetFxToolsDir)TlbExp.exe\u003C\u002FTlbExpPath>\n\u003C\u002FPropertyGroup>\n```\n\n## Last Write Wins — Evaluation Order\n\nMSBuild evaluates properties top-to-bottom. The last assignment wins:\n\n```xml\n\u003C!-- File 1 (imported first) -->\n\u003CMyProp>value1\u003C\u002FMyProp>        \u003C!-- set to value1 -->\n\u003C!-- File 2 (imported second) -->\n\u003CMyProp>value2\u003C\u002FMyProp>        \u003C!-- overwritten to value2 -->\n\u003C!-- File 3 (imported third) -->\n\u003CMyProp Condition=\"'$(MyProp)' == ''\">value3\u003C\u002FMyProp>  \u003C!-- NOT set — already value2 -->\n```\n\nProperties in `.targets` (imported late) override properties in `.props` (imported early) and the project file.\n\n## Common Pitfalls\n\n- **Unquoted conditions** (`$(X)==true`) fail when the property is empty. Always quote both sides.\n- **Overwriting DefineConstants** (`\u003CDefineConstants>MY_CONST\u003C\u002FDefineConstants>`) drops all prior constants. Always append with `$(DefineConstants);`.\n- **Hardcoded absolute paths** break portability. Use `$(MSBuildThisFileDirectory)` or `$([MSBuild]::NormalizePath(...))`.\n- **Missing `Condition` on defaults** makes properties non-overridable. Add `Condition=\"'$(Prop)' == ''\"` for values meant to be defaults.\n",{"data":35,"body":36},{"name":4,"description":6,"license":25},{"type":37,"children":38},"root",[39,48,54,61,74,133,140,189,195,200,291,312,356,362,367,412,418,560,566,696,702,814,820,825,885,891,921,927,932,969,975,980,1035,1054,1060,1154],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"msbuild-property-patterns",[45],{"type":46,"value":47},"text","MSBuild Property Patterns",{"type":40,"tag":49,"props":50,"children":51},"p",{},[52],{"type":46,"value":53},"Canonical property definition and manipulation patterns from the MSBuild repository.",{"type":40,"tag":55,"props":56,"children":58},"h2",{"id":57},"conditional-defaults-the-foundational-pattern",[59],{"type":46,"value":60},"Conditional Defaults — The Foundational Pattern",{"type":40,"tag":49,"props":62,"children":63},{},[64,66,72],{"type":46,"value":65},"Set a property ",{"type":40,"tag":67,"props":68,"children":69},"strong",{},[70],{"type":46,"value":71},"only if not already set",{"type":46,"value":73},", allowing callers to override:",{"type":40,"tag":75,"props":76,"children":81},"pre",{"className":77,"code":78,"language":79,"meta":80,"style":80},"language-xml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CPropertyGroup>\n  \u003CConfiguration Condition=\"'$(Configuration)' == ''\">Debug\u003C\u002FConfiguration>\n  \u003CPlatform Condition=\"'$(Platform)' == ''\">AnyCPU\u003C\u002FPlatform>\n  \u003CBuildInParallel Condition=\"'$(BuildInParallel)' == ''\">true\u003C\u002FBuildInParallel>\n\u003C\u002FPropertyGroup>\n","xml","",[82],{"type":40,"tag":83,"props":84,"children":85},"code",{"__ignoreMap":80},[86,97,106,115,124],{"type":40,"tag":87,"props":88,"children":91},"span",{"class":89,"line":90},"line",1,[92],{"type":40,"tag":87,"props":93,"children":94},{},[95],{"type":46,"value":96},"\u003CPropertyGroup>\n",{"type":40,"tag":87,"props":98,"children":100},{"class":89,"line":99},2,[101],{"type":40,"tag":87,"props":102,"children":103},{},[104],{"type":46,"value":105},"  \u003CConfiguration Condition=\"'$(Configuration)' == ''\">Debug\u003C\u002FConfiguration>\n",{"type":40,"tag":87,"props":107,"children":109},{"class":89,"line":108},3,[110],{"type":40,"tag":87,"props":111,"children":112},{},[113],{"type":46,"value":114},"  \u003CPlatform Condition=\"'$(Platform)' == ''\">AnyCPU\u003C\u002FPlatform>\n",{"type":40,"tag":87,"props":116,"children":118},{"class":89,"line":117},4,[119],{"type":40,"tag":87,"props":120,"children":121},{},[122],{"type":46,"value":123},"  \u003CBuildInParallel Condition=\"'$(BuildInParallel)' == ''\">true\u003C\u002FBuildInParallel>\n",{"type":40,"tag":87,"props":125,"children":127},{"class":89,"line":126},5,[128],{"type":40,"tag":87,"props":129,"children":130},{},[131],{"type":46,"value":132},"\u003C\u002FPropertyGroup>\n",{"type":40,"tag":134,"props":135,"children":137},"h3",{"id":136},"rules",[138],{"type":46,"value":139},"Rules",{"type":40,"tag":141,"props":142,"children":143},"ul",{},[144,156,177],{"type":40,"tag":145,"props":146,"children":147},"li",{},[148,150],{"type":46,"value":149},"Always quote both sides: ",{"type":40,"tag":83,"props":151,"children":153},{"className":152},[],[154],{"type":46,"value":155},"'$(Prop)' == ''",{"type":40,"tag":145,"props":157,"children":158},{},[159,161,167,169,175],{"type":46,"value":160},"In ",{"type":40,"tag":83,"props":162,"children":164},{"className":163},[],[165],{"type":46,"value":166},".props",{"type":46,"value":168},": creates overridable defaults. In ",{"type":40,"tag":83,"props":170,"children":172},{"className":171},[],[173],{"type":46,"value":174},".targets",{"type":46,"value":176},": creates fallbacks.",{"type":40,"tag":145,"props":178,"children":179},{},[180,182,187],{"type":46,"value":181},"Properties without the condition ",{"type":40,"tag":67,"props":183,"children":184},{},[185],{"type":46,"value":186},"cannot be overridden",{"type":46,"value":188}," by earlier imports.",{"type":40,"tag":55,"props":190,"children":192},{"id":191},"nested-conditional-groups",[193],{"type":46,"value":194},"Nested Conditional Groups",{"type":40,"tag":49,"props":196,"children":197},{},[198],{"type":46,"value":199},"Group related properties under a shared condition:",{"type":40,"tag":75,"props":201,"children":203},{"className":77,"code":202,"language":79,"meta":80,"style":80},"\u003CPropertyGroup Condition=\"$(TargetFramework.StartsWith('net4'))\">\n  \u003CDefineConstants>$(DefineConstants);FEATURE_APARTMENT_STATE\u003C\u002FDefineConstants>\n  \u003CDefineConstants>$(DefineConstants);FEATURE_APM\u003C\u002FDefineConstants>\n  \u003CFeatureAppDomain>true\u003C\u002FFeatureAppDomain>\n\u003C\u002FPropertyGroup>\n\n\u003CPropertyGroup Condition=\"'$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)'))' == '.NETCoreApp'\">\n  \u003CNetCoreBuild>true\u003C\u002FNetCoreBuild>\n  \u003CDefineConstants>$(DefineConstants);RUNTIME_TYPE_NETCORE\u003C\u002FDefineConstants>\n\u003C\u002FPropertyGroup>\n",[204],{"type":40,"tag":83,"props":205,"children":206},{"__ignoreMap":80},[207,215,223,231,239,246,256,265,274,283],{"type":40,"tag":87,"props":208,"children":209},{"class":89,"line":90},[210],{"type":40,"tag":87,"props":211,"children":212},{},[213],{"type":46,"value":214},"\u003CPropertyGroup Condition=\"$(TargetFramework.StartsWith('net4'))\">\n",{"type":40,"tag":87,"props":216,"children":217},{"class":89,"line":99},[218],{"type":40,"tag":87,"props":219,"children":220},{},[221],{"type":46,"value":222},"  \u003CDefineConstants>$(DefineConstants);FEATURE_APARTMENT_STATE\u003C\u002FDefineConstants>\n",{"type":40,"tag":87,"props":224,"children":225},{"class":89,"line":108},[226],{"type":40,"tag":87,"props":227,"children":228},{},[229],{"type":46,"value":230},"  \u003CDefineConstants>$(DefineConstants);FEATURE_APM\u003C\u002FDefineConstants>\n",{"type":40,"tag":87,"props":232,"children":233},{"class":89,"line":117},[234],{"type":40,"tag":87,"props":235,"children":236},{},[237],{"type":46,"value":238},"  \u003CFeatureAppDomain>true\u003C\u002FFeatureAppDomain>\n",{"type":40,"tag":87,"props":240,"children":241},{"class":89,"line":126},[242],{"type":40,"tag":87,"props":243,"children":244},{},[245],{"type":46,"value":132},{"type":40,"tag":87,"props":247,"children":249},{"class":89,"line":248},6,[250],{"type":40,"tag":87,"props":251,"children":253},{"emptyLinePlaceholder":252},true,[254],{"type":46,"value":255},"\n",{"type":40,"tag":87,"props":257,"children":259},{"class":89,"line":258},7,[260],{"type":40,"tag":87,"props":261,"children":262},{},[263],{"type":46,"value":264},"\u003CPropertyGroup Condition=\"'$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)'))' == '.NETCoreApp'\">\n",{"type":40,"tag":87,"props":266,"children":268},{"class":89,"line":267},8,[269],{"type":40,"tag":87,"props":270,"children":271},{},[272],{"type":46,"value":273},"  \u003CNetCoreBuild>true\u003C\u002FNetCoreBuild>\n",{"type":40,"tag":87,"props":275,"children":277},{"class":89,"line":276},9,[278],{"type":40,"tag":87,"props":279,"children":280},{},[281],{"type":46,"value":282},"  \u003CDefineConstants>$(DefineConstants);RUNTIME_TYPE_NETCORE\u003C\u002FDefineConstants>\n",{"type":40,"tag":87,"props":284,"children":286},{"class":89,"line":285},10,[287],{"type":40,"tag":87,"props":288,"children":289},{},[290],{"type":46,"value":132},{"type":40,"tag":49,"props":292,"children":293},{},[294,296,302,304,310],{"type":46,"value":295},"Use the outer ",{"type":40,"tag":83,"props":297,"children":299},{"className":298},[],[300],{"type":46,"value":301},"Condition",{"type":46,"value":303}," on ",{"type":40,"tag":83,"props":305,"children":307},{"className":306},[],[308],{"type":46,"value":309},"PropertyGroup",{"type":46,"value":311}," to avoid repeating the same condition on every property.",{"type":40,"tag":313,"props":314,"children":315},"blockquote",{},[316],{"type":40,"tag":49,"props":317,"children":318},{},[319,324,326,332,334,339,341,347,349,354],{"type":40,"tag":67,"props":320,"children":321},{},[322],{"type":46,"value":323},"Warning:",{"type":46,"value":325}," ",{"type":40,"tag":83,"props":327,"children":329},{"className":328},[],[330],{"type":46,"value":331},"$(TargetFramework)",{"type":46,"value":333}," is empty in ",{"type":40,"tag":83,"props":335,"children":337},{"className":336},[],[338],{"type":46,"value":166},{"type":46,"value":340}," files for single-targeting projects until the project body is evaluated. Place ",{"type":40,"tag":83,"props":342,"children":344},{"className":343},[],[345],{"type":46,"value":346},"TargetFramework",{"type":46,"value":348},"-conditioned property groups in ",{"type":40,"tag":83,"props":350,"children":352},{"className":351},[],[353],{"type":46,"value":174},{"type":46,"value":355}," files (or the project file itself), where the value is always available.",{"type":40,"tag":55,"props":357,"children":359},{"id":358},"composition-semicolon-concatenation",[360],{"type":46,"value":361},"Composition — Semicolon Concatenation",{"type":40,"tag":49,"props":363,"children":364},{},[365],{"type":46,"value":366},"Properties that hold lists use semicolons. Always include the existing value when appending:",{"type":40,"tag":75,"props":368,"children":370},{"className":77,"code":369,"language":79,"meta":80,"style":80},"\u003CPropertyGroup>\n  \u003CDefineConstants>$(DefineConstants);MY_FEATURE\u003C\u002FDefineConstants>\n  \u003CNoWarn>$(NoWarn);NU5131;IDE0005\u003C\u002FNoWarn>\n  \u003CLibraryTargetFrameworks>$(FullFrameworkTFM);$(LatestDotNetCoreForMSBuild);netstandard2.0\u003C\u002FLibraryTargetFrameworks>\n\u003C\u002FPropertyGroup>\n",[371],{"type":40,"tag":83,"props":372,"children":373},{"__ignoreMap":80},[374,381,389,397,405],{"type":40,"tag":87,"props":375,"children":376},{"class":89,"line":90},[377],{"type":40,"tag":87,"props":378,"children":379},{},[380],{"type":46,"value":96},{"type":40,"tag":87,"props":382,"children":383},{"class":89,"line":99},[384],{"type":40,"tag":87,"props":385,"children":386},{},[387],{"type":46,"value":388},"  \u003CDefineConstants>$(DefineConstants);MY_FEATURE\u003C\u002FDefineConstants>\n",{"type":40,"tag":87,"props":390,"children":391},{"class":89,"line":108},[392],{"type":40,"tag":87,"props":393,"children":394},{},[395],{"type":46,"value":396},"  \u003CNoWarn>$(NoWarn);NU5131;IDE0005\u003C\u002FNoWarn>\n",{"type":40,"tag":87,"props":398,"children":399},{"class":89,"line":117},[400],{"type":40,"tag":87,"props":401,"children":402},{},[403],{"type":46,"value":404},"  \u003CLibraryTargetFrameworks>$(FullFrameworkTFM);$(LatestDotNetCoreForMSBuild);netstandard2.0\u003C\u002FLibraryTargetFrameworks>\n",{"type":40,"tag":87,"props":406,"children":407},{"class":89,"line":126},[408],{"type":40,"tag":87,"props":409,"children":410},{},[411],{"type":46,"value":132},{"type":40,"tag":55,"props":413,"children":415},{"id":414},"path-normalization-and-trailing-slashes",[416],{"type":46,"value":417},"Path Normalization and Trailing Slashes",{"type":40,"tag":75,"props":419,"children":421},{"className":77,"code":420,"language":79,"meta":80,"style":80},"\u003C!-- Ensure trailing slash on directories -->\n\u003CPropertyGroup>\n  \u003COutDir Condition=\"'$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')\">$(OutDir)\\\u003C\u002FOutDir>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- Normalize paths for cross-platform -->\n\u003CPropertyGroup>\n  \u003CTargetRefPath>$([MSBuild]::NormalizePath('$(TargetDir)', 'ref', '$(TargetFileName)'))\u003C\u002FTargetRefPath>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- Make relative path absolute -->\n\u003CPropertyGroup>\n  \u003CMSBuildProjectExtensionsPath\n      Condition=\"'$([System.IO.Path]::IsPathRooted('$(MSBuildProjectExtensionsPath)'))' == 'false'\">\n    $([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '$(MSBuildProjectExtensionsPath)'))\n  \u003C\u002FMSBuildProjectExtensionsPath>\n\u003C\u002FPropertyGroup>\n",[422],{"type":40,"tag":83,"props":423,"children":424},{"__ignoreMap":80},[425,433,440,448,455,462,470,477,485,492,499,508,516,525,534,543,552],{"type":40,"tag":87,"props":426,"children":427},{"class":89,"line":90},[428],{"type":40,"tag":87,"props":429,"children":430},{},[431],{"type":46,"value":432},"\u003C!-- Ensure trailing slash on directories -->\n",{"type":40,"tag":87,"props":434,"children":435},{"class":89,"line":99},[436],{"type":40,"tag":87,"props":437,"children":438},{},[439],{"type":46,"value":96},{"type":40,"tag":87,"props":441,"children":442},{"class":89,"line":108},[443],{"type":40,"tag":87,"props":444,"children":445},{},[446],{"type":46,"value":447},"  \u003COutDir Condition=\"'$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')\">$(OutDir)\\\u003C\u002FOutDir>\n",{"type":40,"tag":87,"props":449,"children":450},{"class":89,"line":117},[451],{"type":40,"tag":87,"props":452,"children":453},{},[454],{"type":46,"value":132},{"type":40,"tag":87,"props":456,"children":457},{"class":89,"line":126},[458],{"type":40,"tag":87,"props":459,"children":460},{"emptyLinePlaceholder":252},[461],{"type":46,"value":255},{"type":40,"tag":87,"props":463,"children":464},{"class":89,"line":248},[465],{"type":40,"tag":87,"props":466,"children":467},{},[468],{"type":46,"value":469},"\u003C!-- Normalize paths for cross-platform -->\n",{"type":40,"tag":87,"props":471,"children":472},{"class":89,"line":258},[473],{"type":40,"tag":87,"props":474,"children":475},{},[476],{"type":46,"value":96},{"type":40,"tag":87,"props":478,"children":479},{"class":89,"line":267},[480],{"type":40,"tag":87,"props":481,"children":482},{},[483],{"type":46,"value":484},"  \u003CTargetRefPath>$([MSBuild]::NormalizePath('$(TargetDir)', 'ref', '$(TargetFileName)'))\u003C\u002FTargetRefPath>\n",{"type":40,"tag":87,"props":486,"children":487},{"class":89,"line":276},[488],{"type":40,"tag":87,"props":489,"children":490},{},[491],{"type":46,"value":132},{"type":40,"tag":87,"props":493,"children":494},{"class":89,"line":285},[495],{"type":40,"tag":87,"props":496,"children":497},{"emptyLinePlaceholder":252},[498],{"type":46,"value":255},{"type":40,"tag":87,"props":500,"children":502},{"class":89,"line":501},11,[503],{"type":40,"tag":87,"props":504,"children":505},{},[506],{"type":46,"value":507},"\u003C!-- Make relative path absolute -->\n",{"type":40,"tag":87,"props":509,"children":511},{"class":89,"line":510},12,[512],{"type":40,"tag":87,"props":513,"children":514},{},[515],{"type":46,"value":96},{"type":40,"tag":87,"props":517,"children":519},{"class":89,"line":518},13,[520],{"type":40,"tag":87,"props":521,"children":522},{},[523],{"type":46,"value":524},"  \u003CMSBuildProjectExtensionsPath\n",{"type":40,"tag":87,"props":526,"children":528},{"class":89,"line":527},14,[529],{"type":40,"tag":87,"props":530,"children":531},{},[532],{"type":46,"value":533},"      Condition=\"'$([System.IO.Path]::IsPathRooted('$(MSBuildProjectExtensionsPath)'))' == 'false'\">\n",{"type":40,"tag":87,"props":535,"children":537},{"class":89,"line":536},15,[538],{"type":40,"tag":87,"props":539,"children":540},{},[541],{"type":46,"value":542},"    $([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '$(MSBuildProjectExtensionsPath)'))\n",{"type":40,"tag":87,"props":544,"children":546},{"class":89,"line":545},16,[547],{"type":40,"tag":87,"props":548,"children":549},{},[550],{"type":46,"value":551},"  \u003C\u002FMSBuildProjectExtensionsPath>\n",{"type":40,"tag":87,"props":553,"children":555},{"class":89,"line":554},17,[556],{"type":40,"tag":87,"props":557,"children":558},{},[559],{"type":46,"value":132},{"type":40,"tag":134,"props":561,"children":563},{"id":562},"preferred-path-functions",[564],{"type":46,"value":565},"Preferred path functions",{"type":40,"tag":567,"props":568,"children":569},"table",{},[570,589],{"type":40,"tag":571,"props":572,"children":573},"thead",{},[574],{"type":40,"tag":575,"props":576,"children":577},"tr",{},[578,584],{"type":40,"tag":579,"props":580,"children":581},"th",{},[582],{"type":46,"value":583},"Function",{"type":40,"tag":579,"props":585,"children":586},{},[587],{"type":46,"value":588},"Purpose",{"type":40,"tag":590,"props":591,"children":592},"tbody",{},[593,611,628,645,662,679],{"type":40,"tag":575,"props":594,"children":595},{},[596,606],{"type":40,"tag":597,"props":598,"children":599},"td",{},[600],{"type":40,"tag":83,"props":601,"children":603},{"className":602},[],[604],{"type":46,"value":605},"$([MSBuild]::NormalizePath(...))",{"type":40,"tag":597,"props":607,"children":608},{},[609],{"type":46,"value":610},"Combine and normalize (cross-platform)",{"type":40,"tag":575,"props":612,"children":613},{},[614,623],{"type":40,"tag":597,"props":615,"children":616},{},[617],{"type":40,"tag":83,"props":618,"children":620},{"className":619},[],[621],{"type":46,"value":622},"$([System.IO.Path]::Combine(...))",{"type":40,"tag":597,"props":624,"children":625},{},[626],{"type":46,"value":627},"Combine path segments",{"type":40,"tag":575,"props":629,"children":630},{},[631,640],{"type":40,"tag":597,"props":632,"children":633},{},[634],{"type":40,"tag":83,"props":635,"children":637},{"className":636},[],[638],{"type":46,"value":639},"$([System.IO.Path]::IsPathRooted(...))",{"type":40,"tag":597,"props":641,"children":642},{},[643],{"type":46,"value":644},"Check if absolute",{"type":40,"tag":575,"props":646,"children":647},{},[648,657],{"type":40,"tag":597,"props":649,"children":650},{},[651],{"type":40,"tag":83,"props":652,"children":654},{"className":653},[],[655],{"type":46,"value":656},"HasTrailingSlash(...)",{"type":40,"tag":597,"props":658,"children":659},{},[660],{"type":46,"value":661},"Check for trailing slash",{"type":40,"tag":575,"props":663,"children":664},{},[665,674],{"type":40,"tag":597,"props":666,"children":667},{},[668],{"type":40,"tag":83,"props":669,"children":671},{"className":670},[],[672],{"type":46,"value":673},"$([MSBuild]::GetDirectoryNameOfFileAbove(...))",{"type":40,"tag":597,"props":675,"children":676},{},[677],{"type":46,"value":678},"Walk up directory tree",{"type":40,"tag":575,"props":680,"children":681},{},[682,691],{"type":40,"tag":597,"props":683,"children":684},{},[685],{"type":40,"tag":83,"props":686,"children":688},{"className":687},[],[689],{"type":46,"value":690},"$(MSBuildThisFileDirectory)",{"type":40,"tag":597,"props":692,"children":693},{},[694],{"type":46,"value":695},"Directory of current file",{"type":40,"tag":55,"props":697,"children":699},{"id":698},"target-framework-detection-helpers",[700],{"type":46,"value":701},"Target Framework Detection Helpers",{"type":40,"tag":75,"props":703,"children":705},{"className":77,"code":704,"language":79,"meta":80,"style":80},"\u003C!-- Get TFM identifier -->\n\u003CPropertyGroup Condition=\"'$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)'))' == '.NETCoreApp'\">\n  \u003CNetCoreBuild>true\u003C\u002FNetCoreBuild>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- Check TFM compatibility -->\n\u003CPropertyGroup Condition=\"$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net472'))\">\n  \u003CUseFrozenVersions>true\u003C\u002FUseFrozenVersions>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- OS detection -->\n\u003CPropertyGroup Condition=\"$([MSBuild]::IsOSPlatform('windows'))\">\n  \u003CDefineConstants>$(DefineConstants);TEST_ISWINDOWS\u003C\u002FDefineConstants>\n\u003C\u002FPropertyGroup>\n",[706],{"type":40,"tag":83,"props":707,"children":708},{"__ignoreMap":80},[709,717,724,731,738,745,753,761,769,776,783,791,799,807],{"type":40,"tag":87,"props":710,"children":711},{"class":89,"line":90},[712],{"type":40,"tag":87,"props":713,"children":714},{},[715],{"type":46,"value":716},"\u003C!-- Get TFM identifier -->\n",{"type":40,"tag":87,"props":718,"children":719},{"class":89,"line":99},[720],{"type":40,"tag":87,"props":721,"children":722},{},[723],{"type":46,"value":264},{"type":40,"tag":87,"props":725,"children":726},{"class":89,"line":108},[727],{"type":40,"tag":87,"props":728,"children":729},{},[730],{"type":46,"value":273},{"type":40,"tag":87,"props":732,"children":733},{"class":89,"line":117},[734],{"type":40,"tag":87,"props":735,"children":736},{},[737],{"type":46,"value":132},{"type":40,"tag":87,"props":739,"children":740},{"class":89,"line":126},[741],{"type":40,"tag":87,"props":742,"children":743},{"emptyLinePlaceholder":252},[744],{"type":46,"value":255},{"type":40,"tag":87,"props":746,"children":747},{"class":89,"line":248},[748],{"type":40,"tag":87,"props":749,"children":750},{},[751],{"type":46,"value":752},"\u003C!-- Check TFM compatibility -->\n",{"type":40,"tag":87,"props":754,"children":755},{"class":89,"line":258},[756],{"type":40,"tag":87,"props":757,"children":758},{},[759],{"type":46,"value":760},"\u003CPropertyGroup Condition=\"$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net472'))\">\n",{"type":40,"tag":87,"props":762,"children":763},{"class":89,"line":267},[764],{"type":40,"tag":87,"props":765,"children":766},{},[767],{"type":46,"value":768},"  \u003CUseFrozenVersions>true\u003C\u002FUseFrozenVersions>\n",{"type":40,"tag":87,"props":770,"children":771},{"class":89,"line":276},[772],{"type":40,"tag":87,"props":773,"children":774},{},[775],{"type":46,"value":132},{"type":40,"tag":87,"props":777,"children":778},{"class":89,"line":285},[779],{"type":40,"tag":87,"props":780,"children":781},{"emptyLinePlaceholder":252},[782],{"type":46,"value":255},{"type":40,"tag":87,"props":784,"children":785},{"class":89,"line":501},[786],{"type":40,"tag":87,"props":787,"children":788},{},[789],{"type":46,"value":790},"\u003C!-- OS detection -->\n",{"type":40,"tag":87,"props":792,"children":793},{"class":89,"line":510},[794],{"type":40,"tag":87,"props":795,"children":796},{},[797],{"type":46,"value":798},"\u003CPropertyGroup Condition=\"$([MSBuild]::IsOSPlatform('windows'))\">\n",{"type":40,"tag":87,"props":800,"children":801},{"class":89,"line":518},[802],{"type":40,"tag":87,"props":803,"children":804},{},[805],{"type":46,"value":806},"  \u003CDefineConstants>$(DefineConstants);TEST_ISWINDOWS\u003C\u002FDefineConstants>\n",{"type":40,"tag":87,"props":808,"children":809},{"class":89,"line":527},[810],{"type":40,"tag":87,"props":811,"children":812},{},[813],{"type":46,"value":132},{"type":40,"tag":55,"props":815,"children":817},{"id":816},"guard-properties",[818],{"type":46,"value":819},"Guard Properties",{"type":40,"tag":49,"props":821,"children":822},{},[823],{"type":46,"value":824},"Mark that a file has been imported to prevent double-imports:",{"type":40,"tag":75,"props":826,"children":828},{"className":77,"code":827,"language":79,"meta":80,"style":80},"\u003C!-- At the end of MySDK.props -->\n\u003CPropertyGroup>\n  \u003CMySDKPropsImported>true\u003C\u002FMySDKPropsImported>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- At the top of MySDK.targets -->\n\u003CImport Project=\"MySDK.props\" Condition=\"'$(MySDKPropsImported)' != 'true'\" \u002F>\n",[829],{"type":40,"tag":83,"props":830,"children":831},{"__ignoreMap":80},[832,840,847,855,862,869,877],{"type":40,"tag":87,"props":833,"children":834},{"class":89,"line":90},[835],{"type":40,"tag":87,"props":836,"children":837},{},[838],{"type":46,"value":839},"\u003C!-- At the end of MySDK.props -->\n",{"type":40,"tag":87,"props":841,"children":842},{"class":89,"line":99},[843],{"type":40,"tag":87,"props":844,"children":845},{},[846],{"type":46,"value":96},{"type":40,"tag":87,"props":848,"children":849},{"class":89,"line":108},[850],{"type":40,"tag":87,"props":851,"children":852},{},[853],{"type":46,"value":854},"  \u003CMySDKPropsImported>true\u003C\u002FMySDKPropsImported>\n",{"type":40,"tag":87,"props":856,"children":857},{"class":89,"line":117},[858],{"type":40,"tag":87,"props":859,"children":860},{},[861],{"type":46,"value":132},{"type":40,"tag":87,"props":863,"children":864},{"class":89,"line":126},[865],{"type":40,"tag":87,"props":866,"children":867},{"emptyLinePlaceholder":252},[868],{"type":46,"value":255},{"type":40,"tag":87,"props":870,"children":871},{"class":89,"line":248},[872],{"type":40,"tag":87,"props":873,"children":874},{},[875],{"type":46,"value":876},"\u003C!-- At the top of MySDK.targets -->\n",{"type":40,"tag":87,"props":878,"children":879},{"class":89,"line":258},[880],{"type":40,"tag":87,"props":881,"children":882},{},[883],{"type":46,"value":884},"\u003CImport Project=\"MySDK.props\" Condition=\"'$(MySDKPropsImported)' != 'true'\" \u002F>\n",{"type":40,"tag":55,"props":886,"children":888},{"id":887},"feature-gating-by-msbuild-version",[889],{"type":46,"value":890},"Feature Gating by MSBuild Version",{"type":40,"tag":75,"props":892,"children":894},{"className":77,"code":893,"language":79,"meta":80,"style":80},"\u003CPropertyGroup Condition=\"$([MSBuild]::AreFeaturesEnabled('17.10'))\">\n  \u003CUseNewBehavior>true\u003C\u002FUseNewBehavior>\n\u003C\u002FPropertyGroup>\n",[895],{"type":40,"tag":83,"props":896,"children":897},{"__ignoreMap":80},[898,906,914],{"type":40,"tag":87,"props":899,"children":900},{"class":89,"line":90},[901],{"type":40,"tag":87,"props":902,"children":903},{},[904],{"type":46,"value":905},"\u003CPropertyGroup Condition=\"$([MSBuild]::AreFeaturesEnabled('17.10'))\">\n",{"type":40,"tag":87,"props":907,"children":908},{"class":89,"line":99},[909],{"type":40,"tag":87,"props":910,"children":911},{},[912],{"type":46,"value":913},"  \u003CUseNewBehavior>true\u003C\u002FUseNewBehavior>\n",{"type":40,"tag":87,"props":915,"children":916},{"class":89,"line":108},[917],{"type":40,"tag":87,"props":918,"children":919},{},[920],{"type":46,"value":132},{"type":40,"tag":55,"props":922,"children":924},{"id":923},"fallback-chains",[925],{"type":46,"value":926},"Fallback Chains",{"type":40,"tag":49,"props":928,"children":929},{},[930],{"type":46,"value":931},"Set via primary source first, then fall back:",{"type":40,"tag":75,"props":933,"children":935},{"className":77,"code":934,"language":79,"meta":80,"style":80},"\u003CPropertyGroup>\n  \u003CTlbExpPath>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToDotNetFrameworkSdkFile('tlbexp.exe'))\u003C\u002FTlbExpPath>\n  \u003CTlbExpPath Condition=\"'$(TlbExpPath)' == ''\">$(_NetFxToolsDir)TlbExp.exe\u003C\u002FTlbExpPath>\n\u003C\u002FPropertyGroup>\n",[936],{"type":40,"tag":83,"props":937,"children":938},{"__ignoreMap":80},[939,946,954,962],{"type":40,"tag":87,"props":940,"children":941},{"class":89,"line":90},[942],{"type":40,"tag":87,"props":943,"children":944},{},[945],{"type":46,"value":96},{"type":40,"tag":87,"props":947,"children":948},{"class":89,"line":99},[949],{"type":40,"tag":87,"props":950,"children":951},{},[952],{"type":46,"value":953},"  \u003CTlbExpPath>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToDotNetFrameworkSdkFile('tlbexp.exe'))\u003C\u002FTlbExpPath>\n",{"type":40,"tag":87,"props":955,"children":956},{"class":89,"line":108},[957],{"type":40,"tag":87,"props":958,"children":959},{},[960],{"type":46,"value":961},"  \u003CTlbExpPath Condition=\"'$(TlbExpPath)' == ''\">$(_NetFxToolsDir)TlbExp.exe\u003C\u002FTlbExpPath>\n",{"type":40,"tag":87,"props":963,"children":964},{"class":89,"line":117},[965],{"type":40,"tag":87,"props":966,"children":967},{},[968],{"type":46,"value":132},{"type":40,"tag":55,"props":970,"children":972},{"id":971},"last-write-wins-evaluation-order",[973],{"type":46,"value":974},"Last Write Wins — Evaluation Order",{"type":40,"tag":49,"props":976,"children":977},{},[978],{"type":46,"value":979},"MSBuild evaluates properties top-to-bottom. The last assignment wins:",{"type":40,"tag":75,"props":981,"children":983},{"className":77,"code":982,"language":79,"meta":80,"style":80},"\u003C!-- File 1 (imported first) -->\n\u003CMyProp>value1\u003C\u002FMyProp>        \u003C!-- set to value1 -->\n\u003C!-- File 2 (imported second) -->\n\u003CMyProp>value2\u003C\u002FMyProp>        \u003C!-- overwritten to value2 -->\n\u003C!-- File 3 (imported third) -->\n\u003CMyProp Condition=\"'$(MyProp)' == ''\">value3\u003C\u002FMyProp>  \u003C!-- NOT set — already value2 -->\n",[984],{"type":40,"tag":83,"props":985,"children":986},{"__ignoreMap":80},[987,995,1003,1011,1019,1027],{"type":40,"tag":87,"props":988,"children":989},{"class":89,"line":90},[990],{"type":40,"tag":87,"props":991,"children":992},{},[993],{"type":46,"value":994},"\u003C!-- File 1 (imported first) -->\n",{"type":40,"tag":87,"props":996,"children":997},{"class":89,"line":99},[998],{"type":40,"tag":87,"props":999,"children":1000},{},[1001],{"type":46,"value":1002},"\u003CMyProp>value1\u003C\u002FMyProp>        \u003C!-- set to value1 -->\n",{"type":40,"tag":87,"props":1004,"children":1005},{"class":89,"line":108},[1006],{"type":40,"tag":87,"props":1007,"children":1008},{},[1009],{"type":46,"value":1010},"\u003C!-- File 2 (imported second) -->\n",{"type":40,"tag":87,"props":1012,"children":1013},{"class":89,"line":117},[1014],{"type":40,"tag":87,"props":1015,"children":1016},{},[1017],{"type":46,"value":1018},"\u003CMyProp>value2\u003C\u002FMyProp>        \u003C!-- overwritten to value2 -->\n",{"type":40,"tag":87,"props":1020,"children":1021},{"class":89,"line":126},[1022],{"type":40,"tag":87,"props":1023,"children":1024},{},[1025],{"type":46,"value":1026},"\u003C!-- File 3 (imported third) -->\n",{"type":40,"tag":87,"props":1028,"children":1029},{"class":89,"line":248},[1030],{"type":40,"tag":87,"props":1031,"children":1032},{},[1033],{"type":46,"value":1034},"\u003CMyProp Condition=\"'$(MyProp)' == ''\">value3\u003C\u002FMyProp>  \u003C!-- NOT set — already value2 -->\n",{"type":40,"tag":49,"props":1036,"children":1037},{},[1038,1040,1045,1047,1052],{"type":46,"value":1039},"Properties in ",{"type":40,"tag":83,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":46,"value":174},{"type":46,"value":1046}," (imported late) override properties in ",{"type":40,"tag":83,"props":1048,"children":1050},{"className":1049},[],[1051],{"type":46,"value":166},{"type":46,"value":1053}," (imported early) and the project file.",{"type":40,"tag":55,"props":1055,"children":1057},{"id":1056},"common-pitfalls",[1058],{"type":46,"value":1059},"Common Pitfalls",{"type":40,"tag":141,"props":1061,"children":1062},{},[1063,1081,1106,1129],{"type":40,"tag":145,"props":1064,"children":1065},{},[1066,1071,1073,1079],{"type":40,"tag":67,"props":1067,"children":1068},{},[1069],{"type":46,"value":1070},"Unquoted conditions",{"type":46,"value":1072}," (",{"type":40,"tag":83,"props":1074,"children":1076},{"className":1075},[],[1077],{"type":46,"value":1078},"$(X)==true",{"type":46,"value":1080},") fail when the property is empty. Always quote both sides.",{"type":40,"tag":145,"props":1082,"children":1083},{},[1084,1089,1090,1096,1098,1104],{"type":40,"tag":67,"props":1085,"children":1086},{},[1087],{"type":46,"value":1088},"Overwriting DefineConstants",{"type":46,"value":1072},{"type":40,"tag":83,"props":1091,"children":1093},{"className":1092},[],[1094],{"type":46,"value":1095},"\u003CDefineConstants>MY_CONST\u003C\u002FDefineConstants>",{"type":46,"value":1097},") drops all prior constants. Always append with ",{"type":40,"tag":83,"props":1099,"children":1101},{"className":1100},[],[1102],{"type":46,"value":1103},"$(DefineConstants);",{"type":46,"value":1105},".",{"type":40,"tag":145,"props":1107,"children":1108},{},[1109,1114,1116,1121,1123,1128],{"type":40,"tag":67,"props":1110,"children":1111},{},[1112],{"type":46,"value":1113},"Hardcoded absolute paths",{"type":46,"value":1115}," break portability. Use ",{"type":40,"tag":83,"props":1117,"children":1119},{"className":1118},[],[1120],{"type":46,"value":690},{"type":46,"value":1122}," or ",{"type":40,"tag":83,"props":1124,"children":1126},{"className":1125},[],[1127],{"type":46,"value":605},{"type":46,"value":1105},{"type":40,"tag":145,"props":1130,"children":1131},{},[1132,1144,1146,1152],{"type":40,"tag":67,"props":1133,"children":1134},{},[1135,1137,1142],{"type":46,"value":1136},"Missing ",{"type":40,"tag":83,"props":1138,"children":1140},{"className":1139},[],[1141],{"type":46,"value":301},{"type":46,"value":1143}," on defaults",{"type":46,"value":1145}," makes properties non-overridable. Add ",{"type":40,"tag":83,"props":1147,"children":1149},{"className":1148},[],[1150],{"type":46,"value":1151},"Condition=\"'$(Prop)' == ''\"",{"type":46,"value":1153}," for values meant to be defaults.",{"type":40,"tag":1155,"props":1156,"children":1157},"style",{},[1158],{"type":46,"value":1159},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1161,"total":1324},[1162,1176,1191,1206,1224,1238,1258,1268,1280,1290,1303,1314],{"slug":1163,"name":1163,"fn":1164,"description":1165,"org":1166,"tags":1167,"stars":1173,"repoUrl":1174,"updatedAt":1175},"multithreaded-task-migration","migrate MSBuild tasks to multithreaded mode","Guide for migrating MSBuild tasks to multithreaded mode support, including compatibility red-team review. Use this when converting tasks to thread-safe versions, implementing IMultiThreadableTask, adding TaskEnvironment support, or auditing migrations for behavioral compatibility.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1168,1169,1170],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":1171,"slug":1172,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":1177,"name":1177,"fn":1178,"description":1179,"org":1180,"tags":1181,"stars":22,"repoUrl":23,"updatedAt":1190},"analyzing-dotnet-performance","analyze .NET code for performance anti-patterns","Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I\u002FO with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1182,1183,1186,1189],{"name":17,"slug":18,"type":15},{"name":1184,"slug":1185,"type":15},"Code Analysis","code-analysis",{"name":1187,"slug":1188,"type":15},"Debugging","debugging",{"name":1171,"slug":1172,"type":15},"2026-07-12T08:23:25.400375",{"slug":1192,"name":1192,"fn":1193,"description":1194,"org":1195,"tags":1196,"stars":22,"repoUrl":23,"updatedAt":1205},"android-tombstone-symbolication","symbolicate .NET runtime frames in Android tombstones","Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java\u002FKotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1197,1198,1201,1202],{"name":17,"slug":18,"type":15},{"name":1199,"slug":1200,"type":15},"Android","android",{"name":1187,"slug":1188,"type":15},{"name":1203,"slug":1204,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":1207,"name":1207,"fn":1208,"description":1209,"org":1210,"tags":1211,"stars":22,"repoUrl":23,"updatedAt":1223},"apple-crash-symbolication","symbolicate .NET runtime frames in crash logs","Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift\u002FObjective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1212,1213,1214,1217,1220],{"name":17,"slug":18,"type":15},{"name":1187,"slug":1188,"type":15},{"name":1215,"slug":1216,"type":15},"iOS","ios",{"name":1218,"slug":1219,"type":15},"macOS","macos",{"name":1221,"slug":1222,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1225,"name":1225,"fn":1226,"description":1227,"org":1228,"tags":1229,"stars":22,"repoUrl":23,"updatedAt":1237},"assertion-quality","evaluate assertion quality in test suites","Analyzes the variety and depth of assertions across test suites in any language. Use when the user asks to evaluate assertion quality, find shallow tests, identify assertion-free tests (no assertions or only trivial ones like Assert.IsNotNull \u002F toBeTruthy()), flag self-referential or tautological assertions, measure assertion diversity, or audit whether tests verify different facets of behavior. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: writing new tests (use code-testing-agent \u002F writing-mstest-tests), mutation reasoning about whether tests would catch a bug (use test-gap-analysis), or a general severity-ranked anti-pattern audit (use test-anti-patterns), fixing or rewriting assertions, or writing, fixing, or modernizing MSTest tests, assertions, or attributes (use writing-mstest-tests).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1230,1231,1234],{"name":1184,"slug":1185,"type":15},{"name":1232,"slug":1233,"type":15},"QA","qa",{"name":1235,"slug":1236,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":1239,"name":1239,"fn":1240,"description":1241,"org":1242,"tags":1243,"stars":22,"repoUrl":23,"updatedAt":1257},"author-component","create and review Blazor components","Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable, CancellationToken, CSS isolation, code-behind. DO NOT USE FOR: creating new projects (use create-blazor-project), JavaScript interop or calling browser APIs from Blazor (use use-js-interop), forms and validation (use collect-user-input), prerendering issues (use support-prerendering), HTTP data fetching patterns (use fetch-and-send-data), coordinating state between unrelated components (use coordinate-components).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1244,1245,1248,1251,1254],{"name":17,"slug":18,"type":15},{"name":1246,"slug":1247,"type":15},"Blazor","blazor",{"name":1249,"slug":1250,"type":15},"C#","csharp",{"name":1252,"slug":1253,"type":15},"UI Components","ui-components",{"name":1255,"slug":1256,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1259,"name":1259,"fn":1260,"description":1261,"org":1262,"tags":1263,"stars":22,"repoUrl":23,"updatedAt":1267},"binlog-failure-analysis","analyze MSBuild binary logs","Analyze MSBuild binary logs to diagnose build failures. USE FOR: build errors that are unclear from console output, diagnosing cascading failures across multi-project builds, tracing MSBuild target execution order, and generally any MSBuild build issues. Requires an existing .binlog file. DO NOT USE FOR: generating binlogs (use binlog-generation), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1264,1265,1266],{"name":1184,"slug":1185,"type":15},{"name":1187,"slug":1188,"type":15},{"name":1203,"slug":1204,"type":15},"2026-07-12T08:21:34.637923",{"slug":1269,"name":1269,"fn":1270,"description":1271,"org":1272,"tags":1273,"stars":22,"repoUrl":23,"updatedAt":1279},"binlog-generation","generate MSBuild binary logs for diagnostics","Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding \u002Fbl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors or performance. Requires MSBuild 17.8+ \u002F .NET 8 SDK+ for {} placeholder; PowerShell needs -bl:{{}}. DO NOT USE FOR: non-MSBuild build systems (npm, Maven, CMake), analyzing an existing binlog (use binlog-failure-analysis instead).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1274,1277,1278],{"name":1275,"slug":1276,"type":15},"Build","build",{"name":1187,"slug":1188,"type":15},{"name":20,"slug":21,"type":15},"2026-07-19T05:38:19.340791",{"slug":1281,"name":1281,"fn":1282,"description":1283,"org":1284,"tags":1285,"stars":22,"repoUrl":23,"updatedAt":1289},"build-parallelism","optimize MSBuild build parallelism","Diagnose and fix under-parallelized MSBuild builds. USE WHEN a multi-project solution build is slower than expected, doesn't speed up when you add cores, pegs a single core while others idle, or you want to know why `-m` isn't helping. Note: `\u002Fmaxcpucount` default is 1 (sequential) — always pass `-m` for parallel builds. Covers finding the critical path (longest serial ProjectReference chain), graph build (`\u002Fgraph`), BuildInParallel, and solution filters (`.slnf`). DO NOT USE FOR: single-project builds, incremental issues (use incremental-build), compilation slowness inside one project (use build-perf-diagnostics), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1286,1287,1288],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":1171,"slug":1172,"type":15},"2026-07-19T05:38:18.364937",{"slug":1291,"name":1291,"fn":1292,"description":1293,"org":1294,"tags":1295,"stars":22,"repoUrl":23,"updatedAt":1302},"build-perf-baseline","establish and optimize build performance baselines","Establish build performance baselines and apply systematic optimization techniques. USE FOR: diagnosing slow builds, establishing before\u002Fafter measurements (cold, warm, no-op scenarios), applying optimization strategies like MSBuild Server, static graph builds, artifacts output, and dependency graph trimming. Start here before diving into build-perf-diagnostics, incremental-build, or build-parallelism. DO NOT USE FOR: non-MSBuild build systems, detailed bottleneck analysis (use build-perf-diagnostics after baselining).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1296,1297,1300,1301],{"name":20,"slug":21,"type":15},{"name":1298,"slug":1299,"type":15},"Monitoring","monitoring",{"name":1171,"slug":1172,"type":15},{"name":1235,"slug":1236,"type":15},"2026-07-12T08:21:35.865649",{"slug":1304,"name":1304,"fn":1305,"description":1306,"org":1307,"tags":1308,"stars":22,"repoUrl":23,"updatedAt":1313},"build-perf-diagnostics","diagnose MSBuild build performance bottlenecks","Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization below 80%, excessive Copy tasks, NuGet restore running every build. Covers timeline analysis, Target\u002FTask Performance Summary interpretation, and 7 common bottleneck categories. Use after build-perf-baseline has established measurements. DO NOT USE FOR: establishing initial baselines (use build-perf-baseline first), fixing incremental build issues (use incremental-build), parallelism tuning (use build-parallelism), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1309,1310,1311,1312],{"name":17,"slug":18,"type":15},{"name":1187,"slug":1188,"type":15},{"name":20,"slug":21,"type":15},{"name":1171,"slug":1172,"type":15},"2026-07-12T08:21:40.961722",{"slug":1315,"name":1315,"fn":1316,"description":1317,"org":1318,"tags":1319,"stars":22,"repoUrl":23,"updatedAt":1323},"check-bin-obj-clash","detect MSBuild output path conflicts","Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing\u002Foverwritten outputs in multi-project or multi-targeting builds where bin\u002Fobj (or project.assets.json) collide. Common causes: shared OutputPath, missing AppendTargetFrameworkToOutputPath, extra global properties (e.g. PublishReadyToRun), or SetTargetFramework on a ProjectReference to a single-targeting project. DO NOT USE FOR: file access errors unrelated to MSBuild (OS-level locking), single-project single-TFM builds, non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1320,1321,1322],{"name":1187,"slug":1188,"type":15},{"name":20,"slug":21,"type":15},{"name":1232,"slug":1233,"type":15},"2026-07-19T05:38:14.336279",144,{"items":1326,"total":1375},[1327,1334,1341,1349,1355,1363,1369],{"slug":1177,"name":1177,"fn":1178,"description":1179,"org":1328,"tags":1329,"stars":22,"repoUrl":23,"updatedAt":1190},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1330,1331,1332,1333],{"name":17,"slug":18,"type":15},{"name":1184,"slug":1185,"type":15},{"name":1187,"slug":1188,"type":15},{"name":1171,"slug":1172,"type":15},{"slug":1192,"name":1192,"fn":1193,"description":1194,"org":1335,"tags":1336,"stars":22,"repoUrl":23,"updatedAt":1205},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1337,1338,1339,1340],{"name":17,"slug":18,"type":15},{"name":1199,"slug":1200,"type":15},{"name":1187,"slug":1188,"type":15},{"name":1203,"slug":1204,"type":15},{"slug":1207,"name":1207,"fn":1208,"description":1209,"org":1342,"tags":1343,"stars":22,"repoUrl":23,"updatedAt":1223},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1344,1345,1346,1347,1348],{"name":17,"slug":18,"type":15},{"name":1187,"slug":1188,"type":15},{"name":1215,"slug":1216,"type":15},{"name":1218,"slug":1219,"type":15},{"name":1221,"slug":1222,"type":15},{"slug":1225,"name":1225,"fn":1226,"description":1227,"org":1350,"tags":1351,"stars":22,"repoUrl":23,"updatedAt":1237},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1352,1353,1354],{"name":1184,"slug":1185,"type":15},{"name":1232,"slug":1233,"type":15},{"name":1235,"slug":1236,"type":15},{"slug":1239,"name":1239,"fn":1240,"description":1241,"org":1356,"tags":1357,"stars":22,"repoUrl":23,"updatedAt":1257},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1358,1359,1360,1361,1362],{"name":17,"slug":18,"type":15},{"name":1246,"slug":1247,"type":15},{"name":1249,"slug":1250,"type":15},{"name":1252,"slug":1253,"type":15},{"name":1255,"slug":1256,"type":15},{"slug":1259,"name":1259,"fn":1260,"description":1261,"org":1364,"tags":1365,"stars":22,"repoUrl":23,"updatedAt":1267},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1366,1367,1368],{"name":1184,"slug":1185,"type":15},{"name":1187,"slug":1188,"type":15},{"name":1203,"slug":1204,"type":15},{"slug":1269,"name":1269,"fn":1270,"description":1271,"org":1370,"tags":1371,"stars":22,"repoUrl":23,"updatedAt":1279},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1372,1373,1374],{"name":1275,"slug":1276,"type":15},{"name":1187,"slug":1188,"type":15},{"name":20,"slug":21,"type":15},96]