Hi @Mark Barber , Welcome to Microsoft Q&A,
In this case, it may be because the location or namespace of some assemblies has changed in Visual Studio 2022. In the .NET Framework, Data Visualization-related components are usually included in System.Windows.Forms.DataVisualization.dll. However, starting with .NET 5, these components have been moved to other namespaces and become independent NuGet packages.
Update NuGet Packages: Open your solution, right-click the project in Solution Explorer, and select Manage NuGet Packages. In the Installed tab, make sure your Data Visualization related packages are up to date. You may need to update or reinstall these packages.
Check Namespaces: Open your code and check where you use Data Visualization related components. Make sure your references and namespaces are correct. In .NET 5 and later, Data Visualization may have moved from System.Windows.Forms.DataVisualization to a different namespace.
Migrate to .NET Core/.NET 5+: Consider migrating your project to .NET Core or .NET 5+ as they are the latest versions of the .NET platform and may have better support for features such as data visualization . Note, however, that this may require some code adjustments.
Find documentation: Check out the documentation for the Data Visualization components to learn how to use them correctly in newer versions of .NET.
You need to check what version you are using and what version you need to migrate to.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.