Call Processing Script | Found conflicts between different versions of "System.Runtime" that could not be resolved. [/root/OMSamples/OMSamplesCore.csp

Stig

SMB User
Basic Certified
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!
 

Attachments

V20u9 runs on .NET 10. You'll be fine.
 

Members Online Now

Forum statistics

Threads
111,812
Messages
589,131
Members
164,627
Latest member
so91