New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't Work Deployed as ClickOnce #29
Comments
I have the same problem with a Windows Forms application. I'm using the new DYMO SDK Dymo.Connect.SDK provided by NuGet in a Windows Forms app (.Net Framework 4.8). I want to list all available dymo printers. When debugging the app or starting the exe, everything works fine and the printer is found. When I deploy the app as ClickOnce, no printer is found. |
Hi @SimonEvans482 and @becker-ncg , check out your deployed folder contains the DYMO DLLs and SkiaSharp.
|
The following dlls were not deployed into the click once application files folder: DYMOPrinting, PrintingSupportLibrary, libdymobarcode and libSkiaSharp. I could add DYMOPrinting, PrintingSupportLibrary manually from packages\DYMO.Connect.SDK.1.3.2.137\Build. libdymobarcode.dll couldn't be added from there and libSkiaSharp.dll also fails. |
I tried to update SkiaSharp with NuGet, but the newest version is not compatible with DYMO. |
I've the same problem, anyone have some good news? |
I was able to work around it by looking at the build in the \bin\debug that was working and see what files were missing from my ClickOnce deployment. libSkiaSharp.dll I messed around with mag.exe and building a custom manifest and it just was nothing but a hassle. At least this method will still allow me to make updates to my code and quickly publish. This is all after I had already added as much to my references as I could, the problem is that the SDK files in the x86 folder MUST be in the x86 folder and you must set the Compile target to x86. I didn't need the x64 folder. These are the dll files I had in my build (that were not already in the x86 folder) DYMO.Common.dll I will post my sample vb.net source code here for anyone who needs it: |
I was able to mix @skillsinc-Ed and @dymosoftware solutions to come up with a working solution for myself that gets the project working and deploying correctly using ClickOnce targeting .NET Framework in Visual Studio. I had to perform these steps in this exact order. In Nuget Command Line Install-Package SkiaSharp -version 1.68.0.0 Once packages have been installed, navigate in Windows Explorer to [Your Project Directory]/packages and copy the following files to your project. Be sure to set the Copy to Output Directory Property to "Copy if newer" for each file. DYMO.Connect.SDK.[Version]/build/DYMOLib/[ALL FILES] to Project Should look like this when complete. |
@ksladowski can you post the log file that's generated from the "Application cannot be started..." message? It should tell you why it failed then we can look into it further. |
With the latest Nuget package DYMO.Connect.SDK version 1.4.3.37, the only thing missing is the reference to SkiaSharp.Views For the developer who managed the nuget package :
|
Just noting that the advice provided above by 1zerro1 on Aug 24, 2022 helped resolve the issue I was having here in August of 2023. |
The DLLs are unsigned, and this becomes a major hassle. Please sign DLLs with an SNK. |
I tried signing the DLLs using a method I have used in the past and I get an error, so I cannot sign the files. This eliminates my ability to support Dymo printers, so I will have to tell my users to buy Zebra printers, which just work without any of the major hassles I have spent the last two months dealing with. |
Sample WPF Application using DYMO Connect SDK works fine in Visual Studio but has issues when published using ClickOnce.
once published DymoPrinter.Instance.GetPrinters() does not return any printers, despite them being available on the client machine and accessible from Dymo Connect / Dymo Label.
Deployed Sample app also crashes on label load, claiming element DieCutLabel does not exist in template (it does), though works fine in IDE.
The text was updated successfully, but these errors were encountered: