question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build UWP Project for two files missed

See original GitHub issue

🐛 Bug Report

After change the targeting of UWP project to latest version, project build failed for miss VideoView.xaml and MediaManager.xr.xml. VideoView.xaml actually existed in “C:\Users\HMY.nuget\packages\plugin.mediamanager\0.9.8-alpha2\lib\uap10.0.17763\MediaManager\Platforms\Uap\Video”, not "C:\Users\HMY.nuget\packages\plugin.mediamanager.forms\0.9.8-alpha2\lib\uap10.0.17763\MediaManager"

Expected behavior

build or debug success

Reproduction steps

1 Create .net standard 2.0 class library project , and add reference to Plugin.MediaManager.Forms 2 Add code using VideoView for video play 3 Add Xamarin projects to SLN include UWP project 4 add class library reference to UWP project 5 change UWP project Target version and MIn version both to windows version 1903(build 18362) 5 Select Debug or RELEASE, run or build

Configuration

OS: windows 10 Version of VS: 16.6.1 Version of Xamarin: 4.6.0.847+487-sha.6f0fabeba-azdo.3764095 UWP target version: 1903(build 18362)

Version: 0.9.8-alpha2

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • [* ] 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

###Build output

3>F:\vs2019\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4643,5): error MSB3030: Could not copy the file "C:\Users\HMY\.nuget\packages\plugin.mediamanager.forms\0.9.8-alpha2\lib\uap10.0.17763\MediaManager\Platforms\Uap\Video\VideoView.xaml" because it was not found.
3>F:\vs2019\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4643,5): error MSB3030: Could not copy the file "C:\Users\HMY\.nuget\packages\plugin.mediamanager.forms\0.9.8-alpha2\lib\uap10.0.17763\MediaManager\MediaManager.xr.xml" because it was not found.
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
smlsrcommented, Jan 8, 2021

The error is in MediaManager.Forms it does not exist and fails in AppCenter (and locally as well)

If I copy the XR.xml from MediaManager, create the MediaManager folder in plugging.mediamanager.forms, and then place file in that folder will build locally

Shawn

On Jan 8, 2021, at 10:17 AM, Martijn van Dijk notifications@github.com wrote:

It does exist. You can see it when you open the package. Maybe You need to update your visual studio?

https://user-images.githubusercontent.com/6221156/104038332-45734c00-51d5-11eb-8224-343a2814b411.png This is the code that adds it: https://github.com/Baseflow/XamarinMediaManager/blob/develop/MediaManager/MediaManager.csproj#L16 https://github.com/Baseflow/XamarinMediaManager/blob/develop/MediaManager/MediaManager.csproj#L16 — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Baseflow/XamarinMediaManager/issues/722#issuecomment-756847035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2CO3OTXNRDHIPLWL7DT53SY4V3PANCNFSM4NWDMZSQ.

2reactions
xabrecommented, Oct 7, 2020

UWP Files are still missing in the latest 1.0.3 release. Was able to workaround the issue in a similar way as above by combining versions: Plugin.MediaManager v1.0.3 and Plugin.MediaManager.Forms v0.9.7.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to run UWP in release mode gives an "Payload ...
Trying to run UWP in release mode gives an "Payload contains two or more files.. ... Building the release version of UWP project...
Read more >
Xamarin.UWP: Release build failed when solution has ...
I have two solutions base on the same framework, has the same NuGet packages, and all can run in debug model and be...
Read more >
Rebuild UWP project fails - Developer Community
This issue appears to be identical to https://developercommunity.visualstudio.com/content/problem/7364/blank-uwp-project-fails-to-build.html .
Read more >
UWP Build Problem - GameAssembly.dll
Your build is failing probably because of this, and you first need to run the Visual Studio 2017 installer and add the missing...
Read more >
Manual: UWP build settings
To build your application for UWP: Select File > Build Settings. From the list of platforms in the Platform pane, select UWP. Note:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found