先生成一個簡單的HelloWorld應用程序
<Page x:Class="HelloWorld.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:HelloWorld" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid> <TextBlock Text="HelloWorld!" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="72"/> </Grid> </Page>
using Windows.UI.Xaml.Controls; // https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x804 上介紹了“空白頁”項模板 namespace HelloWorld { /// <summary> /// 可用於自身或導航至 Frame 內部的空白頁。 /// </summary> public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); } } }
雙擊Package.appxmanifest文件,打開聲明選項卡,添加證書,並且保存

右擊工程文件->應用商店->創建應用程序包

按下圖紅方框操作



找到HelloWorld_1.0.0.0_x86_x64_arm_Debug.appxbundle安裝包







雙擊安裝包



