The Google.Cloud.Spanner.V1 package provides low-level access to the Google Cloud Spanner API.
This is not recommended for most scenarios. Where possible, use the
Spanner ADO.NET provider instead. (That in turn depends on this package,
but provides a much more user-friendly API, and takes care of a lot of resource management automatically.)
Installation
Install the Google.Cloud.Spanner.V1 package from NuGet. Add it to
your project in the normal way (for example by right-clicking on the
project in Visual Studio and choosing "Manage NuGet Packages...").
Authentication
When running on Google Cloud, no action needs to be taken to authenticate.
Otherwise, the simplest way of authenticating your API calls is to
set up Application Default Credentials.
The credentials will automatically be used to authenticate. See
Set up Application Default Credentials for more details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e package is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, which is available as a pre-release on NuGet.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e package offers low-level access to the Google Cloud Spanner API and is generally not recommended for most users.\u003c/p\u003e\n"],["\u003cp\u003eThe Spanner ADO.NET provider is preferred over this package because it provides a more user-friendly API and manages resources automatically.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication for API calls when running on Google Cloud is automatic, and if running elsewhere, Application Default Credentials are the simplest method.\u003c/p\u003e\n"],["\u003cp\u003eMultiple previous versions of this package are also documented, including a variety of beta and stable versions, from 3.5.0 up to the most recent.\u003c/p\u003e\n"]]],[],null,[]]