ワンクリックで
configure-telerik-nuget
Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.
Guide for debugging failing GitHub Actions workflows. Use this when asked to debug failing GitHub Actions workflows.
| name | configure-telerik-nuget |
| version | 1.1.0 |
| description | Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file. |
| required_binaries | ["pwsh","dotnet"] |
| author | Lance McCarthy |
| homepage | https://github.com/DevOpsExamples/.github |
| source | https://github.com/DevOpsExamples/.github/tree/main/skills/configure-telerik-nuget |
Use these helper functions to manage Telerik NuGet source configuration.
Get a new api key at https://www.telerik.com/account/downloads/api-keys
Sets a global user environment variable for the Telerik API key and updates/creates nuget.config so credentials use the environment variable instead of a hardcoded secret.
function Configure-TelerikNuGetSource {
param(
[Parameter(Mandatory = $true)]
[string]$ApiKey,
[string]$ApiKeyEnvVarName = "TELERIK_NUGET_API_KEY",
[string]$SourceName = "Telerik_NuGet_Server",
[string]$SourceUrl = "https://nuget.telerik.com/v3/index.json",
[string]$NuGetConfigPath = "./nuget.config"
)
# Store API key as a user-level environment variable so it is available globally
[Environment]::SetEnvironmentVariable($ApiKeyEnvVarName, $ApiKey, "User")
$env:$ApiKeyEnvVarName = $ApiKey
if (-not (Test-Path $NuGetConfigPath)) {
@"
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources />
<packageSourceCredentials />
</configuration>
"@ | Set-Content -Path $NuGetConfigPath -Encoding UTF8
}
[xml]$nugetConfig = Get-Content -Path $NuGetConfigPath
if (-not $nugetConfig.configuration.packageSources) {
$packageSourcesNode = $nugetConfig.CreateElement("packageSources")
$nugetConfig.configuration.AppendChild($packageSourcesNode) | Out-Null
}
if (-not $nugetConfig.configuration.packageSourceCredentials) {
$credentialsNode = $nugetConfig.CreateElement("packageSourceCredentials")
$nugetConfig.configuration.AppendChild($credentialsNode) | Out-Null
}
$existingSource = $nugetConfig.configuration.packageSources.add | Where-Object {
$_.key -eq $SourceName
}
if ($existingSource) {
$existingSource.value = $SourceUrl
} else {
$sourceNode = $nugetConfig.CreateElement("add")
$sourceNode.SetAttribute("key", $SourceName)
$sourceNode.SetAttribute("value", $SourceUrl)
$nugetConfig.configuration.packageSources.AppendChild($sourceNode) | Out-Null
}
$existingCredentialNode = $nugetConfig.configuration.packageSourceCredentials.$SourceName
if (-not $existingCredentialNode) {
$existingCredentialNode = $nugetConfig.CreateElement($SourceName)
$nugetConfig.configuration.packageSourceCredentials.AppendChild($existingCredentialNode) | Out-Null
}
$existingCredentialNode.RemoveAll()
$usernameNode = $nugetConfig.CreateElement("add")
$usernameNode.SetAttribute("key", "Username")
$usernameNode.SetAttribute("value", "api-key")
$existingCredentialNode.AppendChild($usernameNode) | Out-Null
$passwordNode = $nugetConfig.CreateElement("add")
$passwordNode.SetAttribute("key", "ClearTextPassword")
$passwordNode.SetAttribute("value", "%$ApiKeyEnvVarName%")
$existingCredentialNode.AppendChild($passwordNode) | Out-Null
$nugetConfig.Save((Resolve-Path $NuGetConfigPath))
Write-Host "Configured Telerik feed '$SourceName' in '$NuGetConfigPath'."
Write-Host "Saved API key in user environment variable '$ApiKeyEnvVarName'."
Write-Host "Restart your terminal/IDE so new processes can read the updated environment variable."
}
Example usage:
Configure-TelerikNuGetSource -ApiKey "<telerik-api-key>"
required_binaries, author, homepage, and source.nuget.config credential handling to use environment variable expansion instead of hardcoded API key values.version field to frontmatter.