Xamarin.Firebase.Common not compatible with Xamarin.Firebase.Auth - c#

I'm trying to install 'Xamarin.Firebase.Storage.42.1021.1' so I can upload photos to my firebase database
I'm targeting 'MonoAndroid, Version=v7.1'
However, when I try to install the package I get the following
Unable to find a version of 'Xamarin.Firebase.Common' that is compatible with 'Xamarin.Firebase.Auth 42.1024.0-beta1 constraint: Xamarin.Firebase.Common (= 42.1024.0-beta1)', 'Xamarin.Firebase.Storage 42.1021.1 constraint: Xamarin.Firebase.Common (= 42.1021.1)'.
Is there a quick fix without breaking my project?

You may checked the Dependencies of Xamarin.Firebase.Storage and Xamarin.Firebase.Auth.
According to your error message, you've installed the Xamarin.Firebase.Auth 42.1024.0-beta1 package, which needs dependency Xamarin.Firebase.Common (= 42.1024.0-beta1).
Try to downgrade your Xamarin.Firebase.Auth package to version 42.1021.1.

Related

Can't locate installed package (type or namespace could not be found)

I'm trying to install a NuGet package and the installation seems to be going fine:
# D:\Dev\PGF_Test
$ dotnet add package PGFSharp --version 3.8.1-devel
Determining projects to restore...
Writing C:\Users\...\AppData\Local\Temp\tmp71D3.tmp
info : Adding PackageReference for package 'PGFSharp' into project 'D:\Dev\PGF_Test\PGF_Test.csproj'.
info : Restoring packages for D:\Dev\PGF_Test\PGF_Test.csproj...
info : Package 'PGFSharp' is compatible with all the specified frameworks in project 'D:\Dev\PGF_Test\PGF_Test.csproj'.
info : PackageReference for package 'PGFSharp' version '3.8.1-devel' added to file 'D:\Dev\PGF_Test\PGF_Test.csproj'.
info : Committing restore...
info : Generating MSBuild file D:\Dev\PGF_Test\obj\PGF_Test.csproj.nuget.g.targets.
info : Writing assets file to disk. Path: D:\Dev\PGF_Test\obj\project.assets.json
log : Restored D:\Dev\PGF_Test\PGF_Test.csproj (in 227 ms).
but when I write the using and dotnet build, I get a namespace could not be found. I've tried removing and re-adding, I've tried different names like PGF and PGFSharp.PGF, and I've tried making a fresh console application and adding it there to make sure nothing's interfering.
Anyone know what the issue might be?
I'm on .NET core on Windows 10, version 5.0.201. I checked the Github for the package I'm importing and it seems to be built in 4.5.1, could that be the issue? If so I might try recompiling the source locally.

Rebus - System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task Rebus.Bus.IBus.Send'

When calling SendRequest using Rebus.Async, I get this error:
System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task Rebus.Bus.IBus.Send(System.Object, System.Collections.Generic.Dictionary`2)'.
How can I resolve this?
Check your NuGet package versions. Make sure one isn't a prerelease version while the others are stable.
For me, I had installed a Rebus extension that depended on the prerelease version of another Rebus package. Updating all Rebus packages to the latest (prerelease where applicable; latest stable otherwise) versions fixed the issue.

Tests for Azure Table Storage using Microsoft.Azure.Storage.Common 9.4.0.2-preview

I created a .NET Standard 2.0 class library where I use Azure table storage as it's described here - https://learn.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet. Also, I created a .NET Core test project to test my client library. And when I run a simple test I get this:
System.IO.FileNotFoundException : Could not load file or assembly 'Microsoft.Azure.Documents.Client, Version=1.22.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
I tried many things to make it work but this is just waste of time. How do I fix this?
Microsoft.Azure.Documents.Client package is now obselete. Please use Microsoft.Azure.DocumentDB package instead.
Refer here
Nuget Console:
Install-Package Microsoft.Azure.DocumentDB.Core -Version 1.9.1
(Or)
Install-Package Microsoft.Azure.DocumentDB -Version 2.0.0-preview2
See more about this System.IO.FileNotFoundException : Could not load file or assembly error

TFS Build - C# 7.0 System.ValueType

I try to setup a continuous integration build on VisualStudio.com to build my project. Since I upgraded to .net 4.6.2 and working with the System.ValueType, the build fails:
MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,23): Error
CS1519: Invalid token '(' in class, struct, or interface member
declaration Connection.cs(91,23): error CS1519: Invalid token '(' in
class, struct, or interface member declaration
[d:\a\1\s\MinimalMonitoringClient\MMCThinNetwork\MMCThinNetwork.csproj]
MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,47): Error
CS1044: Cannot use more than one type in a for, using, fixed, or
declaration statement Connection.cs(91,47): error CS1044: Cannot use
more than one type in a for, using, fixed, or declaration statement
[d:\a\1\s\MinimalMonitoringClient\MMCThinNetwork\MMCThinNetwork.csproj]
MinimalMonitoringClient\MMCThinNetwork\Connection.cs(91,64): Error
CS1002: ; expected
It compiles on my local computer
The NuGet Package "System.ValueType" is installed
No Package Folder on TFS
The Task "Restore NuGet Packages" is included in the build process
NuGet Restore Build Step finishes successfully
2017-04-22T14:42:13.2402898Z ##[section]Starting: NuGet restore
**/*.sln 2017-04-22T14:42:13.2512895Z ============================================================================== 2017-04-22T14:42:13.2512895Z Task : NuGet Installer
2017-04-22T14:42:13.2512895Z Description : Installs or restores
missing NuGet packages 2017-04-22T14:42:13.2512895Z Version :
0.2.31 2017-04-22T14:42:13.2512895Z Author : Microsoft Corporation 2017-04-22T14:42:13.2512895Z Help : More
Information
2017-04-22T14:42:13.2512895Z
============================================================================== 2017-04-22T14:42:14.3517087Z [command]C:\Windows\system32\chcp.com
65001 2017-04-22T14:42:14.3517087Z Active code page: 65001
2017-04-22T14:42:14.4246880Z Detected NuGet version 3.3.0.212 / 3.3.0
2017-04-22T14:42:14.4276880Z SYSTEMVSSCONNECTION exists true
2017-04-22T14:42:14.4286876Z To connect to NuGet feeds hosted in your
Team Services account/TFS project collection on this build agent, edit
your build definition to choose a higher version of nuget or specify a
path to a NuGet.config containing the package sources you wish to use.
2017-04-22T14:42:14.4316868Z
[command]d:\a_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.31\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe
restore -NonInteractive
d:\a\1\s\MinimalMonitoringClient\MinimalMonitoringClient.sln
2017-04-22T14:42:15.2210188Z MSBuild auto-detection: using msbuild
version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
2017-04-22T14:42:15.4566895Z Feeds used: 2017-04-22T14:42:15.4566895Z
C:\Users\buildguest\AppData\Local\NuGet\Cache
2017-04-22T14:42:15.4576898Z https://api.nuget.org/v3/index.json
2017-04-22T14:42:15.4576898Z 2017-04-22T14:42:15.4786896Z Restoring
NuGet package System.ValueTuple.4.3.0. 2017-04-22T14:42:15.4896877Z
Restoring NuGet package Newtonsoft.Json.10.0.2.
2017-04-22T14:42:16.5110192Z Adding package 'System.ValueTuple.4.3.0'
to folder 'd:\a\1\s\MinimalMonitoringClient\packages'
2017-04-22T14:42:16.5330192Z Added package 'System.ValueTuple.4.3.0'
to folder 'd:\a\1\s\MinimalMonitoringClient\packages'
2017-04-22T14:42:16.7550436Z Adding package 'Newtonsoft.Json.10.0.2'
to folder 'd:\a\1\s\MinimalMonitoringClient\packages'
2017-04-22T14:42:16.7780484Z Added package 'Newtonsoft.Json.10.0.2' to
folder 'd:\a\1\s\MinimalMonitoringClient\packages'
2017-04-22T14:42:16.8080211Z ##[section]Finishing: NuGet restore
**/*.sln
In Build Solution the VS Version is set to: 2017
Clean: True
Restore NuGet Packages: True
Thanks in advance
You need to use the Hosted VS2017 Build Agent to compile things using VS2017.

Error while adding Xamarin plugin

I'm using Xamarin Forms with Visual Studio 2015. I get this error while I'm trying to add a messaging plugin.
Severity Code Description Project File Line Suppression State
Error Unable to resolve dependencies. 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)', 'Xamarin.Forms 2.2.0.45 constraint: Xamarin.Android.Support.v4 (= 23.3.0)'. 0
I have already updated Visual Studio and Xamarin, but still get this error.
What else should I do to fix this error?
This is a dependency issue. For Xamarin.Forms 2.2.0.45, the dependencies are
Xamarin.Android.Support.v4 (= 23.3.0)
Xamarin.Android.Support.Design (= 23.3.0)
Xamarin.Android.Support.v7.AppCompat (= 23.3.0)
Xamarin.Android.Support.v7.CardView (= 23.3.0)
Xamarin.Android.Support.v7.MediaRouter (= 23.3.0)
Note version conflict between the above and the error: 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)'
You will need to install the compatible version of the messaging plugin you’d like to use. Here is a related troubleshooting guide: https://developer.xamarin.com/guides/xamarin-forms/troubleshooting/.

Categories

Resources