TeeChart controls are not populated to VS Toolbox (.NET Framework WinForms) when adding nuget via PackageReference

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
bairog
Newbie
Newbie
Posts: 7
Joined: Thu Nov 21, 2019 12:00 am

TeeChart controls are not populated to VS Toolbox (.NET Framework WinForms) when adding nuget via PackageReference

Post by bairog » Fri Oct 16, 2020 6:21 am

Hello.
In your StandardSeriesDemo sample project Steema.TeeChart.NET nuget package is added to project via old-style Packages.config format.
In that case TeeChart controls are automatically populated to VS Toolbox and are correctly added to form after drag-and-drop.
But if I choose new-style PackageReference in project file format TeeChart controls are NOT populated to VS Toolbox. A still can add the manually from TeeChart.dll (but all controls have different icons), but when I drag-and-drop TChart control on my form - nothing happends (no control is added to a form).
What I am doing wrong? We use VS 2019 and are not intended to use old-style format (VS 2019 16.7.6, .NET Framework 4.8 ).
Thank you.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: TeeChart controls are not populated to VS Toolbox (.NET Framework WinForms) when adding nuget via PackageReference

Post by Christopher » Fri Oct 16, 2020 9:05 am

Hello,

Again, this functionality works as expected here:
notepad++_2020-10-16_11-03-37.png
notepad++_2020-10-16_11-03-37.png (8.36 KiB) Viewed 9757 times
devenv_2020-10-16_11-03-16.png
devenv_2020-10-16_11-03-16.png (10.25 KiB) Viewed 9757 times
devenv_2020-10-16_11-03-05.png
devenv_2020-10-16_11-03-05.png (9.85 KiB) Viewed 9757 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

bairog
Advanced
Posts: 128
Joined: Fri Dec 07, 2018 12:00 am

Re: TeeChart controls are not populated to VS Toolbox (.NET Framework WinForms) when adding nuget via PackageReference

Post by bairog » Fri Oct 16, 2020 10:39 am

Christopher wrote:
Fri Oct 16, 2020 9:05 am
Again, this functionality works as expected here:
Argh, I don't even want to think about another uninstall and install..

Don't know what is wrong with my VS installation (again?) but looks like I've found a workaround for me: after adding Steema.TeeChart.NET nuget via PackageReference .csproj file is not altered for some reason (PackageReference xml-tag is not added). But if after that I simply create for example an instance of TChart class (and add apropriate using above) - PackageReference xml-tag is instantly added to .csproj and TeeChart controls are not populated to VS Toolbox.
Strange that other nuget packages (Newtonsoft.Json, Microsoft.EntityFrameworkCore.SQLite, etc.) are working as expected and add PackageReference xml-tag to .csproj file instantly.

At least there is a solution for me now..

Post Reply