{"id":26198195,"url":"https://github.com/anilsingh581/vertex-ai-dotnet-csharp","last_synced_at":"2026-03-14T16:03:35.569Z","repository":{"id":278580561,"uuid":"936092612","full_name":"anilsingh581/vertex-ai-dotnet-csharp","owner":"anilsingh581","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-20T14:23:53.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T15:31:13.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anilsingh581.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-20T14:15:35.000Z","updated_at":"2025-02-20T14:23:57.000Z","dependencies_parsed_at":"2025-02-20T15:31:51.857Z","dependency_job_id":"98fca91a-191e-44c2-bf58-e5faf7314196","html_url":"https://github.com/anilsingh581/vertex-ai-dotnet-csharp","commit_stats":null,"previous_names":["anilsingh581/vertex-ai-dotnet-csharp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2Fvertex-ai-dotnet-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2Fvertex-ai-dotnet-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2Fvertex-ai-dotnet-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2Fvertex-ai-dotnet-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anilsingh581","download_url":"https://codeload.github.com/anilsingh581/vertex-ai-dotnet-csharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147257,"owners_count":20243745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-12T02:50:54.668Z","updated_at":"2025-12-25T16:20:08.057Z","avatar_url":"https://github.com/anilsingh581.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vertex AI Setup in C#\n\nThis repository provides a guide to set up and use Google Cloud's Vertex AI in a C# project. Follow the steps below to configure your environment and integrate Vertex AI functionality.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following:\n\n1. **Google Cloud Account**: An active Google Cloud account is required.\n2. **Project**: Create a project in the [Google Cloud Console](https://console.cloud.google.com/) (e.g., `ocrai-selfbill`).\n3. **Billing**: Enable billing for your Google Cloud project.\n4. **Visual Studio**: Install any recent version (e.g., 2019 or 2022) with the .NET workload.\n\n---\n\n## Step 1: Enable Vertex AI API\n\n1. Navigate to the [Google Cloud Console](https://console.cloud.google.com/).\n2. Select your project (e.g., `ocrai-selfbill`).\n3. Go to **APIs \u0026 Services** \u003e **Library**.\n4. Search for **Vertex AI API**.\n5. Click **Enable** to activate the API for your project.\n\n---\n\n## Step 2: Set Up Authentication\n\nVertex AI requires authentication via a service account. Follow these steps:\n\n### 1. Create a Service Account\n- In the Google Cloud Console, go to **IAM \u0026 Admin** \u003e **Service Accounts**.\n- Click **Create Service Account**.\n- Name it (e.g., `vertex-ai-service-account`).\n- Grant it the **Vertex AI User** role (or a custom role with appropriate permissions).\n- Click **Create and Continue**, then **Done**.\n\n### 2. Generate a Key\n- From the Service Accounts list, click on your new service account.\n- Go to the **Keys** tab, then click **Add Key** \u003e **Create New Key**.\n- Select **JSON** as the key type and download the file (e.g., `ocrai-selfbill-123456789.json`).\n\n### 3. Set Environment Variable\n- Place the JSON key file in a secure location on your machine.\n- Set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to point to this file:\n\n  **Windows:**\n  ```cmd\n  set GOOGLE_APPLICATION_CREDENTIALS=C:\\path\\to\\your\\service-account-key.json\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilsingh581%2Fvertex-ai-dotnet-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilsingh581%2Fvertex-ai-dotnet-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilsingh581%2Fvertex-ai-dotnet-csharp/lists"}