Open infroz opened 1 year ago
Well, you probably already solved the mistake, but this is the solution.
_FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromJson(builder.Configuration.GetValue<string>("FIREBASE_CFG"))
});_
var fireBaseApp = FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromJson(builder.Configuration.GetValue<string>("FIREBASE_CFG"))
});
builder.Services.AddSingleton(fireBaseApp);
This package seems to cause some issues when trying to add migrations with EF tools. Some quick googling has showed that it may only be an issue with initial migration. Leaving this issue open for a bit while I debug.
Error Code:
Packages:
Program.cs