[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79XGJMWJ1EMW6H718SZSWC6":3,"skill-same:01M79XGJMWJ1EMW6H718SZSWC6":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79XGJMWJ1EMW6H718SZSWC6","deniz-dotnet-general.msbuild-modernization",null,"Guide for modernizing and migrating MSBuild project files to SDK-style format. USE FOR: converting legacy .csproj\u002F.vbproj with verbose XML to SDK-style, migrating packages.config to PackageReference, removing Properties\u002FAssemblyInfo.cs in favor of auto-generation, eliminating explicit Compile Include lists via implicit globbing, consolidating shared settings into Directory.Build.props. Indicators of legacy projects: ToolsVersion attribute, an Import of Microsoft.CSharp.targets via $(MSBuildToolsPath), .csproj files over 50 lines for simple projects. DO NOT USE FOR: projects already in SDK-style format, non-.NET build systems (npm, Maven, CMake), .NET Framework projects that cannot move to SDK-style.","Blind-Striker\u002Fagent-skills-and-plugins","Blind-Striker","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1965259?v=4","01M79WFXTE5PH0C1VB7B54ANMN","Deniz İrgin","01M79WFXV5KZ5GST1K8G035DM5",1,"MIT","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.msbuild-modernization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: deniz-dotnet-general.msbuild-modernization\ndescription: \"Guide for modernizing and migrating MSBuild project files to\n  SDK-style format. USE FOR: converting legacy .csproj\u002F.vbproj with verbose XML\n  to SDK-style, migrating packages.config to PackageReference, removing\n  Properties\u002FAssemblyInfo.cs in favor of auto-generation, eliminating explicit\n  Compile Include lists via implicit globbing, consolidating shared settings\n  into Directory.Build.props. Indicators of legacy projects: ToolsVersion\n  attribute, an Import of Microsoft.CSharp.targets via $(MSBuildToolsPath),\n  .csproj files over 50 lines for simple projects. DO NOT USE FOR: projects\n  already in SDK-style format, non-.NET build systems (npm, Maven, CMake), .NET\n  Framework projects that cannot move to SDK-style.\"\n---\n\n# MSBuild Modernization: Legacy to SDK-style Migration\n\n## Identifying Legacy vs SDK-style Projects\n\n**Legacy indicators:**\n\n- `\u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>`\n- Explicit file lists (`\u003CCompile Include=\"...\" \u002F>` for every `.cs` file)\n- `ToolsVersion` attribute on `\u003CProject>` element\n- `packages.config` file present\n- `Properties\\AssemblyInfo.cs` with assembly-level attributes\n\n**SDK-style indicators:**\n\n- `\u003CProject Sdk=\"Microsoft.NET.Sdk\">` attribute on root element\n- Minimal content — a simple project may be 10–15 lines\n- No explicit file includes (implicit globbing)\n- `\u003CPackageReference>` items instead of `packages.config`\n\n**Quick check:** if a `.csproj` is more than 50 lines for a simple class library or console app, it is likely legacy format.\n\n```xml\n\u003C!-- Legacy: ~80+ lines for a simple library -->\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CProject ToolsVersion=\"15.0\" xmlns=\"http:\u002F\u002Fschemas.microsoft.com\u002Fdeveloper\u002Fmsbuild\u002F2003\">\n  \u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" \u002F>\n  \u003CPropertyGroup>\n    \u003CConfiguration Condition=\" '$(Configuration)' == '' \">Debug\u003C\u002FConfiguration>\n    \u003CPlatform Condition=\" '$(Platform)' == '' \">AnyCPU\u003C\u002FPlatform>\n    \u003COutputType>Library\u003C\u002FOutputType>\n    \u003CRootNamespace>MyLibrary\u003C\u002FRootNamespace>\n    \u003CAssemblyName>MyLibrary\u003C\u002FAssemblyName>\n    \u003CTargetFrameworkVersion>v4.7.2\u003C\u002FTargetFrameworkVersion>\n    \u003CFileAlignment>512\u003C\u002FFileAlignment>\n    \u003CDeterministic>true\u003C\u002FDeterministic>\n  \u003C\u002FPropertyGroup>\n  \u003C!-- ... 60+ more lines ... -->\n  \u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\u003C\u002FProject>\n```\n\n```xml\n\u003C!-- SDK-style: ~8 lines for the same library -->\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net472\u003C\u002FTargetFramework>\n  \u003C\u002FPropertyGroup>\n\u003C\u002FProject>\n```\n\n## Migration Checklist: Legacy → SDK-style\n\n### Step 1: Replace Project Root Element\n\n**BEFORE:**\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CProject ToolsVersion=\"15.0\" xmlns=\"http:\u002F\u002Fschemas.microsoft.com\u002Fdeveloper\u002Fmsbuild\u002F2003\">\n  \u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\"\n          Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" \u002F>\n  \u003C!-- ... project content ... -->\n  \u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\u003C\u002FProject>\n```\n\n**AFTER:**\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003C!-- ... project content ... -->\n\u003C\u002FProject>\n```\n\nRemove the XML declaration, `ToolsVersion`, `xmlns`, and both `\u003CImport>` lines. The `Sdk` attribute replaces all of them.\n\n### Step 2: Set TargetFramework\n\n**BEFORE:**\n\n```xml\n\u003CPropertyGroup>\n  \u003CTargetFrameworkVersion>v4.7.2\u003C\u002FTargetFrameworkVersion>\n\u003C\u002FPropertyGroup>\n```\n\n**AFTER:**\n\n```xml\n\u003CPropertyGroup>\n  \u003CTargetFramework>net472\u003C\u002FTargetFramework>\n\u003C\u002FPropertyGroup>\n```\n\n**TFM mapping table:**\n\n| Legacy `TargetFrameworkVersion` | SDK-style `TargetFramework` |\n|---------------------------------|-----------------------------|\n| `v4.6.1`                        | `net461`                    |\n| `v4.7.2`                        | `net472`                    |\n| `v4.8`                          | `net48`                     |\n| (migrating to .NET 6)           | `net6.0`                    |\n| (migrating to .NET 8)           | `net8.0`                    |\n\n### Step 3: Remove Explicit File Includes\n\n**BEFORE:**\n\n```xml\n\u003CItemGroup>\n  \u003CCompile Include=\"Controllers\\HomeController.cs\" \u002F>\n  \u003CCompile Include=\"Models\\User.cs\" \u002F>\n  \u003CCompile Include=\"Models\\Order.cs\" \u002F>\n  \u003CCompile Include=\"Services\\AuthService.cs\" \u002F>\n  \u003CCompile Include=\"Services\\OrderService.cs\" \u002F>\n  \u003CCompile Include=\"Properties\\AssemblyInfo.cs\" \u002F>\n  \u003C!-- ... 50+ more lines ... -->\n\u003C\u002FItemGroup>\n\u003CItemGroup>\n  \u003CContent Include=\"Views\\Home\\Index.cshtml\" \u002F>\n  \u003CContent Include=\"Views\\Shared\\_Layout.cshtml\" \u002F>\n  \u003C!-- ... more content files ... -->\n\u003C\u002FItemGroup>\n```\n\n**AFTER:**\n\nDelete all of these `\u003CCompile>` and `\u003CContent>` item groups entirely. SDK-style projects include them automatically via implicit globbing.\n\n**Exception:** keep explicit entries only for files that need special metadata or reside outside the project directory:\n\n```xml\n\u003CItemGroup>\n  \u003CContent Include=\"..\\shared\\config.json\" Link=\"config.json\" CopyToOutputDirectory=\"PreserveNewest\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n### Step 4: Remove AssemblyInfo.cs\n\n**BEFORE** (`Properties\\AssemblyInfo.cs`):\n\n```csharp\nusing System.Reflection;\nusing System.Runtime.InteropServices;\n\n[assembly: AssemblyTitle(\"MyLibrary\")]\n[assembly: AssemblyDescription(\"A useful library\")]\n[assembly: AssemblyCompany(\"Contoso\")]\n[assembly: AssemblyProduct(\"MyLibrary\")]\n[assembly: AssemblyCopyright(\"Copyright © Contoso 2024\")]\n[assembly: ComVisible(false)]\n[assembly: Guid(\"...\")]\n[assembly: AssemblyVersion(\"1.2.0.0\")]\n[assembly: AssemblyFileVersion(\"1.2.0.0\")]\n```\n\n**AFTER** (in `.csproj`):\n\n```xml\n\u003CPropertyGroup>\n  \u003CAssemblyTitle>MyLibrary\u003C\u002FAssemblyTitle>\n  \u003CDescription>A useful library\u003C\u002FDescription>\n  \u003CCompany>Contoso\u003C\u002FCompany>\n  \u003CProduct>MyLibrary\u003C\u002FProduct>\n  \u003CCopyright>Copyright © Contoso 2024\u003C\u002FCopyright>\n  \u003CVersion>1.2.0\u003C\u002FVersion>\n\u003C\u002FPropertyGroup>\n```\n\nDelete `Properties\\AssemblyInfo.cs` — the SDK auto-generates assembly attributes from these properties.\n\n**Alternative:** if you prefer to keep `AssemblyInfo.cs`, disable auto-generation:\n\n```xml\n\u003CPropertyGroup>\n  \u003CGenerateAssemblyInfo>false\u003C\u002FGenerateAssemblyInfo>\n\u003C\u002FPropertyGroup>\n```\n\n### Step 5: Migrate packages.config → PackageReference\n\n**BEFORE** (`packages.config`):\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003Cpackages>\n  \u003Cpackage id=\"Newtonsoft.Json\" version=\"13.0.3\" targetFramework=\"net472\" \u002F>\n  \u003Cpackage id=\"Serilog\" version=\"3.1.1\" targetFramework=\"net472\" \u002F>\n  \u003Cpackage id=\"Microsoft.Extensions.DependencyInjection\" version=\"8.0.0\" targetFramework=\"net472\" \u002F>\n\u003C\u002Fpackages>\n```\n\n**AFTER** (in `.csproj`):\n\n```xml\n\u003CItemGroup>\n  \u003CPackageReference Include=\"Newtonsoft.Json\" Version=\"13.0.3\" \u002F>\n  \u003CPackageReference Include=\"Serilog\" Version=\"3.1.1\" \u002F>\n  \u003CPackageReference Include=\"Microsoft.Extensions.DependencyInjection\" Version=\"8.0.0\" \u002F>\n\u003C\u002FItemGroup>\n```\n\nDelete `packages.config` after migration.\n\n**Migration options:**\n\n- **Visual Studio:** right-click `packages.config` → *Migrate packages.config to PackageReference*\n- **Manual:** without Visual Studio, convert each `packages.config` entry to a `\u003CPackageReference>` by hand, as shown above; the .NET CLI has no `migrate-packages-config` command\n- **Binding redirects:** SDK-style projects auto-generate binding redirects — remove the `\u003Cruntime>` section from `app.config` if present\n\n### Step 6: Remove Unnecessary Boilerplate\n\nDelete all of the following — the SDK provides sensible defaults:\n\n```xml\n\u003C!-- DELETE: SDK imports (replaced by Sdk attribute) -->\n\u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" ... \u002F>\n\u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\n\u003C!-- DELETE: default Configuration\u002FPlatform (SDK provides these) -->\n\u003CPropertyGroup>\n  \u003CConfiguration Condition=\" '$(Configuration)' == '' \">Debug\u003C\u002FConfiguration>\n  \u003CPlatform Condition=\" '$(Platform)' == '' \">AnyCPU\u003C\u002FPlatform>\n  \u003CProjectGuid>{...}\u003C\u002FProjectGuid>\n  \u003COutputType>Library\u003C\u002FOutputType>  \u003C!-- keep only if not Library -->\n  \u003CAppDesignerFolder>Properties\u003C\u002FAppDesignerFolder>\n  \u003CFileAlignment>512\u003C\u002FFileAlignment>\n  \u003CAutoGenerateBindingRedirects>true\u003C\u002FAutoGenerateBindingRedirects>\n  \u003CDeterministic>true\u003C\u002FDeterministic>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- DELETE: standard Debug\u002FRelease configurations (SDK defaults match) -->\n\u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n  \u003CDebugSymbols>true\u003C\u002FDebugSymbols>\n  \u003CDebugType>full\u003C\u002FDebugType>\n  \u003COptimize>false\u003C\u002FOptimize>\n  \u003COutputPath>bin\\Debug\\\u003C\u002FOutputPath>\n  \u003CDefineConstants>DEBUG;TRACE\u003C\u002FDefineConstants>\n  \u003CErrorReport>prompt\u003C\u002FErrorReport>\n  \u003CWarningLevel>4\u003C\u002FWarningLevel>\n\u003C\u002FPropertyGroup>\n\u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n  \u003CDebugType>pdbonly\u003C\u002FDebugType>\n  \u003COptimize>true\u003C\u002FOptimize>\n  \u003COutputPath>bin\\Release\\\u003C\u002FOutputPath>\n  \u003CDefineConstants>TRACE\u003C\u002FDefineConstants>\n  \u003CErrorReport>prompt\u003C\u002FErrorReport>\n  \u003CWarningLevel>4\u003C\u002FWarningLevel>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- DELETE: framework assembly references (implicit in SDK) -->\n\u003CItemGroup>\n  \u003CReference Include=\"System\" \u002F>\n  \u003CReference Include=\"System.Core\" \u002F>\n  \u003CReference Include=\"System.Data\" \u002F>\n  \u003CReference Include=\"System.Xml\" \u002F>\n  \u003CReference Include=\"System.Xml.Linq\" \u002F>\n  \u003CReference Include=\"Microsoft.CSharp\" \u002F>\n\u003C\u002FItemGroup>\n\n\u003C!-- DELETE: packages.config reference -->\n\u003CNone Include=\"packages.config\" \u002F>\n\n\u003C!-- DELETE: designer service entries -->\n\u003CService Include=\"{508349B6-6B84-11D3-8410-00C04F8EF8E0}\" \u002F>\n```\n\n**Keep** only properties that differ from SDK defaults (e.g., `\u003COutputType>Exe\u003C\u002FOutputType>`, `\u003CRootNamespace>` if it differs from the assembly name, custom `\u003CDefineConstants>`).\n\n### Step 7: Enable Modern Features\n\nAfter migration, consider enabling modern C# features:\n\n```xml\n\u003CPropertyGroup>\n  \u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n  \u003CNullable>enable\u003C\u002FNullable>\n  \u003CImplicitUsings>enable\u003C\u002FImplicitUsings>\n\u003C\u002FPropertyGroup>\n```\n\n- `\u003CNullable>enable\u003C\u002FNullable>` — enables nullable reference type analysis\n- `\u003CImplicitUsings>enable\u003C\u002FImplicitUsings>` — auto-imports common namespaces (.NET 6+)\n- **Avoid `\u003CLangVersion>latest`** — the effective language version is determined by the SDK\u002Fcompiler defaults, not just the TFM, so builds can silently vary across machines with different SDKs installed. Omit `\u003CLangVersion>` unless you need to pin a specific version. For reproducible builds, pin the SDK version repo-wide with `global.json` (which indirectly fixes the default language version), or set an explicit numeric `\u003CLangVersion>` (e.g. `\u003CLangVersion>12\u003C\u002FLangVersion>`) per project to directly control the language version.\n\n## Complete Before\u002FAfter Example\n\n**BEFORE** (legacy — 65 lines):\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CProject ToolsVersion=\"15.0\" xmlns=\"http:\u002F\u002Fschemas.microsoft.com\u002Fdeveloper\u002Fmsbuild\u002F2003\">\n  \u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\"\n          Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" \u002F>\n  \u003CPropertyGroup>\n    \u003CConfiguration Condition=\" '$(Configuration)' == '' \">Debug\u003C\u002FConfiguration>\n    \u003CPlatform Condition=\" '$(Platform)' == '' \">AnyCPU\u003C\u002FPlatform>\n    \u003CProjectGuid>{12345678-1234-1234-1234-123456789ABC}\u003C\u002FProjectGuid>\n    \u003COutputType>Library\u003C\u002FOutputType>\n    \u003CAppDesignerFolder>Properties\u003C\u002FAppDesignerFolder>\n    \u003CRootNamespace>MyLibrary\u003C\u002FRootNamespace>\n    \u003CAssemblyName>MyLibrary\u003C\u002FAssemblyName>\n    \u003CTargetFrameworkVersion>v4.7.2\u003C\u002FTargetFrameworkVersion>\n    \u003CFileAlignment>512\u003C\u002FFileAlignment>\n    \u003CDeterministic>true\u003C\u002FDeterministic>\n  \u003C\u002FPropertyGroup>\n  \u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n    \u003CDebugSymbols>true\u003C\u002FDebugSymbols>\n    \u003CDebugType>full\u003C\u002FDebugType>\n    \u003COptimize>false\u003C\u002FOptimize>\n    \u003COutputPath>bin\\Debug\\\u003C\u002FOutputPath>\n    \u003CDefineConstants>DEBUG;TRACE\u003C\u002FDefineConstants>\n    \u003CErrorReport>prompt\u003C\u002FErrorReport>\n    \u003CWarningLevel>4\u003C\u002FWarningLevel>\n  \u003C\u002FPropertyGroup>\n  \u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n    \u003CDebugType>pdbonly\u003C\u002FDebugType>\n    \u003COptimize>true\u003C\u002FOptimize>\n    \u003COutputPath>bin\\Release\\\u003C\u002FOutputPath>\n    \u003CDefineConstants>TRACE\u003C\u002FDefineConstants>\n    \u003CErrorReport>prompt\u003C\u002FErrorReport>\n    \u003CWarningLevel>4\u003C\u002FWarningLevel>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CReference Include=\"System\" \u002F>\n    \u003CReference Include=\"System.Core\" \u002F>\n    \u003CReference Include=\"System.Xml.Linq\" \u002F>\n    \u003CReference Include=\"Microsoft.CSharp\" \u002F>\n  \u003C\u002FItemGroup>\n  \u003CItemGroup>\n    \u003CCompile Include=\"Models\\User.cs\" \u002F>\n    \u003CCompile Include=\"Models\\Order.cs\" \u002F>\n    \u003CCompile Include=\"Services\\UserService.cs\" \u002F>\n    \u003CCompile Include=\"Services\\OrderService.cs\" \u002F>\n    \u003CCompile Include=\"Helpers\\StringExtensions.cs\" \u002F>\n    \u003CCompile Include=\"Properties\\AssemblyInfo.cs\" \u002F>\n  \u003C\u002FItemGroup>\n  \u003CItemGroup>\n    \u003CNone Include=\"packages.config\" \u002F>\n  \u003C\u002FItemGroup>\n  \u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\u003C\u002FProject>\n```\n\n**AFTER** (SDK-style — 11 lines):\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net472\u003C\u002FTargetFramework>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CPackageReference Include=\"Newtonsoft.Json\" Version=\"13.0.3\" \u002F>\n    \u003CPackageReference Include=\"Serilog\" Version=\"3.1.1\" \u002F>\n  \u003C\u002FItemGroup>\n\u003C\u002FProject>\n```\n\n## Common Migration Issues\n\n**Embedded resources:** files not in a standard location may need explicit includes:\n\n```xml\n\u003CItemGroup>\n  \u003CEmbeddedResource Include=\"..\\shared\\Schemas\\*.xsd\" LinkBase=\"Schemas\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n**Content files with CopyToOutputDirectory:** these still need explicit entries:\n\n```xml\n\u003CItemGroup>\n  \u003CContent Include=\"appsettings.json\" CopyToOutputDirectory=\"PreserveNewest\" \u002F>\n  \u003CNone Include=\"scripts\\*.sql\" CopyToOutputDirectory=\"PreserveNewest\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n**Multi-targeting:** change the element name from singular to plural:\n\n```xml\n\u003C!-- Single target -->\n\u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n\n\u003C!-- Multiple targets -->\n\u003CTargetFrameworks>net472;net8.0\u003C\u002FTargetFrameworks>\n```\n\n**WPF\u002FWinForms projects:** use the appropriate SDK or properties:\n\n```xml\n\u003C!-- Option A: WindowsDesktop SDK -->\n\u003CProject Sdk=\"Microsoft.NET.Sdk.WindowsDesktop\">\n\n\u003C!-- Option B: properties in standard SDK (preferred for .NET 5+) -->\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CUseWPF>true\u003C\u002FUseWPF>\n    \u003C!-- or -->\n    \u003CUseWindowsForms>true\u003C\u002FUseWindowsForms>\n  \u003C\u002FPropertyGroup>\n\u003C\u002FProject>\n```\n\n**Test projects:** use the standard SDK with test framework packages:\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n    \u003CIsPackable>false\u003C\u002FIsPackable>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CPackageReference Include=\"Microsoft.NET.Test.Sdk\" Version=\"17.9.0\" \u002F>\n    \u003CPackageReference Include=\"xunit\" Version=\"2.7.0\" \u002F>\n    \u003CPackageReference Include=\"xunit.runner.visualstudio\" Version=\"2.5.7\" \u002F>\n  \u003C\u002FItemGroup>\n\u003C\u002FProject>\n```\n\n## Central Package Management Migration\n\nCentralizes NuGet version management across a multi-project solution. See [https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fnuget\u002Fconsume-packages\u002Fcentral-package-management](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fnuget\u002Fconsume-packages\u002Fcentral-package-management) for details.\n\nDo not convert the projects to Central Package Management here. That conversion is the manual\n`@deniz-dotnet-general.convert-to-cpm` ceremony: tell the user to invoke it once the modernized projects\nbuild. An existing `Directory.Packages.props` stays in scope for its placement and layering.\n\n## Directory.Build Consolidation\n\nIdentify properties repeated across multiple `.csproj` files and move them to shared files.\n\n**`Directory.Build.props`** (for properties — placed at repo or src root):\n\n```xml\n\u003CProject>\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n    \u003CNullable>enable\u003C\u002FNullable>\n    \u003CImplicitUsings>enable\u003C\u002FImplicitUsings>\n    \u003CTreatWarningsAsErrors>true\u003C\u002FTreatWarningsAsErrors>\n    \u003CCompany>Contoso\u003C\u002FCompany>\n    \u003CCopyright>Copyright © Contoso 2024\u003C\u002FCopyright>\n  \u003C\u002FPropertyGroup>\n\u003C\u002FProject>\n```\n\n**`Directory.Build.targets`** (for targets\u002Ftasks — placed at repo or src root):\n\n```xml\n\u003CProject>\n  \u003CTarget Name=\"PrintBuildInfo\" AfterTargets=\"Build\">\n    \u003CMessage Importance=\"High\" Text=\"Built $(AssemblyName) → $(TargetPath)\" \u002F>\n  \u003C\u002FTarget>\n\u003C\u002FProject>\n```\n\n**Keep in individual `.csproj` files** only what is project-specific:\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003COutputType>Exe\u003C\u002FOutputType>\n    \u003CAssemblyName>MyApp\u003C\u002FAssemblyName>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CPackageReference Include=\"Serilog\" \u002F>\n    \u003CProjectReference Include=\"..\\MyLibrary\\MyLibrary.csproj\" \u002F>\n  \u003C\u002FItemGroup>\n\u003C\u002FProject>\n```\n\n## Tools and Automation\n\n| Tool | Usage |\n|------|-------|\n| `dotnet try-convert` | Automated legacy-to-SDK conversion. Install: `dotnet tool install -g try-convert` |\n| .NET Upgrade Assistant | Full migration including API changes. Install: `dotnet tool install -g upgrade-assistant` |\n| Visual Studio | Right-click `packages.config` → *Migrate packages.config to PackageReference* |\n| Manual migration | Often cleanest for simple projects — follow the checklist above |\n\n**Recommended approach:**\n\n1. Run `try-convert` for a first pass\n2. Review and clean up the output manually\n3. Build and fix any issues\n4. Enable modern features (nullable, implicit usings)\n5. Consolidate shared settings into `Directory.Build.props`\n","# MSBuild Modernization: Legacy to SDK-style Migration\n\n## Identifying Legacy vs SDK-style Projects\n\n**Legacy indicators:**\n\n- `\u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>`\n- Explicit file lists (`\u003CCompile Include=\"...\" \u002F>` for every `.cs` file)\n- `ToolsVersion` attribute on `\u003CProject>` element\n- `packages.config` file present\n- `Properties\\AssemblyInfo.cs` with assembly-level attributes\n\n**SDK-style indicators:**\n\n- `\u003CProject Sdk=\"Microsoft.NET.Sdk\">` attribute on root element\n- Minimal content — a simple project may be 10–15 lines\n- No explicit file includes (implicit globbing)\n- `\u003CPackageReference>` items instead of `packages.config`\n\n**Quick check:** if a `.csproj` is more than 50 lines for a simple class library or console app, it is likely legacy format.\n\n```xml\n\u003C!-- Legacy: ~80+ lines for a simple library -->\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CProject ToolsVersion=\"15.0\" xmlns=\"http:\u002F\u002Fschemas.microsoft.com\u002Fdeveloper\u002Fmsbuild\u002F2003\">\n  \u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" \u002F>\n  \u003CPropertyGroup>\n    \u003CConfiguration Condition=\" '$(Configuration)' == '' \">Debug\u003C\u002FConfiguration>\n    \u003CPlatform Condition=\" '$(Platform)' == '' \">AnyCPU\u003C\u002FPlatform>\n    \u003COutputType>Library\u003C\u002FOutputType>\n    \u003CRootNamespace>MyLibrary\u003C\u002FRootNamespace>\n    \u003CAssemblyName>MyLibrary\u003C\u002FAssemblyName>\n    \u003CTargetFrameworkVersion>v4.7.2\u003C\u002FTargetFrameworkVersion>\n    \u003CFileAlignment>512\u003C\u002FFileAlignment>\n    \u003CDeterministic>true\u003C\u002FDeterministic>\n  \u003C\u002FPropertyGroup>\n  \u003C!-- ... 60+ more lines ... -->\n  \u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\u003C\u002FProject>\n```\n\n```xml\n\u003C!-- SDK-style: ~8 lines for the same library -->\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net472\u003C\u002FTargetFramework>\n  \u003C\u002FPropertyGroup>\n\u003C\u002FProject>\n```\n\n## Migration Checklist: Legacy → SDK-style\n\n### Step 1: Replace Project Root Element\n\n**BEFORE:**\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CProject ToolsVersion=\"15.0\" xmlns=\"http:\u002F\u002Fschemas.microsoft.com\u002Fdeveloper\u002Fmsbuild\u002F2003\">\n  \u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\"\n          Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" \u002F>\n  \u003C!-- ... project content ... -->\n  \u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\u003C\u002FProject>\n```\n\n**AFTER:**\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003C!-- ... project content ... -->\n\u003C\u002FProject>\n```\n\nRemove the XML declaration, `ToolsVersion`, `xmlns`, and both `\u003CImport>` lines. The `Sdk` attribute replaces all of them.\n\n### Step 2: Set TargetFramework\n\n**BEFORE:**\n\n```xml\n\u003CPropertyGroup>\n  \u003CTargetFrameworkVersion>v4.7.2\u003C\u002FTargetFrameworkVersion>\n\u003C\u002FPropertyGroup>\n```\n\n**AFTER:**\n\n```xml\n\u003CPropertyGroup>\n  \u003CTargetFramework>net472\u003C\u002FTargetFramework>\n\u003C\u002FPropertyGroup>\n```\n\n**TFM mapping table:**\n\n| Legacy `TargetFrameworkVersion` | SDK-style `TargetFramework` |\n|---------------------------------|-----------------------------|\n| `v4.6.1`                        | `net461`                    |\n| `v4.7.2`                        | `net472`                    |\n| `v4.8`                          | `net48`                     |\n| (migrating to .NET 6)           | `net6.0`                    |\n| (migrating to .NET 8)           | `net8.0`                    |\n\n### Step 3: Remove Explicit File Includes\n\n**BEFORE:**\n\n```xml\n\u003CItemGroup>\n  \u003CCompile Include=\"Controllers\\HomeController.cs\" \u002F>\n  \u003CCompile Include=\"Models\\User.cs\" \u002F>\n  \u003CCompile Include=\"Models\\Order.cs\" \u002F>\n  \u003CCompile Include=\"Services\\AuthService.cs\" \u002F>\n  \u003CCompile Include=\"Services\\OrderService.cs\" \u002F>\n  \u003CCompile Include=\"Properties\\AssemblyInfo.cs\" \u002F>\n  \u003C!-- ... 50+ more lines ... -->\n\u003C\u002FItemGroup>\n\u003CItemGroup>\n  \u003CContent Include=\"Views\\Home\\Index.cshtml\" \u002F>\n  \u003CContent Include=\"Views\\Shared\\_Layout.cshtml\" \u002F>\n  \u003C!-- ... more content files ... -->\n\u003C\u002FItemGroup>\n```\n\n**AFTER:**\n\nDelete all of these `\u003CCompile>` and `\u003CContent>` item groups entirely. SDK-style projects include them automatically via implicit globbing.\n\n**Exception:** keep explicit entries only for files that need special metadata or reside outside the project directory:\n\n```xml\n\u003CItemGroup>\n  \u003CContent Include=\"..\\shared\\config.json\" Link=\"config.json\" CopyToOutputDirectory=\"PreserveNewest\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n### Step 4: Remove AssemblyInfo.cs\n\n**BEFORE** (`Properties\\AssemblyInfo.cs`):\n\n```csharp\nusing System.Reflection;\nusing System.Runtime.InteropServices;\n\n[assembly: AssemblyTitle(\"MyLibrary\")]\n[assembly: AssemblyDescription(\"A useful library\")]\n[assembly: AssemblyCompany(\"Contoso\")]\n[assembly: AssemblyProduct(\"MyLibrary\")]\n[assembly: AssemblyCopyright(\"Copyright © Contoso 2024\")]\n[assembly: ComVisible(false)]\n[assembly: Guid(\"...\")]\n[assembly: AssemblyVersion(\"1.2.0.0\")]\n[assembly: AssemblyFileVersion(\"1.2.0.0\")]\n```\n\n**AFTER** (in `.csproj`):\n\n```xml\n\u003CPropertyGroup>\n  \u003CAssemblyTitle>MyLibrary\u003C\u002FAssemblyTitle>\n  \u003CDescription>A useful library\u003C\u002FDescription>\n  \u003CCompany>Contoso\u003C\u002FCompany>\n  \u003CProduct>MyLibrary\u003C\u002FProduct>\n  \u003CCopyright>Copyright © Contoso 2024\u003C\u002FCopyright>\n  \u003CVersion>1.2.0\u003C\u002FVersion>\n\u003C\u002FPropertyGroup>\n```\n\nDelete `Properties\\AssemblyInfo.cs` — the SDK auto-generates assembly attributes from these properties.\n\n**Alternative:** if you prefer to keep `AssemblyInfo.cs`, disable auto-generation:\n\n```xml\n\u003CPropertyGroup>\n  \u003CGenerateAssemblyInfo>false\u003C\u002FGenerateAssemblyInfo>\n\u003C\u002FPropertyGroup>\n```\n\n### Step 5: Migrate packages.config → PackageReference\n\n**BEFORE** (`packages.config`):\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003Cpackages>\n  \u003Cpackage id=\"Newtonsoft.Json\" version=\"13.0.3\" targetFramework=\"net472\" \u002F>\n  \u003Cpackage id=\"Serilog\" version=\"3.1.1\" targetFramework=\"net472\" \u002F>\n  \u003Cpackage id=\"Microsoft.Extensions.DependencyInjection\" version=\"8.0.0\" targetFramework=\"net472\" \u002F>\n\u003C\u002Fpackages>\n```\n\n**AFTER** (in `.csproj`):\n\n```xml\n\u003CItemGroup>\n  \u003CPackageReference Include=\"Newtonsoft.Json\" Version=\"13.0.3\" \u002F>\n  \u003CPackageReference Include=\"Serilog\" Version=\"3.1.1\" \u002F>\n  \u003CPackageReference Include=\"Microsoft.Extensions.DependencyInjection\" Version=\"8.0.0\" \u002F>\n\u003C\u002FItemGroup>\n```\n\nDelete `packages.config` after migration.\n\n**Migration options:**\n\n- **Visual Studio:** right-click `packages.config` → *Migrate packages.config to PackageReference*\n- **Manual:** without Visual Studio, convert each `packages.config` entry to a `\u003CPackageReference>` by hand, as shown above; the .NET CLI has no `migrate-packages-config` command\n- **Binding redirects:** SDK-style projects auto-generate binding redirects — remove the `\u003Cruntime>` section from `app.config` if present\n\n### Step 6: Remove Unnecessary Boilerplate\n\nDelete all of the following — the SDK provides sensible defaults:\n\n```xml\n\u003C!-- DELETE: SDK imports (replaced by Sdk attribute) -->\n\u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" ... \u002F>\n\u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\n\u003C!-- DELETE: default Configuration\u002FPlatform (SDK provides these) -->\n\u003CPropertyGroup>\n  \u003CConfiguration Condition=\" '$(Configuration)' == '' \">Debug\u003C\u002FConfiguration>\n  \u003CPlatform Condition=\" '$(Platform)' == '' \">AnyCPU\u003C\u002FPlatform>\n  \u003CProjectGuid>{...}\u003C\u002FProjectGuid>\n  \u003COutputType>Library\u003C\u002FOutputType>  \u003C!-- keep only if not Library -->\n  \u003CAppDesignerFolder>Properties\u003C\u002FAppDesignerFolder>\n  \u003CFileAlignment>512\u003C\u002FFileAlignment>\n  \u003CAutoGenerateBindingRedirects>true\u003C\u002FAutoGenerateBindingRedirects>\n  \u003CDeterministic>true\u003C\u002FDeterministic>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- DELETE: standard Debug\u002FRelease configurations (SDK defaults match) -->\n\u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n  \u003CDebugSymbols>true\u003C\u002FDebugSymbols>\n  \u003CDebugType>full\u003C\u002FDebugType>\n  \u003COptimize>false\u003C\u002FOptimize>\n  \u003COutputPath>bin\\Debug\\\u003C\u002FOutputPath>\n  \u003CDefineConstants>DEBUG;TRACE\u003C\u002FDefineConstants>\n  \u003CErrorReport>prompt\u003C\u002FErrorReport>\n  \u003CWarningLevel>4\u003C\u002FWarningLevel>\n\u003C\u002FPropertyGroup>\n\u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n  \u003CDebugType>pdbonly\u003C\u002FDebugType>\n  \u003COptimize>true\u003C\u002FOptimize>\n  \u003COutputPath>bin\\Release\\\u003C\u002FOutputPath>\n  \u003CDefineConstants>TRACE\u003C\u002FDefineConstants>\n  \u003CErrorReport>prompt\u003C\u002FErrorReport>\n  \u003CWarningLevel>4\u003C\u002FWarningLevel>\n\u003C\u002FPropertyGroup>\n\n\u003C!-- DELETE: framework assembly references (implicit in SDK) -->\n\u003CItemGroup>\n  \u003CReference Include=\"System\" \u002F>\n  \u003CReference Include=\"System.Core\" \u002F>\n  \u003CReference Include=\"System.Data\" \u002F>\n  \u003CReference Include=\"System.Xml\" \u002F>\n  \u003CReference Include=\"System.Xml.Linq\" \u002F>\n  \u003CReference Include=\"Microsoft.CSharp\" \u002F>\n\u003C\u002FItemGroup>\n\n\u003C!-- DELETE: packages.config reference -->\n\u003CNone Include=\"packages.config\" \u002F>\n\n\u003C!-- DELETE: designer service entries -->\n\u003CService Include=\"{508349B6-6B84-11D3-8410-00C04F8EF8E0}\" \u002F>\n```\n\n**Keep** only properties that differ from SDK defaults (e.g., `\u003COutputType>Exe\u003C\u002FOutputType>`, `\u003CRootNamespace>` if it differs from the assembly name, custom `\u003CDefineConstants>`).\n\n### Step 7: Enable Modern Features\n\nAfter migration, consider enabling modern C# features:\n\n```xml\n\u003CPropertyGroup>\n  \u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n  \u003CNullable>enable\u003C\u002FNullable>\n  \u003CImplicitUsings>enable\u003C\u002FImplicitUsings>\n\u003C\u002FPropertyGroup>\n```\n\n- `\u003CNullable>enable\u003C\u002FNullable>` — enables nullable reference type analysis\n- `\u003CImplicitUsings>enable\u003C\u002FImplicitUsings>` — auto-imports common namespaces (.NET 6+)\n- **Avoid `\u003CLangVersion>latest`** — the effective language version is determined by the SDK\u002Fcompiler defaults, not just the TFM, so builds can silently vary across machines with different SDKs installed. Omit `\u003CLangVersion>` unless you need to pin a specific version. For reproducible builds, pin the SDK version repo-wide with `global.json` (which indirectly fixes the default language version), or set an explicit numeric `\u003CLangVersion>` (e.g. `\u003CLangVersion>12\u003C\u002FLangVersion>`) per project to directly control the language version.\n\n## Complete Before\u002FAfter Example\n\n**BEFORE** (legacy — 65 lines):\n\n```xml\n\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CProject ToolsVersion=\"15.0\" xmlns=\"http:\u002F\u002Fschemas.microsoft.com\u002Fdeveloper\u002Fmsbuild\u002F2003\">\n  \u003CImport Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\"\n          Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" \u002F>\n  \u003CPropertyGroup>\n    \u003CConfiguration Condition=\" '$(Configuration)' == '' \">Debug\u003C\u002FConfiguration>\n    \u003CPlatform Condition=\" '$(Platform)' == '' \">AnyCPU\u003C\u002FPlatform>\n    \u003CProjectGuid>{12345678-1234-1234-1234-123456789ABC}\u003C\u002FProjectGuid>\n    \u003COutputType>Library\u003C\u002FOutputType>\n    \u003CAppDesignerFolder>Properties\u003C\u002FAppDesignerFolder>\n    \u003CRootNamespace>MyLibrary\u003C\u002FRootNamespace>\n    \u003CAssemblyName>MyLibrary\u003C\u002FAssemblyName>\n    \u003CTargetFrameworkVersion>v4.7.2\u003C\u002FTargetFrameworkVersion>\n    \u003CFileAlignment>512\u003C\u002FFileAlignment>\n    \u003CDeterministic>true\u003C\u002FDeterministic>\n  \u003C\u002FPropertyGroup>\n  \u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n    \u003CDebugSymbols>true\u003C\u002FDebugSymbols>\n    \u003CDebugType>full\u003C\u002FDebugType>\n    \u003COptimize>false\u003C\u002FOptimize>\n    \u003COutputPath>bin\\Debug\\\u003C\u002FOutputPath>\n    \u003CDefineConstants>DEBUG;TRACE\u003C\u002FDefineConstants>\n    \u003CErrorReport>prompt\u003C\u002FErrorReport>\n    \u003CWarningLevel>4\u003C\u002FWarningLevel>\n  \u003C\u002FPropertyGroup>\n  \u003CPropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' \">\n    \u003CDebugType>pdbonly\u003C\u002FDebugType>\n    \u003COptimize>true\u003C\u002FOptimize>\n    \u003COutputPath>bin\\Release\\\u003C\u002FOutputPath>\n    \u003CDefineConstants>TRACE\u003C\u002FDefineConstants>\n    \u003CErrorReport>prompt\u003C\u002FErrorReport>\n    \u003CWarningLevel>4\u003C\u002FWarningLevel>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CReference Include=\"System\" \u002F>\n    \u003CReference Include=\"System.Core\" \u002F>\n    \u003CReference Include=\"System.Xml.Linq\" \u002F>\n    \u003CReference Include=\"Microsoft.CSharp\" \u002F>\n  \u003C\u002FItemGroup>\n  \u003CItemGroup>\n    \u003CCompile Include=\"Models\\User.cs\" \u002F>\n    \u003CCompile Include=\"Models\\Order.cs\" \u002F>\n    \u003CCompile Include=\"Services\\UserService.cs\" \u002F>\n    \u003CCompile Include=\"Services\\OrderService.cs\" \u002F>\n    \u003CCompile Include=\"Helpers\\StringExtensions.cs\" \u002F>\n    \u003CCompile Include=\"Properties\\AssemblyInfo.cs\" \u002F>\n  \u003C\u002FItemGroup>\n  \u003CItemGroup>\n    \u003CNone Include=\"packages.config\" \u002F>\n  \u003C\u002FItemGroup>\n  \u003CImport Project=\"$(MSBuildToolsPath)\\Microsoft.CSharp.targets\" \u002F>\n\u003C\u002FProject>\n```\n\n**AFTER** (SDK-style — 11 lines):\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net472\u003C\u002FTargetFramework>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CPackageReference Include=\"Newtonsoft.Json\" Version=\"13.0.3\" \u002F>\n    \u003CPackageReference Include=\"Serilog\" Version=\"3.1.1\" \u002F>\n  \u003C\u002FItemGroup>\n\u003C\u002FProject>\n```\n\n## Common Migration Issues\n\n**Embedded resources:** files not in a standard location may need explicit includes:\n\n```xml\n\u003CItemGroup>\n  \u003CEmbeddedResource Include=\"..\\shared\\Schemas\\*.xsd\" LinkBase=\"Schemas\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n**Content files with CopyToOutputDirectory:** these still need explicit entries:\n\n```xml\n\u003CItemGroup>\n  \u003CContent Include=\"appsettings.json\" CopyToOutputDirectory=\"PreserveNewest\" \u002F>\n  \u003CNone Include=\"scripts\\*.sql\" CopyToOutputDirectory=\"PreserveNewest\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n**Multi-targeting:** change the element name from singular to plural:\n\n```xml\n\u003C!-- Single target -->\n\u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n\n\u003C!-- Multiple targets -->\n\u003CTargetFrameworks>net472;net8.0\u003C\u002FTargetFrameworks>\n```\n\n**WPF\u002FWinForms projects:** use the appropriate SDK or properties:\n\n```xml\n\u003C!-- Option A: WindowsDesktop SDK -->\n\u003CProject Sdk=\"Microsoft.NET.Sdk.WindowsDesktop\">\n\n\u003C!-- Option B: properties in standard SDK (preferred for .NET 5+) -->\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CUseWPF>true\u003C\u002FUseWPF>\n    \u003C!-- or -->\n    \u003CUseWindowsForms>true\u003C\u002FUseWindowsForms>\n  \u003C\u002FPropertyGroup>\n\u003C\u002FProject>\n```\n\n**Test projects:** use the standard SDK with test framework packages:\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n    \u003CIsPackable>false\u003C\u002FIsPackable>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CPackageReference Include=\"Microsoft.NET.Test.Sdk\" Version=\"17.9.0\" \u002F>\n    \u003CPackageReference Include=\"xunit\" Version=\"2.7.0\" \u002F>\n    \u003CPackageReference Include=\"xunit.runner.visualstudio\" Version=\"2.5.7\" \u002F>\n  \u003C\u002FItemGroup>\n\u003C\u002FProject>\n```\n\n## Central Package Management Migration\n\nCentralizes NuGet version management across a multi-project solution. See [https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fnuget\u002Fconsume-packages\u002Fcentral-package-management](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fnuget\u002Fconsume-packages\u002Fcentral-package-management) for details.\n\nDo not convert the projects to Central Package Management here. That conversion is the manual\n`@deniz-dotnet-general.convert-to-cpm` ceremony: tell the user to invoke it once the modernized projects\nbuild. An existing `Directory.Packages.props` stays in scope for its placement and layering.\n\n## Directory.Build Consolidation\n\nIdentify properties repeated across multiple `.csproj` files and move them to shared files.\n\n**`Directory.Build.props`** (for properties — placed at repo or src root):\n\n```xml\n\u003CProject>\n  \u003CPropertyGroup>\n    \u003CTargetFramework>net8.0\u003C\u002FTargetFramework>\n    \u003CNullable>enable\u003C\u002FNullable>\n    \u003CImplicitUsings>enable\u003C\u002FImplicitUsings>\n    \u003CTreatWarningsAsErrors>true\u003C\u002FTreatWarningsAsErrors>\n    \u003CCompany>Contoso\u003C\u002FCompany>\n    \u003CCopyright>Copyright © Contoso 2024\u003C\u002FCopyright>\n  \u003C\u002FPropertyGroup>\n\u003C\u002FProject>\n```\n\n**`Directory.Build.targets`** (for targets\u002Ftasks — placed at repo or src root):\n\n```xml\n\u003CProject>\n  \u003CTarget Name=\"PrintBuildInfo\" AfterTargets=\"Build\">\n    \u003CMessage Importance=\"High\" Text=\"Built $(AssemblyName) → $(TargetPath)\" \u002F>\n  \u003C\u002FTarget>\n\u003C\u002FProject>\n```\n\n**Keep in individual `.csproj` files** only what is project-specific:\n\n```xml\n\u003CProject Sdk=\"Microsoft.NET.Sdk\">\n  \u003CPropertyGroup>\n    \u003COutputType>Exe\u003C\u002FOutputType>\n    \u003CAssemblyName>MyApp\u003C\u002FAssemblyName>\n  \u003C\u002FPropertyGroup>\n  \u003CItemGroup>\n    \u003CPackageReference Include=\"Serilog\" \u002F>\n    \u003CProjectReference Include=\"..\\MyLibrary\\MyLibrary.csproj\" \u002F>\n  \u003C\u002FItemGroup>\n\u003C\u002FProject>\n```\n\n## Tools and Automation\n\n| Tool | Usage |\n|------|-------|\n| `dotnet try-convert` | Automated legacy-to-SDK conversion. Install: `dotnet tool install -g try-convert` |\n| .NET Upgrade Assistant | Full migration including API changes. Install: `dotnet tool install -g upgrade-assistant` |\n| Visual Studio | Right-click `packages.config` → *Migrate packages.config to PackageReference* |\n| Manual migration | Often cleanest for simple projects — follow the checklist above |\n\n**Recommended approach:**\n\n1. Run `try-convert` for a first pass\n2. Review and clean up the output manually\n3. Build and fix any issues\n4. Enable modern features (nullable, implicit usings)\n5. Consolidate shared settings into `Directory.Build.props`\n",{"name":5,"description":7},"master","b30b1c1908dbc56a8184128f18803053d762ccb5","opencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.msbuild-modernization",0,"https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins","https:\u002F\u002Fgithub.com\u002FBlind-Striker","denizirgin.com","VP of Engineering - \r\n@armutcom @homeruntech @prontopro\r\n |  Speaker \r\n@CodeFiction\r\n, http:\u002F\u002Fcodefiction.tech | Developer, gamer, blogger, maiden iron fan","2026-11-13 00:23:18",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill deniz-dotnet-general.msbuild-modernization",{"tool":39,"command":40},"bunx","bunx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill deniz-dotnet-general.msbuild-modernization",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Blind-Striker\u002Fagent-skills-and-plugins --skill deniz-dotnet-general.msbuild-modernization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fopencode\u002Fdeniz-dotnet-general\u002Fskills\u002Fdeniz-dotnet-general.msbuild-modernization\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79YGWBJ52PHMSTKJ3RJ3AWR","writing-tunit-tests","Write tests in TUnit — the attributes, the async assertion model, data-driven cases, lifecycle hooks, and the parallelism rules. USE FOR writing or fixing a test in a TUnit project, translating a test idea into TUnit syntax, or reviewing TUnit test code for API mistakes. DO NOT USE FOR deciding what to test, judging whether a test is any good, or running tests.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fwriting-tunit-tests\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79YGR3Y9RCRS6TD71D0KKP8","dotnet-walls","Walls for a .NET change in a repository without its own quality gates — pinned, ephemeral analyzer, format, clone and scanner commands for the verify step, their identity ratchet, and the build traps. Use during a walls preflight, or when a worker's verify step needs .NET quality gates.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fdotnet-walls\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79YGFNJBST7D803NQW3SBYM","csharp-15","Write, review and modernize C# 15 (.NET 11) code correctly. Covers every C# 15 feature - collection expression arguments (`[with(...), ...]`), union types (`union`, `[Union]`, `IUnion`, custom unions), closed class hierarchies (`closed`), extension indexers, labeled `break`\u002F`continue`, non-virtual static interface members on runtimes without default interface methods, and the preview memory-safety model (`unsafe(expr)`, `safe`, requires-unsafe members). Use when code targets net11.0 or LangVersion 15\u002Fpreview, when the user mentions any of these features, when replacing marker interfaces, OneOf-style results, `goto`\u002Fflag loop exits or capacity\u002Fcomparer boilerplate, or when the build reports CS8121, CS8509, CS8655, CS8510, CS0121\u002FCS0411 on a `with(...)` element, CS9370, CS9380 or CS9363.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-dotnet-general\u002Fcsharp-15\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79YGAV031473HSX6FN87ENH","verified-waves","Run one task as verified multi-agent waves. Plans the fan-out, sends findings to fresh skeptics, keeps a ledger, and reports N of M done; small tasks stay solo.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fverified-waves\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79YG6QXNND4WRPP3GATSY8J","harness","The bundled dispatch harness, which runs a task file on worker models through OpenCode or Codex, fences their writes, escalates their asks to the operator, settles each result from git and its verify commands, and records every step in a ledger. Its commands, task file, modes and write fence, configuration, runs and their recovery, ledger and exit codes.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fharness\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79YG2P5S91SDTA5912XJ4FV","delegating-to-worker-models","Use when you hand off implementation, a plan, research a decision will rely on, or a review, and you brief the worker and check what comes back. A subagent that searches, reads in parallel, or keeps your context small is ordinary tool use. Covers what stays with you, the mechanism, assigning work by strength, the walls preflight, prompts without contradictions, the worker contract and model profiles, evidence from your own run, review, and the fix-up loop.","https:\u002F\u002Fgithub.com\u002FBlind-Striker\u002Fagent-skills-and-plugins\u002Fblob\u002Fmaster\u002Fskills\u002Fdeniz-coordination\u002Fdelegating-to-worker-models\u002FSKILL.md",[],[]]