不能构建JavaScript通用Windows应用程序

Can't build JavaScript universal Windows app

本文关键字:Windows 应用程序 通用 JavaScript 构建 不能      更新时间:2023-09-26

我已经开始了一个新的项目- javascript - windows通用应用程序,没有改变任何东西或添加任何代码,我试图构建它并运行它,但它不会与以下错误:

错误:DEP0700:应用程序注册失败。错误0x80080204:应用程序清单验证错误:文档根元素m:Package必须在http://schemas.microsoft.com/appx/2010/manifest命名空间中定义。(0x80080204) App7

这里报告了一个类似的问题,我尝试用project -> store ->获取开发人员许可证来更新许可证,但无济于事。这似乎是实际的问题必须是文档根元素部分,我不是很熟悉,因为我没有与Visual Studio工作之前,我试图将xmlns:m="http://schemas.microsoft.com/appx/2010/manifest"添加到我的包appxmanifest,但这似乎没有帮助。

这是整个清单:

<?xml version="1.0" encoding="utf-8"?>
<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:m="http://schemas.microsoft.com/appx/2010/manifest"
  IgnorableNamespaces="uap mp m">
  <Identity
    Name="155dc546-80c7-4275-b2a6-a2aa8ddec5f7"
    Version="1.0.0.0"
    Publisher="CN=FroboZ" />
  <mp:PhoneIdentity PhoneProductId="155dc546-80c7-4275-b2a6-a2aa8ddec5f7" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
  <Properties>
    <DisplayName>App7</DisplayName>
    <PublisherDisplayName>FroboZ</PublisherDisplayName>
    <Logo>images'storelogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10069.0" MaxVersionTested="10.0.10069.0" />
  </Dependencies>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application
      Id="App"
      StartPage="default.html">
      <uap:VisualElements
        DisplayName="App7"
        Description="App7"
        BackgroundColor="#464646"
        Square150x150Logo="images'Logo.png"
        Square44x44Logo="images'SmallLogo.png">
        <uap:SplashScreen Image="images'splashscreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
  </Capabilities>
</Package>

感谢您花时间阅读我的问题,如果您能帮助我解决这个问题,更是如此!

windows 10未打开开发模式。我不确定这有什么不同,但在打开这个后,我能够构建项目。