Visual Studio 2017 - Xamarin Native template is missing - xamarin

Any help as to why I don't see the Xamarin Native template? I re-installed the Visual Studio & also reinstalled Xamarin work load alone, but with no joy so far.
Edited:
Why I don't see three options as in this question?
Missing Templates in Latest Xamarin Visual Studio 2017
if someone can confirm, on their VS2017 15.6.6 that it indeed exists for them, that would be really helpful. Thanks!

I've just had this - if you are referring to the "complete" template, i.e. new solution with Android, iOS, UWP and a Shared project created for you with all references, then they are in "other".
E.g. Visual C# > Other
Which should give you templates for Blank Cross-Platform Mobile App (Native) as well as Master Detail Cross-Platform Mobile App (Native)
It looks like VS has done away with the old format for now, where you could select the project type as well as the UI approach utilised.
If you get stuck, or on a version of VS that doesn't have this options tree, then type the word 'Native' into the search box in the top right of the first dialog. That's how I eventually found it!
(Using Visual Studio Professional 2017 - Version 15.7.2)

For me there was no Visual C# > Other.
So I had click Visual C#, then search mobile (two options show up - one with Xamarin.forms and one Just called Mobile App (the description speaks of Android and iOS) so it has to be this one. And Yes it doesn't prompt for Any other options afterwards.

Related

Xamarin Android Designer showing blank page

Recently I decided to try using Xamarin for developing simple Android applications.
However, I encountered a problem that the Android Designer for layouts either does not work (in latest stable VS 2017) or shows just a blank page (in latest VS 2017 Preview).
Are there any additional steps to set it up or how can I fix this?
As it happens, Xamarin Designer will not work properly (like the behavior described in my question) if you do not have the correct folder structure. I.e. the layout documents must be in the Resources/layout folder, otherwise the Designer will fail.
I already reported this to VS Community and they said that they will have a look at this issue. Hope they will fix it soon.

Visual Studio 2017 Xamarin UWP break, unable to load "sqlite3"

When I launch UWP project, it crashes and I'm getting errors like these.
And this error occurs mostly when its on debugging mode.
Soo.. first idea for fixing this was upgrading/downgrading nuggets, but that didn't help me, also I have these nuggets included for UWP:
Microsoft.NETCore.UniversalWindowsPlatform
SQLite.Net-PCL
System.Data.SQLite
Xamarin.Forms
XLabs.Forms
etc other(that dosent matter on this exception)
I also looked other posts for solving this, like adding SQLite extension, but I didnt find the extension from Universal Windows->Extensions.
Im pretty stuck with this problem, I think its probably a problem with nuggets
You were fairly close. Go to Tools > Extensions and Updates. Click the Online tab in the left hand menu.
Search for SQLite and download SQLite for Universal Windows Platform.
Now go back to the Extensions window, as you showed above, and tick the SQLite for Universal Windows Platform. Ensure you keep the Visual C++ 2015 Runtime ticked, you need this as well.

Xamarin project template in VS2015 update 2 seems inconsistent with the Microsoft eBook

First of all I am pretty excited to learn that Xamarin is free to all, so I cannot wait to upgraded by Visual Studio 2015 Community edition to update 2, which comes with the Xamarin.
I also downloaded the free eBook from Microsoft https://blogs.msdn.microsoft.com/microsoft_press/2016/03/31/free-ebook-creating-mobile-apps-with-xamarin-forms/ and I decided to play with it. Chapter 2 (page 21) I read
In Visual Studio, select the menu option File > New > Project. At the
left of the New Project dialog, select Visual C# and then
Cross-Platform.
But when I opened my VS2015, I only see the project templates
I cannot see that Cross-Platform template at all. But I still browsed around and thought Mobile Apps might be the closest one. So I followed the book again
For now, pick the first one: Blank App (Xamarin.Forms Portable) in
Visual Studio or Use Portable Class Library in Xamarin Studio.
If you’re running Visual Studio, six projects are created: one common
project (the PCL project) and five application projects. For a
solution named Hello, these are:
And the projects created (assume I use "Hello" as solution name) should include Hello.Droid, Hello.iOS, Hello.UWP, Hello.Windows, Hello.WinPhone. But what I see from my VS is only
What do I miss here? How to include UWP in my Xamarin solution from VS2015 update 2?
UWP isn't part of the default template, you need to create a new Universal project, then add a reference to Xamarin Forms.
You can follow this guide: https://developer.xamarin.com/guides/xamarin-forms/platform-features/windows/installation/universal/
You are looking at the old templates for some reason. You may need to reinstall Visual Studio to get the current ones. I have a relatively fresh installation of Visual Studio w/ Update 2, and my templates match what the book says.
When I use this template, it does in fact create a UWP and Windows project in addition to WP 8.1, iOS and Android.

Making controls deployed in a NuGet package to show in Visual Studio Toolbox

Someone asked about getting the WinRT XAML Toolkit controls to show up in Visual Studio Toolbox. I can see that they do show up when I look at the sample project that uses the source code version of the WinRT XAML Toolkit and I can find them in Blend in an app project that uses NuGet-packaged version of the Toolkit - just by searching for the controls by name, but they don't automatically show up in VS Toolbox somehow. I saw in Tim Heuer's article that you can make them show up in the Toolbox if you do a VSIX deployment, but the Toolkit doesn't support that option right now.
Is it possible to get it to work with NuGet or are using the source code or building Extension SDK the only options?
I think the possible way to do this would be to allow package manager to take additional parameters which would then add them to toolbox
If the default project templates reset the toolbox items each time, this might work great otherwise we will see versioning related issues in no time.

Visual Studio 2010 with phone tools - Any advanced/configurable settings?

In Visual Studio 2008, there was the device manager for setting up additional templates and options for the emulator. None of these options are available with Visual Studio 2010 which I understand as the features were removed.
When the Phone Tools are installed, the device target box comes back but there are no options at all.
Basically, I was just wondering where this list gets its options from and if there is any way at all to configure it?
The closest I got to was find the %LocalAppData%\microsoft\phone tools folder, but not sure this is correct as it appears to be more related to the emulator itself (e.g. if deleted, it gets recreated when you run.).
(Link to something a post that helped me years ago)
It took me a while, but it looks like I have found it.
I was on to the correct path with %LocalAppData%\microsoft\phone tools. All the targets are in the conman_ds_platform.xslt file.
I have no idea why they no longer provide an interface for customising - but it looks to me that despite MS taking the feature out of Visual Studio, it is still possible to customise this and add your own devices just fine.
... Next, depending on time, I will try to convert the Windows Mobile/CE project templates to VS 2010 and see if it is possible to do full development on Visual Studio 2010.

Resources