UWP-解析应用程序包+ Windows App认证工具包失败

问题描述

我已经使用WinForms 4.0创建了一个应用程序(后来更改为4.6.1)。 添加到项目Windows应用程序打包项目中,并且添加了对我的应用程序的引用(UI,没有其他项目)。

我遵循了本教程:MSIX Installer for Desktop Applications - Packaging WPF,WinForms,and UWP Applications

我正在尝试为Windows应用商店创建一个程序包(目前正在本地测试), 但我得到以下错误信息:

尝试通过以下方式创建包:

1. click on  **Create App Package** 
2. select Sideloding + AutoUpdates checked (at this step I changed my app to 4.6.1)
3. at Select and Configure Package I set : 
   a. output location
   b. generate app bundle : always
   c. Architecture: neutraL
   d. checked Include full PDB
4. configure update settings
   a. UNC : D:\PUBLISH\IPPINGER_SETUP
   b. checked the "Check everytime the application runs"
5  create button
6. package createation package complete

错误1::如果我测试index.html页面,则会得到以下信息: “分析应用程序包时出错。”

enter image description here

错误2: 总体结果:失败

应用清单资源测试

<html lang="ro-RO" xmlns="http://www.w3.org/1999/xhtml" xmlns:ns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:ns2="http://schemas.microsoft.com/appx/2013/manifest"><head><title>Windows App Certification Kit - Test Results</title><style type="text/css">
          BODY,TH,TD { font-family: Segoe UI; font-size: 10.5pt; color: #2a2a2a; margin: 0 18pt; padding: 0; }
          .titleLarge { margin-top: 9pt; font-family: Segoe UI Light; font-size: 25pt; font-weight: normal; }
          .titleItem { font-family: Segoe UI Light; font-weight: bold; font-size: 15pt; margin: 0 5pt 0 5pt; }
          .overall { font-size: 20pt; font-weight: bold; }
          .overall p { margin: 3pt; font-size: 10.5pt; font-weight: normal; }
          .ulMessagesOverflow { list-style-type: circle; background-color: #cccccc; border-color: black; height: 150px; overflow-y: scroll;overflow-x: hidden;}
          .ulMessagesNoOverflow { list-style-type: circle; background-color: #cccccc; border-color: black;}
          ul.ulMessagesOverflow li { margin: 0; padding: 0;  font-family: Courier New; font-size: 9pt; line-height: 11.5pt; }
          ul.ulMessagesNoOverflow li { margin: 0; padding: 0;  font-family: Courier New; font-size: 9pt; line-height: 11.5pt; }
          dt { line-height: 18pt; }
          .testresults,dd { font-weight: normal; line-height: 18pt; }
          dt.testresults { text-indent: 0.25in; float: left; width: 130pt; line-height: 18pt; }
          .messageheading { font-weight: bolder; color:#808080; }
        </style></head><body><div class="titleLarge">Windows App Certification Kit - Test Results</div><div class="appInfo"><dt>App name: </dt><dd style="font-weight: bolder;">IPPINGER™ - © copyright 2020 Molnár István</dd></div><div class="appInfo"><dt>App publisher: </dt><dd style="font-weight: bolder;">Molnár István</dd></div><div class="appInfo"><dt>App version: </dt><dd style="font-weight: bolder;">1.0.10.0</dd></div><div class="appInfo"><dt>App Architecture: </dt><dd style="font-weight: bolder;">neutral</dd></div><div class="appInfo"><dt>Kit Version: </dt><dd style="font-weight: bolder;">10.0.17763.132</dd></div><div class="appInfo"><dt>OS Version: </dt><dd style="font-weight: bolder;">Microsoft Windows 10 Pro (10.0.18363.0)</dd></div><div class="appInfo"><dt>OS Architecture: </dt><dd style="font-weight: bolder;">x64</dd></div><div class="appInfo"><dt>Report time: </dt><dd style="font-weight: bolder;">17.10.2020 11:58:15</dd></div><br /><hr /><div class="overall">Overall result: <span style="color: red;">Failed</span><p /></div><br /><hr /><div><div class="titleItem"><span>User account control (UAC) test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">User account control run level</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Package compliance test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">App manifest</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Registry checks</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Resource Packages</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Windows security features test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Banned file analyzer</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Private code signing</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Supported API test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Supported APIs</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>App manifest resources tests</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:red;">Failed</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">App resources</div></dd><ul style="list-style-type: disc; margin: 0; margin-left: 120pt;" xmlns="http://www.w3.org/1999/xhtml"><li><div><span><span class="messageheading">Error Found: </span>The app resources validation test detected the following errors:</span><ul class="ulMessagesNoOverflow"><li xmlns="">The test was blocked from execution. Please try re-running the validation. If the test execution remains blocked then please contact support.</li></ul></div></li><li><div><span><span class="messageheading">Impact if not fixed: </span>
    The app might not install if the strings or images declared in your app’s manifest are incorrect. If the app does install with these errors,your app’s logo or other images used by your app might not display correctly.
  </span></div></li><li><div><span><span class="messageheading">How to fix: </span>Fix the problem indicated by the error message. See the link below for more information:<br /><a href="http://go.microsoft.com/fwlink/p/?LinkID=246546">App Package Resource Validation</a></span></div></li></ul><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">branding</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>App Capabilities test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Special use capabilities</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Windows Runtime Metadata validation</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Exclusiveto attribute</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Type location</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Type name case-sensitivity</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Type name correctness</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Properties</div></dd><br /></div></div><br /><br /></div><br /><hr /><div class="overall">Results for optional tests<p style="color: black;">The tests in this section are informational only and will not be used to evaluate your app during Microsoft Store onboarding.  Investigating failures is recommended to ensure that users will not be impacted.</p></div><br /><hr /><div><div class="titleItem"><span>Digitally signed file test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Install signed driver and executable files</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Package compliance test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Application count</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">File association verbs</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Debug configuration test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Debug configuration</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Windows Runtime Metadata validation</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">General Metadata correctness</div></dd><br /></div></div><br /><br /><div class="titleItem"><span>Package sanity test</span><br /><br /></div><div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Archive files usage</div></dd><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:red;">Failed</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Blocked executables</div></dd><ul style="list-style-type: disc; margin: 0; margin-left: 120pt;" xmlns="http://www.w3.org/1999/xhtml"><li><div><span><span class="messageheading">Error Found: </span>The blocked executables test has detected the following errors:</span><ul class="ulMessagesOverflow"><li xmlns="">File IPPinger\ExceptionHandler.dll contains a reference to a "Launch Process" related API System.Diagnostics.Process.Start</li><li xmlns="">File IPPinger\IPPinger.exe contains a reference to a "Launch Process" related API System.Diagnostics.Process.Start</li><li xmlns="">File IPPinger\Syncfusion.Shared.Base.dll contains a reference to a "Launch Process" related API System.Diagnostics.Process.Start</li><li xmlns="">File EntityFramework.dll contains a blocked executable reference to "dNx".</li><li xmlns="">File EntityFramework.dll contains a blocked executable reference to "cmd".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "dNx".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "CSi".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "PowerShell".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "cdB".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "Reg".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "CmD".</li><li xmlns="">File IPPinger.exe contains a blocked executable reference to "C:\Windows\System32\cmd.exe".</li><li xmlns="">File Newtonsoft.Json.dll contains a blocked executable reference to "reG".</li><li xmlns="">File Syncfusion.Chart.Base.dll contains a blocked executable reference to "cmD".</li><li xmlns="">File Syncfusion.Shared.Base.dll contains a blocked executable reference to "reg".</li><li xmlns="">File Syncfusion.Shared.Base.dll contains a blocked executable reference to "bash".</li><li xmlns="">File System.Data.sqlite.dll contains a blocked executable reference to "cmd".</li></ul></div></li><li><div><span><span class="messageheading">Impact if not fixed: </span>
    Launching executable files is restricted on Windows 10 S systems. Apps that rely on this capability might not run correctly on Windows 10 S systems.
  </span></div></li><li><div><span><span class="messageheading">How to fix: </span>
    Identify which of the flagged entries represent a call to launch an executable file that is not part of your app and remove those calls. If the flagged files are part of your application,you may ignore the warning.
  </span></div></li></ul><br /></div><div class="testresults" xmlns=""><dt class="testresults" xmlns="http://www.w3.org/1999/xhtml"><b style="color:green;">PASSED</b></dt><dd xmlns="http://www.w3.org/1999/xhtml"><div style="line-height: 18pt;">Platform appropriate files</div></dd><br /></div></div><br /><br /></div><div /></body></html>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)