adn77 / 3cx-web-API

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

Build FAILED. v20 update 1 (build 731) #1

Closed harpon78 closed 4 months ago

harpon78 commented 4 months ago

Hello. When attempting to build the forked API I get the following error. Do you know what this could be?

CSC : error CS1705: Assembly '3cxpscomcpp2' with identity '3cxpscomcpp2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=53c4927ce4749cb4' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/root/downloads/3cx-web-API/WebAPICore.csproj]

I followed instructions in readme for installing dotnet, etc..

wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb apt-get update && apt-get install -y dotnet-sdk-7.0

i edited the WebAPICore.csproj and then compiled. I hope you can help as i would love to get this working for my frustrated users.

harpon78 commented 4 months ago

I updated dotnet to version 8 (removed dotnet 7) and the build succeeded after that. I also had to reference net8 in the project file: net8.0