Xamarin.Forms new project dialog in VS 2019 does not have "Shell" template option - xamarin.forms

I have looked through the existing posts and have not found one that addresses this issue.
I am trying my hand at Xamarin.Forms in Visual Studio 2019. I am trying to follow along with a couple of online videos and books, but am unable to because I do not see the same options on my system for creating the project as the tutorials have.
Specifically, the tutorials are beginning with a "Shell" template for the Mobile App project, and my screen does not have this option.
I am running on Windows 10 Pro; Visual Studio 2019 version 16.9.4; Xamarin Templates version 16.9.72 (426ebf6).

The current Flyout and Tabbed template are in fact both based on Shell, they have replaced respectively the old MasterDetail (FlyoutPage) and Tabbed (TabbedPage) templates. I guess it a Xamarin.Forms team choice, to maybe encourage developers to move to the new Shell.
So if the tutorial you are following is using:
The old Tabbed template, you need to select the Blank template and look at TabbedPage.
The old MasterDetail template, you need to select the Blank template and look at FlyoutPage.
The old Shell template, you can choose either Flyout or Tabbed template.
The type Shell kind of combines both FlyoutPage and TabbedPage. If you are still confused take a look at the documentation, also Xamarin Form Shell: Flyout v/s TabBar may help.

Related

Xamarin.Forms Previewer not exist

I couldn't find or start Xamarin.Forms Previewer using VS Community 2019 update 16.9.2.
As you can see from the attached screenshots after I've built the project I can't find away to toggle to XAML preview mode even the View Designer from context menu isn't working also Shift + F7. Also I can't fin Xamarin.Forms Previewer under View Menu >> Other Windows
https://i.stack.imgur.com/G4wnx.png
https://i.stack.imgur.com/jqzCh.png
https://i.stack.imgur.com/gW2xU.png
I couldn't find or start Xamarin.Forms Previewer using VS Community 2019 update 16.9.2.
As far as I know, there is no XAML Previewer in Visual Studio 2019 version 16.9.2. For now, it use the Hot Reload insead and provide a live visual tree to receive a real-time view of your running XAML code. It shows a tree view of the UI elements of your running Xamarin.Forms application.
When you debug you project, by default, it appears on the IDE's left. If you don't see it, use Debug > Windows > Live Visual Tree to show it.
I have reported this problem for Microsoft team, maybe it will be restored in the next version, please wait a minute.

Update bootstrap in an asp.net core web application + Angular project

I have created a sample project using Visual Studio 2017. The project is ASP.NET Core Web Application with Angular (the Angular template comes with the latest VS2017). The project was created and is working great.
I would like to update the bootstrap to the latest - what would be the best way to do that? I have tried copying over, importing in _Layout.cshtml and Index.cshtml but fails...
I am pretty new in this area, so any help would be greatly appreciate.
Thanks
Working with an empty solution here, but should be the same.
In your solution explorer, under Dependencies, there is a "npm" folder.
Right click on the folder and click "Open package.json"
Find "bootstrap" under devDependencies, and change the version to the one you want.
Pressing Ctrl+Space should show you the latest stable version if you just want the latest
If it doesn't automatically update the package for you then:
Go back to, and open the "npm" folder in the solution explorer.
Find bootstrap, and right click and select "Update Package"
Let me know if I missed anything.

Visual Studio 2010 Toolbox controls disabled

VS 2010 Toolbox in ASP.NET application development (design mode or source) is not showing all controls (showing HTML and reporting ones), I can see all by right click (Show all) but they are greyed out or inactive.
I have used devnev.exe in VS Command line to reset, have reinstalled VS, have deleted the four hidden files in C:\Users\Ramzan\AppData\Local\Microsoft\VisualStudio\10.0 with extension .tbd, all in vain.
This thing is driving me mad. I have another machine and everything works fine there.
Any help much appreciated.
Don't know if this applies; but I had all controls in the toolbox disabled; you could see them but they were disabled - This in Visual Studio 2010. I right click on a toolbox item then reset toolbox and then they are enabled. Note that you may lose any custom controls you added.
Probably your project is RUNNING. STOP the project then your toolbar items will become enable.
Right click in toolbox and remove check from "SHOW ALL" (if checked)
This was driving me crazy for a pair of days. In the choose items menu my 3rd party controls (CrystalReportsViewer) were checked. Reset toolbox did nothing to enable them. My solution was changing the target framework from .NET Framework 4 Client Profile to the full version .NET Framework 4, seems the client profile which is a subset of the version optimized for client applications does not support my controls or just using references to other 3rd party .dll librarys. This issue should only be for .NET 3.5 and 4.0, Client Profile is discontinued for .NET 4.5
I had the same problem and fixed it now after 3 days:
reset toolbox (not worked)
close and reopen the solution (not worked)
close and reopen the VS (it worked!)
After a long time googling , and mostly all answers - revolving around
Reset Toolbar
Delete .tbd files from C:\Users(your user)\AppData\Local\Microsoft\VisualStudio\11.0
Using devenv.exe /SafeMode & devenv.exe /ResetSettings.
None of them working out for me, making me more sick.
There is something I did which worked and thought it's worth sharing if it helps someone.
I followed all of the above steps, failing . I did Step 1 & 2 with my project (in VS 2012) open and
Right Click on Toolbox > Choose Items > Pressed Reset > ok.
Then again, Right Click on Toolbox > Add Tab > 'gave it some name' > then again
Reset Toolbox
There was some screen flash/flickering - some loading .
And to my surprise the Grey life ( grey controls ) were now available .
Hope this helps someone like me! :)
This worked for me..
How to completely reset the Toolbox and enable Visual Studio to rebuild it from scratch
Close Visual Studio;
Open the "c:\Users\\AppData\Local\Microsoft\VisualStudio\10.0" (Windows 7) folder and remove all the .TBD files;
Run the "regedit" tool. For this click the "Run" item in the Start menu and type "regedit" without quotation marks;
Find the "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstaller_AssemblyFoldersExCache" and "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstallerCache" keys;
Remove everything from these keys leaving them empty;
Run Visual Studio again and wait until it recreates all items in the Toolbox.
If you are working in WPF application and your Xaml is opened with xml, then make sure you right click and view designer, to get your toolbox controls enabled. (Toolbox controls seem to be active(enabled) only in designer mode). At least that was the case with me.
I know this is old but I just encountered the same problem and here is what I did:
Click on Data Flow
Right click anywhere in that window
Select SSIS Toolbox.
Hope this would help someone.
I worked for me doing the following steps:
Reset Toolbox (Right click in Toolbox->Reset Toolbox)
Add a new tab with any name (Right click in Toolbox->Add Tab)
Reset Toolbox (Right click in Toolbox->Reset Toolbox)
What helped me was changing Project type from Windows Application to Class Library - then (after re-build and reopen...) I got all Controls Enabled.
What did it for me on a custom control was to first remove the control from my base project. Then I had to pull up the custom control as a separate solution by itself and recompile it. I had to make sure that that it was compiled as a class library and not as a windows application. I had to make sure that it was compiled with Framework 4 (same as my base solution) and that all sub controls and projects were also using framework 4. Once I got all of those things sorted out I went back to my base project and added the newly compiled control and sure enough it was enabled.
I hope this helps someone.
I tried all the above mentioned still not working for me. I was working on a windows application after that I have started the web application coding on visual studio after that whenever I was opening the Visual studio this problem was occurring. I am using Visual studio 2015. So what I did, I have right-click inside the toolbox panel and selected 'choose option' then under '.Net framework' components tab I have checked all check boxes for which assembly name is 'System.windows.forms' It is working for me now.
Make sure the currently opened solution platform actually supports controls you need.
My problem was, for example, that I tried to add 'SqlConnection' control to .NET 6.0 application.
Once, I created a '.NET Framework Windows Form' project 'SqlConnection' control became available

Installed MVVMLight - doing WP7 - VS2010 works fine; Blend 4 doesn't

I can create an MVVMLight phone app in VS2010. It runs as it should. I can open it in Blend 4. That's all fine.
When I create a new WP7 MVVM project in Blend, several things are wrong:
1. Just compiling, get "A start page has not been specified...." WMAppManifest.xml has incomplete Task section. NavigationPage attrib. with MainPage.xaml is not there.
2. When I manually fix that and build, I get "Project could not be built." It references Microsoft.Phone.Controls.dll and Microsoft.Phone.Control.Navigation (no .dll--and not found, of course).
A non-MVVM Blend phone project correctly references Microsoft.Phone.dll (and Microsoft.Phone.Interop.dll). And it works fine.
Where have I gone wrong in my MVVM installation for Blend 4?
Thanks.
Unfortunately, the newest version of Blend 4 for Windows Phone 7 does not support custom template. What you see now in Blend are the old project templates.
I am aware that the install process at the moment is terrible, and I am working with members of the community to solve that issue (including cleaning up old files).
In the mean time, if you want to clean up old files, there is a list at http://www.galasoft.ch/mvvm/cleaning. Again, sorry that the process is manual at this time.
Cheers,
Laurent

Missing "Export Template" option in Visual Studio 2005

I am trying to learn & create Visual Studio templates and as per this MSDN article,
The simplest type of template to
create is an item template. To do so,
simply open a project that includes
the file you want to use as a template
and then chooses File | Export
Template to run the Export Template
Wizard
Now, the problem is that the "Export Template" option is missing in my Visual Studio 2005. The version I'm using is VS 2005 team suite and the project template I opened to export is "ASP.NET Web Application".
Is there any patch to be installed or any setting to be done to get the Export Template option? Or am I not following the right way to create Templates?
Links/leads to good articles/resources on the Internet on VS Templates also would help.
Thanks in advance.
Check out the "Tools / Customize / Commands" options in Visual Studio.
The command you are looking for should be the File group, so just drag it from the Customize dialog onto the File pull-down menu.
alt text http://www.xmlx.net/software/images/vs2005customizemenu.gif
I hope this helps!

Resources