Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Can I package C# WPF with a C dll?

$
0
0

I have a C# WPF that generates NuGet packages on Visual Studio 2019 Community.

The project needs to be packaged with a 32bit C .dll dependency that installs winusb drivers for a target device. When attempting to add the reference:

add dependency dll 'winusbLoader.dll

I get the following error:

The reference is invalid or supported

When adding the reference manually to the .csproj script, Visual Studio shows broken reference warnings.

libusbLoader broken reference

My questions are:

  1. Can only Console application reference C .dlls ?
  2. How can it be possible to package a C .dll into a C# WPF?
  3. Should I drop C# for a classical C++ GUI?

Thank you,


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>