How to setup NoesisGUI XAML Tools (VSCode Extension) and preview XAML correctly on macOS
Posted: 10 Feb 2023, 19:14
I'm writing UI for a game based on Unity and NoesisGUI on my MPB 2019 (Intel).
I use Visual Studio Code to develop Unity C# code, it works well.
However, developing and debugging XAML on macOS has always been a pain for me.
I have to install Windows with VMWare and install Visual Studio Blend to get a better development experience.
A tool that can help me preview the XAML file would be pretty helpful.
Recently, I found that the "NoesisGUI XAML Tools (VSCode Extension)" v0.0.33 has been released and added support for macOS.
But it still can't preview the XAML file properly on my mac.
The ways I tried:
1. Download the Samples and open folder Tutorials/Samples/HelloWorld/Unity by VSCode
=> Open Tutorials/Samples/HelloWorld/Unity/Assets/NoesisGUI/Samples/HelloWorld/MainWindow.xaml and click the "Open XAML Preview" button on the top-right corner of VSCode
=> The previewer shows a blank blue background
2. Download the NoesisGUI-NativeSDK-macOS-3.2.0b2.zip and open folder Src/Packages/Samples/Buttons/Data by VSCode
=> Open Src/Packages/Samples/Buttons/Data/MainWindow.xaml and click the "Open XAML Preview" button on the top-right corner of VSCode
=> The previewer shows a blank blue background
Here is my environment info:
dotnet --info
mono --version
I use Visual Studio Code to develop Unity C# code, it works well.
However, developing and debugging XAML on macOS has always been a pain for me.
I have to install Windows with VMWare and install Visual Studio Blend to get a better development experience.
A tool that can help me preview the XAML file would be pretty helpful.
Recently, I found that the "NoesisGUI XAML Tools (VSCode Extension)" v0.0.33 has been released and added support for macOS.
But it still can't preview the XAML file properly on my mac.
The ways I tried:
1. Download the Samples and open folder Tutorials/Samples/HelloWorld/Unity by VSCode
=> Open Tutorials/Samples/HelloWorld/Unity/Assets/NoesisGUI/Samples/HelloWorld/MainWindow.xaml and click the "Open XAML Preview" button on the top-right corner of VSCode
=> The previewer shows a blank blue background
2. Download the NoesisGUI-NativeSDK-macOS-3.2.0b2.zip and open folder Src/Packages/Samples/Buttons/Data by VSCode
=> Open Src/Packages/Samples/Buttons/Data/MainWindow.xaml and click the "Open XAML Preview" button on the top-right corner of VSCode
=> The previewer shows a blank blue background
Here is my environment info:
dotnet --info
Code: Select all
.NET SDK:
Version: 7.0.102
Commit: 4bbdd14480
Runtime Environment:
OS Name: Mac OS X
OS Version: 13.1
OS Platform: Darwin
RID: osx.13-x64
Base Path: /usr/local/share/dotnet/sdk/7.0.102/
Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb
.NET SDKs installed:
6.0.405 [/usr/local/share/dotnet/sdk]
7.0.100 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Code: Select all
Mono JIT compiler version 6.12.0.188 (2020-02/ca8abcb6bc4 Thu Oct 13 14:26:22 EDT 2022)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)

