Linphone.dll not found with windows form - c#

I want to create a g application with C# and Windows Forms. For this I have downloaded and installed the latest nuget from the official website (https://download.linphone.org/releases/windows/sdk/). But now when I want to make a call, the programme crashes with the error:
DllNotFoundException:linphone.dll
I have now tried various things: modify LinphoneWrapper.cs, integrating dll file into the project, dll file in bin folder, ... but had no success.
I tried the same thing with C# UWP and it worked without any problems. But UWP does not look like the right way to me.
I am still inexperienced: Is it even possible with this nuget and Windows Forms, or do I have to download and build (cmake) the linphone-sdk first?
Thanks for help.

Are you building for x64? linphone doesn't support targeting x86 (look here)

Related

Windows Application Packaging Project Trying to Package Two of Same File Causing Error

I have created a Windows Application Packaging Project in Visual Studio to package a UWP Application and a Console Application together. Everything in the project compiles just fine, and I am able to create an AppPackage for the UWP application by itself.
However, when I attempt to make an AppPackage for the Windows Application Packaging Project I get the following error:
You can't add both "C:\Users\jhogle.nuget\packages\acr.userdialogs\7.0.1\lib\uap10.0.16299\Acr.UserDialogs\Platforms\Uwp\ActionSheetContentDialog.xaml" and "C:\Users\jhogle\Documents\Git\sMARt\Client\Client.UWP\bin\x86\Release\ilc\Acr.UserDialogs\Platforms\Uwp\ActionSheetContentDialog.xaml" to the output file as "Acr.UserDialogs\Platforms\Uwp\ActionSheetContentDialog.xaml"
I know that Arc.UserDialogs is a nuget package that I am using in the UWP application. However, I don't understand what is causing this file to be added twice.
The UWP app is the only project in the solution that references Arc.UserDialogs. It seems to be trying to add the file in question from both the nuget install location, and the output of the UWP application.
What am I doing wrong here?
Edit:
As per Sunteen Wu's comment, I am adding the contents of ActionSheetContentDialog.xaml They can be found here.

Unable to load DLL 'sqlite3': in windows phone app.

I'm working on a windows Phone OLD application. I'm getting this issue related to SQL3.dll. in visual 2015.
Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
What I've tried, Done Cleaning all project, added sqlite.dll in Bin/debug folder, but I could not overcome this issue.
here is a screenshot.
I've tried adding a dll as reference (sqlite-winrt-3220000.vsix) but this is not compatible.
Any help would be appreciated.
Add the dll as a reference:
Right-click in "References" in the project you want to use it in and select "Add reference".
Select the option "Browse" and use the browse button to select the dll you want to include.
Add a using statement to the class.
After this you can use the dll in the project.
I've tried adding a dll as reference (sqlite-winrt-3220000.vsix) but this is not compatible.
SQlite is distributed as a VS extension. To add reference to your project, right click on References, “Add References”, “Windows Phone 8”, “Extensions”, check “SQLite for Windows Phone”, press OK.
No other steps are required, you don’t need other references and you don’t need to specify or deploy DLLs manually.
Also sqlite has different extension for WP8.1, you should probably install another one, sqlite-wp81-winrt-3220000.vsix.
Update: I think you’re trying to build for a platform that’s unsupported by SQLite library. SQlite for windows phone only supports 2 platforms, intel 32 bit (for emulators) and ARM (for devices and for the marketplace). It does not support AMD64, and it does not support “Any CPU”. You’re probably trying to build “Any CPU”, it’s usually the default platform for .NET.
Another possible reason is wrong project type. Your project has to be windows phone 8.1 app, not universal, i.e. the project name in the solution explorer panel must end with ”(Windows Phone 8.1)”
Update 2: I’ve compiled a simple app that uses sqlite, run it in emulator and it worked flawlessly on my PC. Ensure your references look like this:
If you have the same, make sure you have VS 2015 Update 3 installed. If you already have it, repairing your visual studio installation might help.

Visual Studio 2015, C# and creating releases

This is a question for which I need someone to give me some pointers and point me in the right direction. Not a "suggest-a-sulution-code" question:
How do I create a stand-alone release of a C# Windows Froms application that uses a couple of NuGet packages AND an external library (AutoIT)?
The application is a simple forms application which uses Selenium Webdriver for opening and accessing a browser. In addition to this, it uses a library called AutoIt, for handling windows operations.
In my VS project I've installed Selenium Webdriver with NuGet, and added the AutoIt libraries manually as externals.
The resulting .exe file created after build does not work on another computer when I just copy it over. The GUI and functionality works, but the AutoIt library is not included. This is probably logical, and due to my lack of knowledge regarding building windows applications. But how do I do this? How do I build a release which can be used by others, which includes any external libraries used by the application? Do I have to manually get all DLL files relatedt to the project, or is there a way to package things to make it easier?

Using ZeroMQ In c#

I am trying out ZeroMQ to see if it can be used for my application. However, I have problem getting it to work.
OS: Windows 10
Programming Language: C#
SDK: VS 2015 Enterprise
From what I read in order to use it in c#, I will need clrmq (which contains clr namspace for .NET) and zmq.
I gotten the "ZeroMQ.Release.zip" from "https://github.com/zeromq/clrzmq4/releases" and within it, it contains libzmq.dll, libsodium.dll (both from i386 folder in bin) and ZeroMQ.dll (from bin).
When I try to add references (of the mentioned 3 dlls) to my testing project, I got an error stating
"libsodium.dll and libzmq.dll icould not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component."
In the end, I only manage to bring in ZeroMQ.dll.
Any help would be appreciated to help me start using zeroMQ in my testing.
Thanks.
Try to use NuGet package ZeroMQ. It will add required references properly.
Try to use Package Manage Console from Tools in VS. Install clrzmq and zeromq it'll solve all problem. In offline mode download the packages and install them.

Include c++ libraries in uwp C#

my app is developed in C#. We have a WinRT component, which uses the c++ libraries. After adding a reference from C# project to WinRT, everything is fine. Compilation without errors. But if I try to create new object, I get exception FileNotFound. The reason is, WinRT component doesn't have dependency dlls. So I tried to add them in project, set Content = true, but it is not working. The libraries are not included in the package, so are not deployed to mobile emulator. When I try to run the app on desktop, it's not working too. I have to copy the dlls manually to Appx folder.
Please let me know, if you have some advice for me.
Thank you

Categories

Resources