Skip to content

.Net 6.0 compatibility #26

@bk-lg

Description

@bk-lg

With the lastest v18u8 the .net version changed to .Net 6.
I needed to add a return value in the update.cs for the catch case. After that it compiled and worked with the latest 3cx version.
Build on 3cx Debian 10.

MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
Restored /opt/3cx-web-api/WebAPICore.csproj (in 203 ms).
/opt/3cx-web-api/update.cs(16,30): error CS0161: 'update.updateid(string, string)': not all code paths return a value [/opt/3cx-web-api/WebAPICore.csproj]
/opt/3cx-web-api/getcallid.cs(29,38): warning CS0618: 'ActiveConnection.HistoryIDOfTheCall' is obsolete: 'V14. This ID is not stored in call history database. So this property should not be used to store references' [/opt/3cx-web-api/WebAPICore.csproj]
Build FAILED.
/opt/3cx-web-api/getcallid.cs(29,38): warning CS0618: 'ActiveConnection.HistoryIDOfTheCall' is obsolete: 'V14. This ID is not stored in call history database. So this property should not be used to store references' [/opt/3cx-web-api/WebAPICore.csproj]
/opt/3cx-web-api/update.cs(16,30): error CS0161: 'update.updateid(string, string)': not all code paths return a value [/opt/3cx-web-api/WebAPICore.csproj]
1 Warning(s)
1 Error(s)

Time Elapsed 00:00:03.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions