Microsoft ships WinApp CLI 0.8 with WinUI DevTools preview
Microsoft released WinApp CLI 0.8 with an experimental preview of WinUI DevTools for inspecting running WinUI 3 applications, including component properties, layout, and XAML source locations. According to Microsoft, developers and AI agents can test interface changes, work with saved annotations, and query properties and source code, while the release also adds performance analysis and Visual Studio C++ project support. Interface edits are temporary and are not written to XAML source code.
The release gives AI agents a command-line workflow for inspecting live WinUI 3 interfaces and processing developer annotations, adding an agent-assisted path to Windows application development.
文/李建興|2026-11-10 發表
微軟發布Windows應用程式命令列開發工具**WinApp CLI 0.8**,新增實驗性預覽功能WinUI DevTools,讓開發者及AI代理檢查執行中的WinUI 3應用程式,查看介面元件屬性、版面配置及對應的XAML原始碼位置,也能即時測試修改結果。新版另加入效能分析及C++專案支援。
WinApp CLI可協助開發者透過終端機或AI代理建立、執行、除錯及封裝Windows應用程式。開發者使用新版工具啟動WinUI專案時,DevTools預設會一併開啟,選取介面上的按鈕等元件,即可查看視覺樹,也就是介面元件之間的階層關係,以及屬性、資料繫結與版面配置資訊,要是能辨識元件對應的原始碼,還會顯示XAML檔案及行號,方便開發者找到需要修改的位置。
除了檢視元件,開發者也能直接調整寬度、間距或色彩,立即觀察執行中介面的變化。不過這些修改只供測試,不會寫入XAML原始碼,重新啟動應用程式後便會失效。WinUI DevTools支援以C#及C++開發的WinUI 3應用程式。
#Microsoft#WinApp CLI 0.8#WinUI DevTools#WinUI 3#XAML#Visual Studio C++