Migrate to .NET Admin SDK v2 Stay organized with collections Save and categorize content based on your preferences.
Firebase Admin SDK for .NET v2.0.0 introduces some breaking changes that mayaffect your application code. Review this guide, and make changes as necessary.
Update target frameworks
The Admin SDK no longer supportsnetstandard1.5 andnet45target framework monikers.Instead, usenetstandard2.0,net461 or higher.
Update code that uses thePagedAsyncEnumerable class
The Admin SDK provides several APIs that return instances ofPagedAsyncEnumerable. This class provides a way to iterate through asequence of items either one entry at a time or by pages. Because the Admin SDKis upgrading its dependency on theGoogle.Api.Gax package, you'll need toupdate code that uses thePageAsyncEnumerable class as follows:
Before
varpagedEnumerable=FirebaseAuth.DefaultInstance.ListUsersAsync(null);varresponses=pagedEnumerable.AsRawResponses().GetEnumerator();while(awaitresponses.MoveNext()){ExportedUserRecordsresponse=responses.Current;foreach(ExportedUserRecorduserinresponse.Users){Console.WriteLine($"User: {user.Uid}");}}varenumerator=FirebaseAuth.DefaultInstance.ListUsersAsync(null).GetEnumerator();while(awaitenumerator.MoveNext()){ExportedUserRecorduser=enumerator.Current;Console.WriteLine($"User: {user.Uid}");}After
varpagedEnumerable=FirebaseAuth.DefaultInstance.ListUsersAsync(null);varresponses=pagedEnumerable.AsRawResponses().GetAsyncEnumerator();while(awaitresponses.MoveNextAsync()){ExportedUserRecordsresponse=responses.Current;foreach(ExportedUserRecorduserinresponse.Users){Console.WriteLine($"User: {user.Uid}");}}varenumerator=FirebaseAuth.DefaultInstance.ListUsersAsync(null).GetAsyncEnumerator();while(awaitenumerator.MoveNextAsync()){ExportedUserRecorduser=enumerator.Current;Console.WriteLine($"User: {user.Uid}");}Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-29 UTC.