Where is WinUI3 in Visual Studio 2022? - visual-studio

I am unable to find Microsoft's new development platform WinUI3 in visual studio. Should I install any components or something bug in my VS?

You need to install the correct workload as described here:
Required workloads and components While installing Visual Studio 2022
or 2019, select the following workloads and components.
On the Workloads tab of the installation dialog, select:
Universal Windows Platform development .NET Desktop Development
Desktop development with C++ On the Individual components tab of the
installation dialog, make sure Windows 10 SDK (10.0.19041.0) is
selected in the SDKs, libraries, and frameworks section.
In the Installation details pane of the installation dialog, make sure
C++ (v142) Universal Windows Platform tools is selected in the
Universal Windows Platform development section:
You also have to:
Install the Windows App SDK extension for Visual Studio (VSIX)
The Windows App SDK includes project and item templates for creating and developing WinUI 3 apps. These project templates are available as Visual Studio extensions (VSIX) for Visual Studio 2022 / 2019.

In the Visual Studio Installer under "Workloads / Installation details" at the right side, enable:
".NET desktop development" > "Windows App SDK C# Templates"
"Desktop development with C++" > "Windows App SDK C++ Templates"
All other required features will be selected automatically.

Related

Xamarin SDK in Visual Studio

Visual Studio can have multiple Extension SDKs which are used to ease the development.
Is Xamarin SDK belongs to one of those Extension SDKs of Visual Studio
IDE?
Xamarin SDK is an open-source framework to develop mobile application. And it is bundled as a free tool within Microsoft Visual Studio's integrated development environment.
To answer your question, Yes Xamarin SDK is a part of SDKs in Visual Studio.
Visual Studio use the NuGet Package Manager to Install and manage packages(Like the Xamarin SDK and other Extension SDKs you mentioned in your question).
Those packages are added to your project and you can use them to develop your project.
Xamarin is installed by default if you create a Xamarin.forms project in Visual-Studio.
Xamarin is shipped as a Visual Studio Workload. Although this documentation page doesn't show the individual SDK packages, they are included in the component: Component.Xamarin.
i.e. Xamarin.Android.Sdk / Xamarin.VisualStudio.Apple.Sdk / etc
If you installed Visual Studio 2019 and watched the installer, you'd see the names of these packages as they progress!
Otherwise you can just go into Visual Studio and click on Help -> About Visual Studio and see all of the various packages!

How to check Mono Version in Visual Studio 2017 in Windows 10?

I want to know which Mono version my project uses. How can I check it?
In my project I have Mono.Android DLL. I have right clicked on it and review property. It says Runtime Version: 4.0.3. If I go to location of that DLL, I am getting this location: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll
I am confused with what is version of Mono. And what is Mono.Android. Please help me
Following information I got from Help --> About Visual Studio
Microsoft Visual Studio Enterprise 2017
Version 15.5.4
VisualStudio.15.Release/15.5.4+27130.2024
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Enterprise
Visual Basic 2017
Microsoft Visual Basic 2017
Visual C# 2017
Microsoft Visual C# 2017
Mono Debugging for Visual Studio 4.8.4-pre (3fe64e3)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Visual Studio Tools for Universal Windows Apps 15.0.27130.2020
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 4.8.0.757 (7f9ec2a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.1.3.0 (HEAD/ef47226b7)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.6.1.2 (6857dfc)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
You don't have Mono android integrated with visual studio so you can't find it from
Help --> About Visual Studio.
There is no more monoDoid now it becomes Xamarin.Android.
Xamarin.Android applications run within the Mono execution environment which it takes with it onto the device. Thus, an application package is an obvious way in which we can get this done. So mono itself is xamarin.android. Here you are using mono android version v6.0 which you have targeted for your application & Runtime Version: 4.0.3 is your version of .NET runtime assembly.
Mono- The Mono framework is an open source implementation of Microsoft’s .NET Framework based on the open standards for the C# language and the Common Language Runtime.
The Mono project has been in active development for over a decade and is used - behind the scenes - in many products. Developer used to use it with Visual Studio 2010.
For more information visit this & this
Hope it help you.

How to install Xamarin without Android SDKs for Visual Studio 2017?

I'm trying to install Visual Studio 2017 with Xamarin using its online installer. But when I tick "Mobile development with .NET" under Workloads it selects an Android SDK setup as well. If I try to untick it (Android SDK setup) then Xamarin will also be unticked.
How can I install only Xamarin without any Android SDKs for Visual Studio 2017?
If you are freshly installing Visual Studio 2017, rather than checking Mobile development with .NET under Workloads you have to tick Xamarin under Individual Components in the installer window.
If you had already installed Visual Studio 17 without Xamarin, then go to,
Control Panel > Programs > Programs and Features
Select Microsoft Visual Studio 2017 and click on Change. In the appeared Window, select Modify under your specific Visual Studio version listed.
Go to the Individual components tab, now you can select only Xamarin and no other components will be attached to it.
This was my selections under Individual Components to install Xamarin without android. The Green Ticks would be a sufficiently enough selection.

Can't create a project with Xamarin on Visual Studio

I'm having a problem with running the ios .cspoj file, when i want to start new project for iOS devices I get error that i have to install Xamarin. I have installed Xamarin program and still says that i need to install Xamarin for start ios project. I don't know what to do so i hope you guys can help me fix the problem.
Here is image of the problem
You said that you installed the "Xamarin program", but what exactly did you install? I cannot tell from your screenshot if you are using Visual Studio 2013 or Visual Studio 2015, but...
If you are using Visual Studio 2013, you will need to use the Xamarin Universal Installer(Just input your information and the file will be available to download).
If you are using Visual Studio 2015, then you can install Xamarin directly from within the Visual Studio 2015 installer window. Using Microsoft's guide from here you can:
...open Control Panel > Programs and Features, choose the Visual Studio 2015 item, and click Change. When the installer opens, click Modify
Check the following boxes:
Cross-Platform Mobile Development > C#/.NET (Xamarin)
For Windows 8+: Cross-Platform Mobile Development > Microsoft Visual Studio Emulator for Android
(Optional) If you plan on targeting Windows devices, also check Windows and Web Development > Universal Windows App Development Tools and/or Windows 8.1 and Windows Phone 8.0/8.1 Tools
Click the Install button
Once installation is complete... check for Xamarin updates through Tools > Options > Xamarin or Tools > Options > Xamarin > Other, where you’ll find a Check Now

Issue IOS simulator

I upgraded VS 2015 CE with Update 2 by installing Xamarin, but I have a problem with IOS simulators, because after you successfully connected the Mac Agent, the list of available devices (iPhoneSimulator) remains empty. The operating system (Mac) installed on a VM's OS X El capitan 10.11.4. I tried to start the test project by Xamarin studio on Mac and it all works. Both versions of Xamrain (Pc and Mac) are updated to the latest version. How do I fix it? Thank you
Edit based on comments:
#Milev Pavlov Yes, XCode version is 7.3(7D175) #Alan Clark Yes I have Mac OS X in a VM. The version info:
Microsoft Visual Studio Community 2015 Version 14.0.25123.00 Update 2
Microsoft .NET Framework Version 4.6.01038
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA395 Microsoft Visual Basic 2015
Visual C# 2015 00322-20000-00000-AA395 Microsoft Visual C# 2015
Visual C++ 2015 00322-20000-00000-AA395 Microsoft Visual C++ 2015
Windows Phone SDK 8.0 - ENU 00322-20000-00000-AA395 Windows Phone SDK
8.0 - ENU
Application Insights Tools for Visual Studio Package 5.2.60328.3
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015 (RC1 Update 1) 14.1.20203.0 ASP.NET and Web
Tools 2015 (RC1 Update 1)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 For additional
information, visit
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0 For additional
information, visit
Azure App Service Tools v2.8.2 14.0.20201.0 Azure App Service Tools
v2.8.2
Clang with Microsoft CodeGen 14.0.25115 Clang with Microsoft CodeGen
Common Azure Tools 1.7 Provides common services for use by Azure
Mobile Services and Microsoft Azure Tools.
DataFactoryProject 1.0 Microsoft Data Factory Package
GitHub.VisualStudio 1.0 A Visual Studio Extension that brings the
GitHub Flow into Visual Studio.
JavaScript Language Service 2.0 JavaScript Language Service
JavaScript Project System 2.0 JavaScript Project System
KofePackagePackage Extension 1.0 KofePackagePackage Visual Studio
Extension Detailed Info
Microsoft Azure Data Factory Node Node 1.0 Azure Data Factory
extension for Visual Studio Server Explorer.
Microsoft Azure HDInsight HQL Service 2.0.2900.0 Language service for
Hive query
Microsoft Azure HDInsight Tools for Visual Studio 2.0.2900.0 An
integrated development environment for HDInsight application
development.
Microsoft Azure Mobile Services Tools 1.4 Microsoft Azure Mobile
Services Tools
Microsoft Azure Tools 2.8 Microsoft Azure Tools for Microsoft Visual
Studio 2015 - v2.8.40211.2
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual
Studio to MI compatible debuggers
NuGet Package Manager 3.4.1 NuGet Package Manager in Visual Studio.
For more information about NuGet, visit
PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio extension
to visualize aggregated summaries from the PreEmptive Analytics
product.
SQL Server Data Tools 14.0.60311.1 Microsoft SQL Server Data Tools
TypeScript 1.8.29.0 TypeScript tools for Visual Studio
Visual C++ for Cross Platform Mobile Development (Android)
14.0.25116.00 Visual C++ for Cross Platform Mobile Development (Android)
Visual C++ for Cross Platform Mobile Development (iOS) 14.0.25116.00
Visual C++ for Cross Platform Mobile Development (iOS)
Visual Studio Tools for Apache Cordova Update 8 Visual Studio Tools
for Apache Cordova
Visual Studio Tools for Universal Windows Apps 14.0.25123.00 The
Visual Studio Tools for Universal Windows apps allow you to build a
single universal app experience that can reach every device running
Windows 10: phone, tablet, PC, and more. It includes the Microsoft
Windows 10 Software Development Kit.
Xamarin 4.0.3.214 (0dd817c) Visual Studio extension to enable
development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 6.0.3.5 (a94a03b) Visual Studio plugin to enable
development for Xamarin.Android.
Xamarin.iOS 9.6.1.8 (3a25bf1) Visual Studio extension to enable
development for Xamarin.iOS.
On the Mac, open a terminal and enter:
ps -eax | grep Xamarin
Then
kill 12345
Where 12345 is replaced by the pid of the process "IDB".
Then wait a few seconds.
If the list of emulators still does not display try again this trick.
If it still does not display :
close vs,
make sure there is no process listed on the Mac by the above command, kill them if needed.
Restart vs.
should be ok.
Please keep in mind remote simulator is only available on enterprise
https://developer.xamarin.com/guides/cross-platform/windows/ios-simulator/
Remoted iOS Simulator requires a Visual Studio Enterprise license
Are you suggesting that you have Mac OS X running in a VM? The only supported scenario is running a Windows VM within OS X, where Windows would be the virtualised environment. If this is how you do have your computer set up then please confirm your version information for both the Mac and PC, along with your Xamarin logs:
Version info:
Visual Studio
Help -> About Microsoft Visual Studio -> Copy Info [button]
Xamarin Studio in OS X
Xamarin Studio -> About Xamarin Studio -> Show Details -> Copy Information [button]
Logs:
In Visual Studio:
Help -> Xamarin -> Zip Logs
Xamarin for Mac logs:
You can select the "Go -> Go to Folder" menu item in Finder, and then copy and paste the path into the dialog.
~/Library/Logs/Xamarin-[MAJOR.MINOR]

Resources