2

I am trying to build a Xamarin native android class library in C# to make some of my customized android widgets available across projects. I was able to do it with VS 2017 like below.

enter image description here

But I was not able to find this kind of project when creating in VS 2019. See the picture below. I can only create Xamarin.Android app but not class libraries.

enter image description here

When I really tried I could even find what I wanted in F#, as shown below. But I don't know F#. I didn't even remember choosing F# when installing VS 2019.

enter image description here

I have to move to VS2019 because my project that refereces ScandIt library cannot compile in VS 2017. But I ran into this problem. I suppose I could create that class library project in VS2017 and then work on it in VS2019 but that feels frustrating. Can anyone tell me what I am missing?

I'm using VS2019 16.9.3 in Windows 10.

Edit: Found another guy with similar problem (he can't find binding library). Not sure if the same patch applies to me. Will just have to wait.

https://developercommunity.visualstudio.com/t/Cannot-find-Xamarin-Android-Binding-Libr/1363176?space=8&q=android+binding&viewtype=all

Lionet Chen
  • 832
  • 11
  • 26
  • this new dialog is crap, use the [classic tree based one](https://stackoverflow.com/a/56335266/1466046) – magicandre1981 Mar 31 '21 at 13:36
  • @magicandre1981 Legendary! I couldn't understand why people talk about how broken these new MS products are until now. I don't mind the new look. But missing feature... is infuriating. Can you post your answer so I can accept it? For the poor blokes from future. – Lionet Chen Mar 31 '21 at 13:49
  • no new answer as it is a duplicate. I don't want to repeat myself again – magicandre1981 Mar 31 '21 at 15:03
  • idk what's the issue with your VS, but I can find the `Android Class Library` in my VS19, posting the pic below in answer section, gonna delete it once you acknowledge it. – Blu Mar 31 '21 at 17:11
  • Actually I think Blu is right. Even with classic view I couldn't find the project template. I must've misread it last night. – Lionet Chen Mar 31 '21 at 23:10
  • @LionetChen VS team has addressed the problem and the fix is pending release. Please check:https://developercommunity.visualstudio.com/t/Cannot-find-Xamarin-Android-Binding-Libr/1363176?space=8&q=android+binding – Cherry Bu - MSFT Apr 01 '21 at 07:02

2 Answers2

1

The issue is fixed with Update 16.9.4

Added back missing Xamarin templates (iOS/Android Class Library, iOS/Android Bindings Library, Android Wear, Xamarin.UITest) in the New Project dialog. These templates were hidden by mistake.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127
0

Not an answer, just want to show you that I can find the library un my VS19.

The simple thing is, I just search for library & it was present over there, after adding the same filters as shown by you, the Library was on the top.

VS19

------------------- EDIT----------------------------

Versions of VS

Old

New

Blu
  • 821
  • 4
  • 17