Reputation: 1226
I have migrated a VS 2008 project to Visual Studio 2017 community edition. The project uses .net charts, and was originally a .net 3.5 project. I now have .net framework 4.7.2 installed.
I am unable to add a reference to System.Windows.Forms.DataVisualization in the project references. When I select System.Windows.Forms.DataVisualization from the available references, it is added to the project references but it has a yellow warning icon next to it, and the compiler can't find the classes in the DataVisualization namespace.
I found this article with a supposed fix: https://developercommunity.visualstudio.com/content/problem/28126/unable-to-add-reference-in-visual-studio-2017-refe.html
This mentions the command gacutil -i System.Windows.Forms.DataVisualization.dll
. When I run this command in the Developer Command Prompt for VS 2017, I get an error:
Failure adding assembly to the cache: An attempt was made to load a program with an incorrect format.
What's the trick to getting charts to work in .net 4.7?
Upvotes: 2
Views: 3898
Reputation: 11
Upvotes: 1