No XAML Hot Reload for WinUI projects in either VS2019 or VS2022 - xaml

I've tried with both Visual Studio 2019 (16.11.5) and Visual Studio 2022 (17.0.0 P5), but am unable to get XAML Hot Reload working for WinUI projects (both UWP and Desktop types).
WPF project's are unaffected and XAML Hot Reload continues to work.
Can anyone offer any suggestions?
I'm running Windows 10 20H2 and have the extension Windows App SDK (Experimental) 1.0.0.50489432 installed, with Hot Reload enabled across all frameworks:

Related

.NET MAUI project properties is not loading in Visual Studio 2022

I have created a .NET MAUI application with Visual Studio 2022 on Windows and when I do right click on .NET MAUI project in Solution Explorer and navigate to Project Settings, the UI editor tries to initialize and stucks in a screen saying "Loading Properties...". I am waiting for a few minutes and nothing happens. I also tried to reproduce in a new project and I have the same behavior. I also tried in Visual Studio 2022 (Preview) and same behavior here. I have updated both Visual Studio 2022 (Professional & Preview) and I have the same behavior. Any ideas why this happens ?
The only time project settings worked was only I accidently opened the Android manifest file. Then I tried to reproduced it again and nothing happens.

Universal Windows App Visual Studio 2015 Community no designer, no controls in toolbox, no properties

I am using Visual Studio Community 2015 to create Universal Windows App.
I am facing following problems-
1. No designer view.
2. No controls in toolbox.
3. Property window don't show any properties of control.
4. No phone emulators are shown after installing EmulatorSetup.exe
Visual Studio Installed Components are as follows
Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA136
Visual C# 2015 00322-20000-00000-AA136
Visual C++ 2015 00322-20000-00000-AA136
Application Insights Tools for Visual Studio Package 4.2.60128.3
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11106.0
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
Common Azure Tools 1.5
JetBrains ReSharper Ultimate 10.0.2 Build 104.0.20151218.120627
JSLint.NET for Visual Studio 2.2.0
Microsoft Azure Mobile Services Tools 1.4
NuGet Package Manager 3.3.0
PreEmptive Analytics Visualizer 1.2
SQL Server Data Tools 14.0.50616.0
TypeScript 1.7.6.0
Visual Studio Tools for Universal Windows Apps 14.0.24720.00
Web Essentials 2015.1 1.0.209
I have had the same problem and the only way I have got the designer to work is (and this should work if build 10240 is acceptable for your development):
Open your project
Go under "Project" to "Properties"
Select "Application" on the left and change BOTH the target version and the min version to "Windows 10 (10.0; Build 10240)
Once you do that the XAML designer will start working again. I've had to do this on 4 different workstations and it's worked everytime.
As to why build 10568 doesn't work? Got me, agile development, will be fixed in a patch? :p
I had the same problem and could not change BOTH versions to Build 10240 as the Application listbox only showed 10586 in Properties/Application. I thought I could arrange that by editing the .csproj file, which is XML after all, but any change there makes all files in the Solution Explorer immediately unavailable. Then I noticed (running Winver.exe) that my W10 still shows build 10240 despite regularly (but not automatically) running Windows updates. Despite multiple solutions tried, this didn't change. I finally used the MediaCreation Tool to download a new Windows 10 on a USB stick and reinstalled Windows 10, preserving apps and data. And now I am really on 10586 ...and the Design mode shows again when I open my project.
I hope this helps a few!
If you are looking for the SSIS toolbox, click SSIS tab, then SSIS Toolbox.

Universal App XAML designer not showing

All I am doing is creating a new blank app: New Project - Windows - Universal - Blank App. Then open MainPage.xaml, and all I see is raw XAML, no Design tab. View Designer (shft-F7) does not help.
This is on Win 10, developer mode on.
It does not seem likely that something is wrong with the VS installation, because I when I open MSDN UWP samples, XAML files in those samples open just fine. I tried reinstalling VC++ 2015 redistributable, as suggested in one of the posts here, did not help.
XAML designer is enabled (Tools - Options - XAML Designer).
The problem turned out to be the fact that my project target version (right click on Project - Properties - Application) was Windows 10 Insider Preview (Build 10563). Changing it to Windows 10 (Build 10240) fixes the issue.

Will the application built by visual studio 2012 be Metro style by default?

I am planning to build up an application which can run on both windows 7 & 8. And also I want it to be Metro (Modern UI) style. My question, if I build an application using visual studio 2012, will it be Metro style by default.
Nope
Metro style is for windows 8 only. If you want to create an app to run on both win8 and win7, you have to create a normal windows desktop application. Also bear in mind that such an app will not work on the cheaper (WinRT versions) of the surface tablets
Windows 8 APP can be more specifically called as the apps that can be installed and used from windows app store only. The are metrois by nature. But if you dive into the project for such kind of app you will observe the Metro style is just a theme applied as CSS or Theme.xaml in WPF and Silverlight.
You can create a libraries that can be used to target multiple platform. Also there are few Metro style themes available for .NET 4.0 and 4.5 application which are intended to run on Windows 7 to keep the UI layout consistent.

Building Windows 8 Metro App on Windows 7 with Visual Studio 2010

My Visual Studio can't seem to build any of the Metro Sample applications. As I've never really used this IDE before, I've pretty much given up.
Can anyone direct me to a sample application that is already built and preferably some source code along with it for reference?
Note:
I have a copy of Windows 7 AND 8. However I can't seem to build Microsoft's File Access Sample in my copy of Visual Studio 2010 Ultimate. I'm trying to test one of my Win7 applications in Metro mode of Win8 (the application may be called for use during a user's session in a given Metro app).
Metro Apps (that is, applicatons based on WinRT in Windows 8) will not run in Visual Studio 2010. You need Visual Studio 11 express (that comes on the Windows 8 Developer Preview with developer tools English, 64-bit (x64) or Visual Studio 11 developer preview (available for MSDN subscribers)).
According to Getting started with Windows Metro style app development, "To begin building Metro style apps for Windows, you must first download and install the Windows Developer Preview, which includes Microsoft Visual Studio 11 Express for Windows Developer Preview and the Windows SDK for Metro style Apps."
So I think you'll have to do metro-style development from the Windows 8 Preview for now. That website also has some hello world type stuff and general direction on getting started.
You probably can build Metro Style Apps in Visual Studio 2010. Basically Metro is a special type of design where focus is more on texts than pictures. Metro means " Text before Chrome".
If you can build such metro controls ( or you can copy some from any windows 8 copy) you probably will be able to build very basic Metro style apps , but if u wish to build something advanced then i would suggest better switch to Windows 8 with Visual Studio 2012 Ultimate .