microsoft / winforms-designer-extensibility

MIT License
56 stars 13 forks source link

How to reference a nuget package for the designer #10

Closed sebmizfsa closed 12 months ago

sebmizfsa commented 1 year ago

Hi,

I try to add the System.Text.Json inside the package because I need it for my editor. The package is added to the protocol library in the net4.7.2 version.

I added the following line in the package project file

    <_File Include="$(ProjectDir)..\Vitesse.Devices.Core.Protocol\bin\$(Configuration)\net472\System.Text.Json.dll" TargetDir="Design/WinForms" />

If I look inside the nuget package, the file is present at the right place.

But when I Install the package in a client winform app, I have the following error : (a task has been cancelled) image

How do I reference a nuget package to be used in the designer by my dialog ?

If I copy directly the file system.text.json.dll in the design/winforms folder, all works well.

Thanks for helping

kirsan31 commented 1 year ago

Due to error, your problem has nothing to do with the designer, we need to look at the nuget log and / or the package itself.

KlausLoeffelmann commented 1 year ago

I added links to the related blog posts. Is this still an issue?