dotnet build CredentialProvider.Microsoft --configuration ReleaseIn this and subsequent examples, configuration can be either debug or release.
dotnet run --project CredentialProvider.Microsoft --framework net8.0 -- # args here
# Example: force-reload credentials for a known URL
dotnet run --project CredentialProvider.Microsoft --framework net8.0 -- -U https://foo.pkgs.visualstudio.com/Project/_packaging/MyProject_PublicPackages/nuget/v3/index.json -v Verbose -ISet $env:NUGET_PLUGIN_PATHS (%NUGET_PLUGIN_PATHS%):
# Use the debug netcoreapp3.1 build
dotnet build CredentialProvider.Microsoft --configuration Debug
$env:NUGET_PLUGIN_PATHS="C:\Path\To\artifacts-credprovider\CredentialProvider.Microsoft\bin\Debug\netcoreapp3.1\CredentialProvider.Microsoft.exe"
# (Optional) To view logs, log to a file:
$env:NUGET_CREDENTIALPROVIDER_LOG_PATH="logs/test.log"
# Now real tools will use your build:
nuget search foo
dotnet package search foodotnet publish CredentialProvider.Microsoft --configuration Release --framework net8.0dotnet pack CredentialProvider.Microsoft --configuration ReleaseFor CI builds, you can append a pre-release version:
dotnet pack CredentialProvider.Microsoft --configuration Release /p:NuspecProperties=VersionSuffix=MyCustomVersion-2When releasing a new version, update the CredentialProviderVersion property in Build.props
nuget search foo
The plugin at 'C:\Users\Me\Projects\artifacts-credprovider\CredentialProvider.Microsoft\bin\Release\net8.0\publish\CredentialProvider.Microsoft.dll' did not have a valid embedded signature.
You're on an old version of nuget. In a new terminal, run nuget update -Self.
See the PR that removed AuthentiCode requirements & relevant documentation bug.