Errors/Warnings building SIPSorcery and AndroidSIPGetStarted projects in VS2022 #1344
Unanswered
Astrogator7
asked this question in
Q&A
Replies: 1 comment 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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
TargetFrameworks
to onlynet462;net8.0
- the only frameworks I care about. That resulted in NU1201 error (Project SIPSorcery is not compatible with monoandroid90..).I added
;monoandroid90
toTargetFrameworks
. NU1201 error disappeared, but got replaced by these 2 warnings:If
monoandroid90
is 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