无法构建 JavaScript 通用 Windows 应用程序 [英] Can't build JavaScript universal Windows app

查看:19
本文介绍了无法构建 JavaScript 通用 Windows 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始了一个新项目 - javascript - windows 通用应用程序,没有更改任何内容或添加任何代码,我尝试构建它并运行它,但它不会出现以下错误:

I have started a new project - javascript - windows universal app and without changing anything or adding any code I try to build it and run it but it wont with the following error:

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

Error : DEP0700 : Registration of the app failed. error 0x80080204: App manifest validation error: The document root element m:Package must be defined in the http://schemas.microsoft.com/appx/2010/manifest namespace. (0x80080204) App7

报告了类似的问题here,我尝试通过项目 -> 商店 -> 获取开发人员许可证来更新许可证,但无济于事.似乎实际问题必须是我不太熟悉的文档根元素部分,因为在尝试添加 xmlns:m="http://之前我没有使用过 Visual Studioschemas.microsoft.com/appx/2010/manifest" 到我的包 appxmanifest 但这似乎没有帮助.

A similar issue was reported here and I tried renewing the license with project -> store -> aquire developer license to no avail. It seems to be that the actual problem has to be the document root element part which I'm not really familiar with as I haven't worked with Visual Studio before I tried to add xmlns:m="http://schemas.microsoft.com/appx/2010/manifest" to my package appxmanifest but that doesn't seem to have helped.

这里是整个清单:

<?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>

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

Thank you for taking your time to read my question and even more so if you can help me with this problem!

推荐答案

在 Windows 10 中未开启开发者模式.我不确定这有什么不同,但开启此模式后我能够构建项目.

Developer mode wasn't turned on in windows 10. I'm not sure what difference this makes but after turning this on I was able to build the project.

这篇关于无法构建 JavaScript 通用 Windows 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆