Montesuma80 / 3cx-web-API

an local API to Controll your 3CX v16/v18 over HTTP
77 stars 38 forks source link

Build Error #31

Open CITS101 opened 9 months ago

CITS101 commented 9 months ago

Hi,

I can't seem to be able to get the WebAPICore.csproj to build successfully. It gives me the following output:

CSC : error CS1705: Assembly '3cxpscomcpp2' with identity '3cxpscomcpp2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=53c4927ce4749cb4' uses 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/3cx-web-API/WebAPICore.csproj] 16 Warning(s) 1 Error(s)

It is running on Debian 12 and has .net5.0 installed. I have updated the csproj file to reference the 3cxpscomcpp2.dll file accordingly. I am not sure on what I need to do for this: "3CXPhoneSystem.ini (Debian User must fix the Path in the ini for the 3cxpscomcpp2.dll)".

Please could you provide some pointers as to where I appear to be going wrong?

Thanks Arif

damithkothalawala commented 8 months ago
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net7.0</TargetFramework>
    <ApplicationIcon />
    <StartupObject>WebAPI.Program</StartupObject>
    <RootNamespace>WebAPI</RootNamespace>
    <AssemblyName>WebAPICore</AssemblyName>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <OutputPath></OutputPath>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="Properties\" />
  </ItemGroup>

  <ItemGroup>
    <Reference Include="3cxpscomcpp2">
      <HintPath>/usr/lib/3cxpbx/3cxpscomcpp2.dll</HintPath>
    </Reference>
  </ItemGroup>

</Project>