### Example SDK-style Project File Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-a-WPF-App-to-.NET-5-with-the-.NET-Upgrade-Assistant Displays the structure of a modernized .NET project file after the upgrade-assistant has completed its migration. This includes the updated TargetFramework, output type, and necessary PackageReferences. ```xml net5.0-windows WinExe false true all ``` -------------------------------- ### Run .NET Upgrade Assistant Command Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-a-Windows-Forms-App-to-.NET-5-with-the-.NET-Upgrade-Assistant Execute the upgrade-assistant command in the terminal, specifying the target project file. This initiates the modernization process, guiding the user through various migration steps. ```console upgrade-assistant .\WinformsTest.csproj ``` -------------------------------- ### Install try-convert Tool Source: https://github.com/dotnet/modernize-dotnet/wiki/Overview-of-the-.NET-Upgrade-Assistant Installs the try-convert tool globally, which is a dependency for the .NET Upgrade Assistant. This tool is used for converting project files to the new SDK style. ```bash dotnet tool install -g try-convert ``` -------------------------------- ### Run .NET Upgrade Assistant via CLI Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-a-WPF-App-to-.NET-5-with-the-.NET-Upgrade-Assistant Executes the upgrade-assistant tool against a specific project file. The command initiates an interactive migration process that guides the user through backup, conversion, and dependency updates. ```console upgrade-assistant .\WpfTest.csproj ``` -------------------------------- ### Install .NET Upgrade Assistant Source: https://github.com/dotnet/modernize-dotnet/wiki/Overview-of-the-.NET-Upgrade-Assistant Installs the .NET Upgrade Assistant as a global .NET CLI tool. This command fetches the tool from a specific Azure DevOps feed. ```bash dotnet tool install -g upgrade-assistant --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json ``` -------------------------------- ### Example Modernized .NET Project File (XML) Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-a-Windows-Forms-App-to-.NET-5-with-the-.NET-Upgrade-Assistant This XML snippet shows the structure of a .NET project file after being modernized by the .NET Upgrade Assistant. It includes updated Target Framework Moniker (TFM), NuGet package references, and configuration for Windows Forms applications. ```xml net5.0-windows WinExe false true all ``` -------------------------------- ### Update try-convert Tool Source: https://github.com/dotnet/modernize-dotnet/wiki/Overview-of-the-.NET-Upgrade-Assistant Updates the globally installed try-convert tool to the latest version. This is important as the .NET Upgrade Assistant depends on a specific minimum version of try-convert. ```bash dotnet tool update -g try-convert ``` -------------------------------- ### Update .NET Upgrade Assistant Source: https://github.com/dotnet/modernize-dotnet/wiki/Overview-of-the-.NET-Upgrade-Assistant Updates the globally installed .NET Upgrade Assistant tool. This command is used to ensure you have the latest version of the upgrade tool, which is under active development. ```bash dotnet tool update -g upgrade-assistant --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json ``` -------------------------------- ### Run .NET Upgrade Assistant Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-an-ASP.NET-MVC-App-to-.NET-5-with-the-.NET-Upgrade-Assistant Execute the upgrade-assistant command in the terminal, specifying the target project file. This initiates the modernization process, presenting a series of steps for the user to review and apply. ```console upgrade-assistant .\AspNetMvcTest.csproj ``` -------------------------------- ### Review Static File References in Project File Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-an-ASP.NET-MVC-App-to-.NET-5-with-the-.NET-Upgrade-Assistant After the upgrade process, examine the project file for static file references. These may include assets like fonts and CSS maps that need to be managed or updated. ```xml ``` -------------------------------- ### Retrieve Skill Instructions Source: https://github.com/dotnet/modernize-dotnet/blob/main/plugins/modernize-dotnet/agents/modernize-dotnet.agent.md Fetches specific skill instructions by name or topic. The query should be specific to ensure accurate retrieval of relevant documentation. ```python get_instructions(kind='skill', query='') ``` -------------------------------- ### Remove legacy MSBuild Import elements Source: https://github.com/dotnet/modernize-dotnet/wiki/Upgrade-an-ASP.NET-MVC-App-to-.NET-5-with-the-.NET-Upgrade-Assistant This XML snippet represents a legacy project import that should be removed from the project file when migrating to modern .NET SDK projects to avoid build conflicts. ```xml ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.