# PowerShell script to set Google Maps API key environment variable # Usage: .\set-api-key.ps1 -ApiKey "your_actual_api_key_here" param( [Parameter(Mandatory=$true)] [string]$ApiKey ) # Set the environment variable for the current session $env:GoogleMapsApiKey = $ApiKey # Also set it for the current PowerShell session [Environment]::SetEnvironmentVariable("GoogleMapsApiKey", $ApiKey, "Process") Write-Host "Google Maps API Key set to: $ApiKey" -ForegroundColor Green Write-Host "You can now build the app with: dotnet build -f net9.0-android" -ForegroundColor Yellow Write-Host "" Write-Host "Note: This environment variable is only set for the current session." -ForegroundColor Cyan Write-Host "To make it permanent, add it to your system environment variables." -ForegroundColor Cyan