Xamarin.iOS and NuGet: Circular dependency detected - xamarin.ios

I'm trying to install the FirebaseDatabase.net package in my Xamarin.iOS project, but I get the following error message. Any thoughts?
Attempting to resolve dependencies for package 'FirebaseDatabase.net.3.0.2' with DependencyBehavior 'Lowest'
Circular dependency detected 'FirebaseDatabase.net 3.0.2 => System.Reactive 3.1.1 => System.Reactive.PlatformServices 4.0.0-preview00001 => System.Reactive 3.1.1'.

Actually managed to install the package by manually installing the System.Reactive.PlatformServices 4.0.0-preview00001 package first! The circular dependency is thus broken

Related

how can i update npm package dependencies

I have installed an npm package react-native-cool-speedometer and it has it own dependency react-native-svg I am also using react-native-svg in my project but there is an dependency conflict. react-native-cool-speedometer is using react-native-svg#12.1.0 and I am using react-native-svg#13.8.0. this package version has some issue and I want to update it dependency to latest package version 13.8.0.
what I have try. I have tried to downgrade react-native-svg#12.1.0 but its not worked because it has issue.
Invariant Violation: Tried to register two views with the same name RNSVGSvgView, js engine: hermes
I navigate to react-native-speedo-meter directory and tried to update the package with npm update react-native-svg but this has installed all other npm dependencies and but project could not be loaded. it stuck on white screen.
I have also checked this question but it does not help.

Nuget not searching in custom package sources

I have added 2 custom package sources. If I search in nuget package manager, I find my package. If I install the package it fails with the following error:
Restoring packages for .NETStandard,Version=v2.1...
GET https://api.nuget.org/v3-flatcontainer/mypackage.test/index.json
NotFound https://api.nuget.org/v3-flatcontainer/mypackage.test/index.json 125ms
Resolving conflicts for .NETStandard,Version=v2.1...
Unable to find package mypackage.test. No packages exist with this id in source(s): nuget.org
Package restore failed. Rolling back package changes for 'FormsApp1'.
In the logging I see that package manager only searches in nuget.org and not in my custom sources.
I am using VS for mac 17.4.2, Nuget 6.4.0.117
Questions:
How do I tell package manager to also search in my custom sources?
How do I install a specific version of nuget on Mac? I would like to try version 6.3.1.1.
I solved this issue by installing VS2019.
When installing VS2019 it replaces VS2022. But you can install VS2022 Preview alongside. After installing VS2019, the package manager works correctly in VS2019 as well as VS2022 Preview.
So I guess the installation of VS2022 is broken as it was a fresh install on a new laptop.

angular can't update because of typescript dependencies

Here is my ionic info:
Ionic CLI : 6.2.1 (C:\Users\Arashsoft\AppData\Roaming\npm\node_modules\#ionic\cli)
Ionic Framework : #ionic/angular 5.0.5
#angular-devkit/build-angular : 0.803.25
#angular-devkit/schematics : 8.3.25
#angular/cli : 9.0.6
I want to update #angular-devkit/build-angular but get these errors:
Firstly, I got these errors after running ng update #angular/core:
Repository is not clean. Please commit or stash any changes before updating.
Then i tried again using this command:
ng update #angular/cli #angular/core --allow-dirty
and then got these errors:
Package "#angular-devkit/build-angular" has an incompatible peer dependency to "typescript" (requires ">=3.1 < 3.6", would install "3.7.5").
× Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
See "C:\Users\ARASHS~1\AppData\Local\Temp\ng-zWLLPl\angular-errors.log" for further details.
How can I fix it?
Ionic doesn't seem to support Angular 9 yet, it'd probably be better to wait until official support arrives.
If you still want to try it Angular has a dedicated upgrade page where you can follow the procedure. In a nutshell:
You update #angular/cli and #angular/core to the latest 8.x.x Version
You update #angular/cli and #angular/core to the latest 9.x.x Version, ignoring peer dependency problems with --force might be necessary temporarily
After that you can update the other Angular related dependencies via ng update
Once all your dependencies are up-to-date the error message should go away
As for 1) your git repo needs to be clean because Angular doesn't want to mess with your local changes, you've probably changed some files, you can see what changed with a git client like Sourcetree or simply by using the command line git status which will print what files have changed.
Regarding 2) I wouldn't recommend using --allow-dirty, always try to get a clean git state and then do the upgrade.
If you're new to git I strongly recommend reading up on the docs
Hope this helps, happy coding!

Visual Studio 2015 Nuget package is not installing

I am trying to install package Microsoft.CodeAnalysis using Nuget
It does download a lot of packages and then it rolls back every thing and gives me the following error
An error occurred while downloading package 'System.Reflection.Metadata 1.2.0' from source 'https://www.nuget.org/api/v2/'
Does someone have any solution for this ?
I was able to temporary workaround it by installing beta version of this package:
Install-Package System.Reflection.Metadata -Pre

Cabal dependency conflict when installing yesod

I am trying to install the yesod web framework.
When I run cabal install yesod-platform, I get a dependency conflict:
cabal: dependencies conflict: ghc-7.0.4 requires array ==0.3.0.2 however
array-0.3.0.2 was excluded because http-conduit-1.8.7 requires array >=0.4
I get this error even in a hsenv sandboxed environment.
What can I do?
As Daniel Fischer says, this is not a dependency conflict so much as a recognition that yesod doesn't support 7.0.4, and hence your dependencies are outdated. 7.0.4 is well before the current Haskell Platform, and you should upgrade.

Resources