參考網址:Codebug
用powershell 為makecode app 建立捷徑
$TargetPath = "shell:AppsFolder\MicrobitEducationalFounda.196216C47839B_e88r6s0b2swar!App" $ShortcutFile = "$Home\Desktop\MakeCodeAPP.lnk" $WScriptShell = New-Object -ComObject WScript.Shell $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile) $Shortcut.TargetPath = $TargetPath $Shortcut.Save()
get-appxpackage > d:\application_list.txt 可以得到 APP名稱列表
Name : MicrobitEducationalFounda.196216C47839B Publisher : CN=DA0852B7-E38D-4F10-9429-7A96575322FD Architecture : X64 ResourceId : Version : 1.1.0.0 PackageFullName : MicrobitEducationalFounda.196216C47839B_1.1.0.0_x64__e88r6s0b2swar InstallLocation : C:\Program Files\WindowsApps\MicrobitEducationalFounda.196216C47839B_1.1.0.0_x64__e88r6s0b2swar IsFramework : False PackageFamilyName : MicrobitEducationalFounda.196216C47839B_e88r6s0b2swar PublisherId : e88r6s0b2swar IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False IsPartiallyStaged : False SignatureKind : Store Status : Ok
找到PackageFamilyName : MicrobitEducationalFounda.196216C47839B_e88r6s0b2swar 在後面加上「!App」