Page 1 of 1

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

Posted: Fri Oct 16, 2020 6:21 am
by 15687415
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.

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

Posted: Fri Oct 16, 2020 9:05 am
by Christopher
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 9571 times
devenv_2020-10-16_11-03-16.png
devenv_2020-10-16_11-03-16.png (10.25 KiB) Viewed 9571 times
devenv_2020-10-16_11-03-05.png
devenv_2020-10-16_11-03-05.png (9.85 KiB) Viewed 9571 times

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

Posted: Fri Oct 16, 2020 10:39 am
by 15685014
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..