- Joined
- Aug 6, 2026
- Messages
- 1
- Reaction score
- 0
Solution from: https://www.3cx.com/community/threa...ror-dotnet-build-omsamplescore-csproj.133043/
Does not work and getting new error:
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Runtime" that could not be resolved. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: "System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on "System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll]. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on or have been unified to "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" []. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/lib/3cxpbx/3cxpscomcpp2.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/lib/3cxpbx/3cxpscomcpp2.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: 3cxpscomcpp2 [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Runtime.InteropServices" that could not be resolved. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Runtime.InteropServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: "System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Runtime.InteropServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on "System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll]. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on or have been unified to "System.Runtime.InteropServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" []. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/lib/3cxpbx/3cxpscomcpp2.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/lib/3cxpbx/3cxpscomcpp2.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: 3cxpscomcpp2 [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Collections.Concurrent" that could not be resolved. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Collections.Concurrent, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Collections.Concurrent, Version=10.0.0.0, Culture=neutral,
********************************************************************************************
I am seeking confirmation that how I fixed this will not cause issue on my 3cx deployment.
Ref:
instead of running: apt-get update && apt-get install -y dotnet-sdk-8.0
I ran: apt-get update && apt-get install -y dotnet-sdk-10.0
I edit: /root/OMSamples/OMSamplesCore.csproj
Updated: ::TargetFramework=net8.0
To: ::TargetFramework=net10.0
Instead of running: cp Scripts bin/Debug/net8.0 -r
I ran: cp Scripts bin/Debug/net10.0 -r
instead of running: cd bin/Debug/net8.0
I ran: cd bin/Debug/net10.0
Thanks in advance!
Does not work and getting new error:
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Runtime" that could not be resolved. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: "System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on "System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll]. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on or have been unified to "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" []. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/lib/3cxpbx/3cxpscomcpp2.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/lib/3cxpbx/3cxpscomcpp2.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: 3cxpscomcpp2 [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Runtime.InteropServices" that could not be resolved. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Runtime.InteropServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: "System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Runtime.InteropServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on "System.Runtime.InteropServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll]. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.29/ref/net8.0/System.Runtime.InteropServices.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: References which depend on or have been unified to "System.Runtime.InteropServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" []. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: /usr/lib/3cxpbx/3cxpscomcpp2.dll [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Project file item includes which caused reference "/usr/lib/3cxpbx/3cxpscomcpp2.dll". [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: 3cxpscomcpp2 [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: Found conflicts between different versions of "System.Collections.Concurrent" that could not be resolved. [/root/OMSamples/OMSamplesCore.csproj::TargetFramework=net8.0]
/usr/share/dotnet/sdk/8.0.423/Microsoft.Common.CurrentVersion.targets(2412,5): warning MSB3277: There was a conflict between "System.Collections.Concurrent, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Collections.Concurrent, Version=10.0.0.0, Culture=neutral,
********************************************************************************************
I am seeking confirmation that how I fixed this will not cause issue on my 3cx deployment.
Ref:
Hi,
i'm trying to install 3CX Call control API on my 3CX linux Version 20.0 Update 6 (Build 486 Alpha)
Following 3CX Call control API , when i try to run the command dotnet build OMSamplesCore.csproj
the following errors appears
root@medialink:~# cd OMSamples
root@medialink:~/OMSamples# dotnet build OMSamplesCore.csproj
Individuazione dei progetti da ripristinare...
Tutti i progetti sono aggiornati per il ripristino.
/root/OMSamples/Samples/V20CallControlAPI.cs(168,124): error CS1503: Argomento 2: non è possibile convertire da 'string' a...
i'm trying to install 3CX Call control API on my 3CX linux Version 20.0 Update 6 (Build 486 Alpha)
Following 3CX Call control API , when i try to run the command dotnet build OMSamplesCore.csproj
the following errors appears
root@medialink:~# cd OMSamples
root@medialink:~/OMSamples# dotnet build OMSamplesCore.csproj
Individuazione dei progetti da ripristinare...
Tutti i progetti sono aggiornati per il ripristino.
/root/OMSamples/Samples/V20CallControlAPI.cs(168,124): error CS1503: Argomento 2: non è possibile convertire da 'string' a...
- antoniovaccaro
- Replies: 3
- Forum: Call Flow Designer
instead of running: apt-get update && apt-get install -y dotnet-sdk-8.0
I ran: apt-get update && apt-get install -y dotnet-sdk-10.0
I edit: /root/OMSamples/OMSamplesCore.csproj
Updated: ::TargetFramework=net8.0
To: ::TargetFramework=net10.0
Instead of running: cp Scripts bin/Debug/net8.0 -r
I ran: cp Scripts bin/Debug/net10.0 -r
instead of running: cd bin/Debug/net8.0
I ran: cd bin/Debug/net10.0
Thanks in advance!