部署使用xamarin生成的UWP项目 [英] Deploy a UWP project generated with xamarin

查看:103
本文介绍了部署使用xamarin生成的UWP项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我用Xamarin和Visual 2017社区创建了一个跨平台应用程序MaintenanceApp。

该解决方案有一个Android,iOS和UWP项目。我还没有更改代码。一切都在编译。 iOS项目开始很好(我在Macbook Pro上使用带有Windows的虚拟机)。

但是当我想启动UWP项目时,我需要部署它并且我有消息下面:

Hi,

I created a Cross platform App "MaintenanceApp" with Xamarin with Visual 2017 Community.
The solution has a project for Android, iOS and UWP. I didn't change the code yet. Everything is compiling. The iOS project is starting well (I'm using a Virtual Machine with Windows on a Macbook Pro).
But When I want to start the UWP project, I need to deploy it and I have the message below :
"

Quote:

DEP0700 :应用程序注册失败[0x80073CF0] erreur 0x80070003 :打开文件从位置:AppxManifest.xml失败并显示错误:找不到指定的路径。

.MaintenanceApp.UWP

DEP0700 : Registration of the App Failed [0x80073CF0] erreur 0x80070003 : Opening file from location: AppxManifest.xml failed with error: Specified path is not found.
. MaintenanceApp.UWP





Package.appxmanifest在这里:



Package.appxmanifest is here :

<?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" IgnorableNamespaces="uap mp">
  <Identity Name="6811aab3-72a9-4ce4-a490-e5af59e43caf" Publisher="CN=Jerome" Version="1.0.0.0" />
  <mp:PhoneIdentity PhoneProductId="6811aab3-72a9-4ce4-a490-e5af59e43caf" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>MaintenanceApp.UWP</DisplayName>
    <PublisherDisplayName>Jerome</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="MaintenanceApp.UWP.App">
      <uap:VisualElements DisplayName="MaintenanceApp.UWP" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="MaintenanceApp.UWP" BackgroundColor="transparent">
        <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
        </uap:DefaultTile>
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
  </Capabilities>
</Package>





我尝试过:



我检查了AppxManifest.xml中的所有图片,但没有解决的问题

我在Google上寻找同样的问题...



What I have tried:

I checked all images in th AppxManifest.xml but Nothing to solve
I looked for the same issue with Google...

推荐答案

targetnametoken
targetnametoken


.exeEntryPoint =MaintenanceApp.UWP.App>
< uap:VisualElements DisplayName =MaintenanceApp.UWP Square150x150Logo =Assets\Square150x150Logo.pngSquare44x44Logo =Assets\Square44x44Logo.pngDescription =MaintenanceApp.UWPBackgroundColor =transparent>
< uap:DefaultTile Wide310x150Logo =Assets\ Wide310x150Logo.png>
< / uap:DefaultTile>
< uap:SplashScreen Image =Assets\SplashScreen.png/>
< / uap:VisualElements>
< / Application>
< / Applications>
< Capabilities>
< Capability Name =internetClient/>
< / Capabili领带>
< /包>
.exe" EntryPoint="MaintenanceApp.UWP.App"> <uap:VisualElements DisplayName="MaintenanceApp.UWP" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="MaintenanceApp.UWP" BackgroundColor="transparent"> <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"> </uap:DefaultTile> <uap:SplashScreen Image="Assets\SplashScreen.png" /> </uap:VisualElements> </Application> </Applications> <Capabilities> <Capability Name="internetClient" /> </Capabilities> </Package>





我的尝试:



我检查了AppxManifest.xml中的所有图片,但没有解决的问题

我在谷歌寻找同样的问题......



What I have tried:

I checked all images in th AppxManifest.xml but Nothing to solve
I looked for the same issue with Google...


我找到了解决方案。问题是由虚拟机引起的。它与Windows共享文件夹。而是尝试在本地计算机上部署,我必须部署在localhost上。
I found the solution. The problem is due to the virtual machine. It's sharing the folders with Windows. Instead trying to deploy on the local machine, I have to deploy on localhost.


这篇关于部署使用xamarin生成的UWP项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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