How can I use XamlQRCode in windows-only, wpf, .net 5 application? #329
-
I have an application where I'd really like to use the XamlQRCode functionality. It fits perfectly with the nature of my application which is a wpf-based graphic design tool. Unfortunately, when I tried adding the XamlQRCode sample code from the documentation into my project, XamlQRCode could not be found. The other QRCoder classes were fine. I assume it's because I'm in a .NET 5 environment, but as long as I'm targeting windows and using wpf, it seems like it should still work. the sample code from the doc that I inserted:
from my .csproj file:
I'm using QRCoder version 1.4.1 as a nuget package. Is there a way to get this to work? please help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In case anyone else was wondering, the solution for me was to build it myself and include the correct dll with my project instead of relying on nuget. If there's another way, I'd still like to know, but for now, at least, the issue is resolved. |
Beta Was this translation helpful? Give feedback.
In case anyone else was wondering, the solution for me was to build it myself and include the correct dll with my project instead of relying on nuget. If there's another way, I'd still like to know, but for now, at least, the issue is resolved.