A slew of Reference problems trying to open Sample Project (NU1107)
Context
I'm pretty new to Visual studio outside of scripting for Unity so I apologize if my query/issue seem overly trivial
Summary
I can't seem to able to open the Sample Project. When I do a get NU1107 Error on every Android Project
Minimal project and steps to reproduce
- Download the Sample Project
- Open with Visual Studio 2019 libvlcsharp-samples-windows.sln (Workloads: .NET-Desktop development, Mobile-development with .NET)
- See error
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.3 directly to project Gestures.Android to resolve this issue. Gestures.Android -> Xamarin.Android.Support.v7.MediaRouter 28.0.0.3 -> Xamarin.Android.Support.v7.Palette 28.0.0.3 -> Xamarin.Android.Support.Compat (= 28.0.0.3) Gestures.Android -> Xamarin.Android.Support.v7.AppCompat 28.0.0.1 -> Xamarin.Android.Support.Compat (= 28.0.0.1). Gestures.Android C:\Users\Odin\source\repos\libvlcsharp-samples-master\Gestures\Gestures\Gestures.Android\Gestures.Android.csproj 1
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.3 directly to project LocalNetwork.Android to resolve this issue. LocalNetwork.Android -> Xamarin.Android.Support.v7.MediaRouter 28.0.0.3 -> Xamarin.Android.Support.v7.Palette 28.0.0.3 -> Xamarin.Android.Support.Compat (= 28.0.0.3) LocalNetwork.Android -> Xamarin.Android.Support.v7.AppCompat 28.0.0.1 -> Xamarin.Android.Support.Compat (= 28.0.0.1). LocalNetwork.Android C:\Users\Odin\source\repos\libvlcsharp-samples-master\LocalNetwork\LocalNetwork.Android\LocalNetwork.Android.csproj 1
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.3 directly to project MediaElement.Android to resolve this issue. MediaElement.Android -> Xamarin.Android.Support.v7.MediaRouter 28.0.0.3 -> Xamarin.Android.Support.v7.Palette 28.0.0.3 -> Xamarin.Android.Support.Compat (= 28.0.0.3) MediaElement.Android -> Xamarin.Android.Support.v7.AppCompat 28.0.0.1 -> Xamarin.Android.Support.Compat (= 28.0.0.1). MediaElement.Android C:\Users\Odin\source\repos\libvlcsharp-samples-master\MediaElement\MediaElement.Android\MediaElement.Android.csproj 1
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.3 directly to project PulseMusic.Android to resolve this issue. PulseMusic.Android -> Xamarin.Android.Support.v7.MediaRouter 28.0.0.3 -> Xamarin.Android.Support.v7.Palette 28.0.0.3 -> Xamarin.Android.Support.Compat (= 28.0.0.3) PulseMusic.Android -> Xamarin.Android.Support.v7.AppCompat 28.0.0.1 -> Xamarin.Android.Support.Compat (= 28.0.0.1). PulseMusic.Android C:\Users\Odin\source\repos\libvlcsharp-samples-master\PulseMusic\src\PulseMusic\PulseMusic.Android\PulseMusic.Android.csproj 1
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.3 directly to project VideoMosaic.Android to resolve this issue. VideoMosaic.Android -> Xamarin.Android.Support.v7.MediaRouter 28.0.0.3 -> Xamarin.Android.Support.v7.Palette 28.0.0.3 -> Xamarin.Android.Support.Compat (= 28.0.0.3) VideoMosaic.Android -> Xamarin.Android.Support.v7.AppCompat 28.0.0.1 -> Xamarin.Android.Support.Compat (= 28.0.0.1). VideoMosaic.Android C:\Users\Odin\source\repos\libvlcsharp-samples-master\VideoMosaic\VideoMosaic.Android\VideoMosaic.Android.csproj 1
What is the current bug behavior?
(I'm most interested in the LocalNetwork project so the rest of this text will focus on that) I looked into the LocalNetwork.Android.csproj file (before opening with VS) and it referenced different versions of Xamerin support software.
<PackageReference Include="Xamarin.Forms" Version="4.2.0.778463" /> <PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.3" /> <PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.1" /> <PackageReference Include="Xamarin.Android.Support.v4" Version="28.0.0.3" /> <PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="28.0.0.3" /> <PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="28.0.0.3" />
So I assume the behavior was intentional. Anyway, I continued and tried to build LocalNetwork which didn't work. It just gave off more errors and a lot of warnings
Error The tag 'FormsApplicationPage' does not exist in XML namespace 'clr-namespace:Xamarin.Forms.Platform.WPF;assembly=Xamarin.Forms.Platform.WPF'. Line 1 Position 27. LocalNetwork.WPF C:\Users\Odin\source\repos\libvlcsharp-samples-master\LocalNetwork\LocalNetwork.WPF\MainWindow.xaml 1
Warning The $(TargetFrameworkVersion) for LibVLCSharp.Android.AWindow (v9.0) is greater than the $(TargetFrameworkVersion) for your project (v8.1). You need to increase the $(TargetFrameworkVersion) for your project. LocalNetwork.Android C:\Users\Odin\source\repos\libvlcsharp-samples-master\LocalNetwork\LocalNetwork.Android\LocalNetwork.Android.csproj
Warning The referenced component 'System.Data' could not be found. LocalNetwork.WPF
Warning The referenced component 'Xamarin.Forms.Platform.WPF' could not be found. LocalNetwork.WPF
Warning The referenced component 'OpenTK.GLControl' could not be found. LocalNetwork.WPF
Warning The referenced component 'LibVLCSharp.Forms.Platforms.WPF' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Xaml' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Net' could not be found. LocalNetwork.WPF
Warning The referenced component 'LibVLCSharp.Forms' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.ValueTuple' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Xml.Linq' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Core' could not be found. LocalNetwork.WPF
Warning The referenced component 'PresentationCore' could not be found. LocalNetwork.WPF
Warning The referenced component 'Xamarin.Forms.Core' could not be found. LocalNetwork.WPF
Warning The referenced component 'PresentationFramework' could not be found. LocalNetwork.WPF
Warning The referenced component 'LibVLCSharp' could not be found. LocalNetwork.WPF
Warning Could not resolve this reference. Could not locate the assembly "LibVLCSharp, Version=3.2.1.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. LocalNetwork.WPF
Warning The referenced component 'System.Net.Http' could not be found. LocalNetwork.WPF
Warning Could not resolve this reference. Could not locate the assembly "Xamarin.Forms.Platform.WPF, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. LocalNetwork.WPF
Warning The referenced component 'Xamarin.Forms.Platform' could not be found. LocalNetwork.WPF
Warning Could not resolve this reference. Could not locate the assembly "LibVLCSharp.Forms.Platforms.WPF, Version=3.2.1.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. LocalNetwork.WPF
Warning The referenced component 'LibVLCSharp.WPF' could not be found. LocalNetwork.WPF
Warning The referenced component 'OpenTK' could not be found. LocalNetwork.WPF
Warning Could not resolve this reference. Could not locate the assembly "LibVLCSharp.WPF, Version=3.2.1.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. LocalNetwork.WPF
Warning The referenced component 'Microsoft.Threading.Tasks.Extensions' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Xml' could not be found. LocalNetwork.WPF
Warning The referenced component 'Microsoft.Threading.Tasks' could not be found. LocalNetwork.WPF
Warning The referenced component 'Microsoft.CSharp' could not be found. LocalNetwork.WPF
Warning The referenced component 'WindowsFormsIntegration' could not be found. LocalNetwork.WPF
Warning The referenced component 'Microsoft.Threading.Tasks.Extensions.Desktop' could not be found. LocalNetwork.WPF
Warning The referenced component 'System' could not be found. LocalNetwork.WPF
Warning The referenced component 'WindowsBase' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Data.DataSetExtensions' could not be found. LocalNetwork.WPF
Warning The referenced component 'Xamarin.Forms.Xaml' could not be found. LocalNetwork.WPF
Warning The referenced component 'System.Windows.Forms' could not be found. LocalNetwork.WPF
Warning The referenced component 'WpfLightToolkit' could not be found. LocalNetwork.WPF
Warning Could not resolve this reference. Could not locate the assembly "LibVLCSharp.Forms, Version=3.2.1.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. LocalNetwork.WPF
Does it work on other plaforms? Does it work with the official VLC apps?
No idea
Environment
- OS: Windows 10 pro
- Version 1903
- Device: Laptop
- LibVLC version and architecture
VideoLAN.LibVLC.Windows 3.0.8 LocalNetwork.WPF
VideoLan.LibVLC.Android 3.2.0 LocalNetwork.Android
I couldn't find info about target architecture, if you'd point me in the right direction I'd look
- LibVLCSharp version
LibVLCSharp 3.4.1 LocalNetwork.WPF
LibVLCSHarp.Forms 3.4.1 LocalNetwork
LibVLCSHarp.Forms 3.4.1 LocalNetwork.WPF
LibVLCSHarp.Forms.WPF 3.4.1 LocalNetwork.WPF
LibVLCSHarp.WPF 3.4.1 LocalNetwork.WPF
Possible fixes
I tried to do what VS suggested, then I tried updating all the Xamerin support nugets but to no avail.