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:
- Created 3 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top GitHub Comments
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
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.