Errors/Warnings building SIPSorcery and AndroidSIPGetStarted projects in VS2022 #1344
Replies: 2 comments 1 reply
-
|
It's been a long time since I (and as far as I know anyone else) has done any serious work on any of the Xamarin demos. They are very much obsolete at this stage. I can't offer much help on the Android questions. It's also not something I've spent time on recently. |
Beta Was this translation helpful? Give feedback.
-
|
You're running into a mix of two separate issues here: outdated Xamarin targets and how the solution is structured. The MSB3270 architecture warning is less critical. It typically shows up when there’s a mismatch between AnyCPU and x86 references, and in many cases it doesn’t actually block the build. If you still want to try building the sample, you’ll need to install the legacy Xamarin/Android workloads and keep monoandroid in the target frameworks so the dependency chain stays valid. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm looking for a SIP library with C# interface for simple VoIP functionality (G711, uLaw, 8kHz, 16bit, one direction only - out) for use in an Android app in Xamarin (still available in project templates, though claimed no longer supported) or MAUI.
Discovering SIPSorcery was very promising, so I started to evaluate. Upon cloning the source tree I'm trying to compile AndroidSIPGetStarted sample project and keep stumbling.
The first issue right on opening the solution was that VisualStudio prompted me to install .NET Core 3.1 and .NET 5.0. Both out of support today, 1.4 GiB of more crap on my drive.. - so I said "no".
Opened the SIPSorcery.csproj file and changed
TargetFrameworksto onlynet462;net8.0- the only frameworks I care about. That resulted in NU1201 error (Project SIPSorcery is not compatible with monoandroid90..).I added
;monoandroid90toTargetFrameworks. NU1201 error disappeared, but got replaced by these 2 warnings:If
monoandroid90is removed from SIPSorcery.csproj'sTargetFrameworks, that project compiles successfully (yay!).But then trying to compile AndroidSIPGetStarted project results in NU1201 shown above.
I'm puzzled by MSB3270, as any processor architecture choice I can find shows
Any CPU. Also, why does a child project force its parent's references (Mono.Android 9.0 in this case), when parent is very much compilable without it (thus parent itself does not use it)?Is there any way to solve this and move forward?
I very much appreciate the work you've done to make this a clean, well documented and pristine-C# implementation, and would love to make it fit! Thank you for all the efforts!
P.S. I can add screenshots detailing the errors/warnings if needed.
Beta Was this translation helpful? Give feedback.
All reactions