Having problems installing a Windows app via power shell? error 0x80073CF3? - visual-studio

I am not a developer or anything.I just want to install this game and i don't have visual studio installed
add-appxpackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict
validation.
Windows cannot install package A278AB0D.ModernCombat5Blackout because this package depends on anot
couldn't be found. This package requires minimum version 2.11.2154.0 of framework Microsoft.Media.
published by any publisher to install; the frameworks with name Microsoft.Media.PlayReadyClient.2
user are Microsoft.Media.PlayReadyClient.2_2.8.1947.0_x86__8wekyb3d8bbwe
Microsoft.Media.PlayReadyClient.2_2.8.1947.0_x64__8wekyb3d8bbwe. Provide the correct framewor
Windows cannot install package A278AB0D.ModernCombat5Blackout because this package depends on anot
couldn't be found. This package requires minimum version 2.11.2154.0 of framework Microsoft.Media.
published by any publisher to install; the frameworks with name Microsoft.Media.PlayReadyClient.2
user are Microsoft.Media.PlayReadyClient.2_2.8.1947.0_x86__8wekyb3d8bbwe
Microsoft.Media.PlayReadyClient.2_2.8.1947.0_x64__8wekyb3d8bbwe. Provide the correct framework

You get this error message because you don't have the required Visual Studio 2012 frameworks. Solved by downloading and installing VS 2012.

Related

Failed to install ClosedXML dependency

I need to install ClosedXML dependency to build a C# project with .net framework 4.7.2 but when trying to install I always get the same error: "Cannot resolve dependency 'SixLabors.Fonts'. Sources used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'"
I have tried everything to install from the nuget package manager
What version are you trying to install? I think you should install SixLabors.Fonts first and then install ClosedXML, as the newer versions of ClosedXML depend on it.
I faced the same proplem when trying to install ClosedXML today. ClosedXML depends on the SixLabors.Fonts library which is only available in beta at the moment.
To find the library with the NuGet Browser, make sure to check the "Include prerelease" box. You should then be able to find it listed below. After installing SixLabors.Fonts, you should be able to install ClosedXml without any further issues.

Nuget Visual Studio 2022 control dependency version

Whenever I try to install any package from Nuget through Visual Studio 2022 - be it the GUI or package manager console, I can't seem to find a way to get the highest dependency version.
For example: if I add latest version 1.0.152 protobuf-net.Grpc to my project it has a dependency on Grpc.Core.Api >= 2.36.1. The current version for Grpc.Core.Api is 2.46.3...
In the GUI under options I have no option to control dependency version what so ever it seems like the Install-Package cmdlet doesn't obey -DependencyVersion Highest:
Install-Package protobuf-net.Grpc -DependencyVersion Highest
Installing NuGet package protobuf-net.Grpc 1.0.152.
Committing restore...
Successfully installed 'Grpc.Core.Api 2.36.1'
Successfully installed 'Microsoft.NETCore.Platforms 2.1.0'
Successfully installed 'protobuf-net 2.4.6'
Successfully installed 'protobuf-net.Grpc 1.0.152'
Successfully installed 'System.Memory 4.5.3'
Successfully installed 'System.Private.ServiceModel 4.5.3'
Successfully installed 'System.Reflection.DispatchProxy 4.5.0'
Successfully installed 'System.Security.Principal.Windows 4.5.0'
Successfully installed 'System.ServiceModel.Primitives 4.5.3'
How can I force Nuget to install the highest dependencies version?
According to your description here are some suggestion:
First check your project type “-DependencyVersion Highest” only used in packages.config format.
You can see the project type support about two package management formats: Projects.config and PackageReference.
Someone posted a similar issue on github, see the issue here. Hope this help you.
If you want to use “Grpc.Core.Api 2.46.3 “, you can try to delete the bin and obj folder and then go to Tools>Options>Nuget Package Manager>General>Clear All Nuget Caches.
Then you can install Grpc.Core.Api 2.46.3 package before install protobuf-net.Grpc 1.0.152

Xamarin OneSignal : An error occurred trying to install required android components on Project 'PushNotificationEx.Android'

An error occurred trying to install required android components on
Project 'PushNotificationEx.Android'. Project
'PushNotificationEx.Android' requires the following components
installed on your machine: Xamarin.GooglePlayServices.Base
JavaLibraryReference:
https://dl-ssl.google.com/android/repository/google_m2repository_r22.zip-m2repository/com/google/android/gms/play-services-base/8.1.0/play-services-base-8.1.0.aar-8.1.0
AndroidResources:
https://dl-ssl.google.com/android/repository/google_m2repository_r22.zip-m2repository/com/google/android/gms/play-services-base/8.1.0/play-services-base-8.1.0.aar-8.1.0
Xamarin.GooglePlayServices.Basement JavaLibraryReference:
https://dl-ssl.google.com/android/repository/google_m2repository_r22.zip-m2repository/com/google/android/gms/play-services-basement/8.1.0/play-services-basement-8.1.0.aar-8.1.0
AndroidResources:
https://dl-ssl.google.com/android/repository/google_m2repository_r22.zip-m2repository/com/google/android/gms/play-services-basement/8.1.0/play-services-basement-8.1.0.aar-8.1.0
Xamarin.GooglePlayServices.Gcm JavaLibraryReference:
https://dl-ssl.google.com/android/repository/google_m2repository_r22.zip-m2repository/com/google/android/gms/play-services-gcm/8.1.0/play-services-gcm-8.1.0.aar-8.1.0
AndroidResources:
https://dl-ssl.google.com/android/repository/google_m2repository_r22.zip-m2repository/com/google/android/gms/play-services-gcm/8.1.0/play-services-gcm-8.1.0.aar-8.1.0
Please double-click here to install it.
Intallation Errors: XA5207 Please install package: 'GPS Base'
available in SDK installer. Java library file
'C:\Users\user\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\8.1.0\embedded\classes.jar'
doesn't exist. XA5207 Please install package: 'GPS Basement' available
in SDK installer. Java library file 'C:\Program
Files\Android\android-sdk\extras\google\classes.jar' doesn't exist.
XA5207 Please install package: 'GPS GCM' available in SDK installer.
Java library file 'C:\Program
Files\Android\android-sdk\extras\google\classes.jar' doesn't exist.
I want to do push notification through onesignal . I'm getting this error after installing 'Com.OneSignal' package in my project. double clicking also not working..Please help..
This issue has nothing to do with OneSignal. You are most likely using an outdated Xamarin Forms project with a new version of Visual Studio 2017. Just to test this, I created a brand new Xamarin Forms project in VS 2017 and added OneSignal and it built just fine.
This problem stems from the lack of support for Xamarin Components in the most recent versions of VS 2017. To fix this problem, either follow this guide on Microsoft's website or start over with new Xamarin Forms project.

Markdown nuget installation failed

I get this error when I try to install markdown.
Installing 'Markdown 2.2.1'.
Successfully installed 'Markdown 2.2.1'.
Adding 'Markdown 2.2.1' to SimpleCMS.
Uninstalling 'Markdown 2.2.1'.
Successfully uninstalled 'Markdown 2.2.1'.
Install failed. Rolling back...
Could not install package 'Markdown 2.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I'm using Microsoft Visual Studio 2013 and I'm on Windows 10. I tried updating the Nuget Package Manager but to no avail.
Markdown 2.2.1 depends on .Net Framework version 4.5.1
The error suggests you're trying to install it in a project targeting .Net framework 4.5
Two options:
Install Markdown 2.1.0
Update the target .Net framework for your application. This would generally be frowned upon, if you're writing a commercial application. Fine if it's just yours.
From the package manager console, you can do:
Install-Package Markdown -Version 2.1.0

Xamarin : Could not install package Parse 1.7.0

I am currently working on a cross-platform app with Xamarin and I am trying to use the NuGet package Parse 1.7.0, but when I try to install the package via NuGet on Visual Studio 2015, I get this error :
Could not install package 'Parse 1.7.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Is it to understand the Parse official package is not compatible with Xamarin ? If so, is there a way to make it compatible ?
Thanks in advance !
If you look inside the nupkg of this package:
https://www.nuget.org/packages/parse
You will find a lib folder with the following targets available. Thus you are trying to target Profile259, but there is no definition in the Parse NuGet package for this. That is why it fails. You must install against one of these targets instead.
Thus if you installed this individually into MonoAndroid or Xamarin.iOS10, it work install just fine (Xamarin.Android and Xamarin.iOS projects respectfully).
Had the same, just remove the Silverlight platform from your targets and it should work

Resources