Skip to content

Fix dotnet tool shim for macOS broker authentication - #708

Merged
embetten merged 1 commit into
releases/2.0.4from
users/embetten/dotnet-tool-shim-broker-fix
Jul 21, 2026
Merged

embetten merged 1 commit into
releases/2.0.4from
users/embetten/dotnet-tool-shim-broker-fix

Conversation

@embetten

Copy link
Copy Markdown
Contributor

Add PackageId and ToolCommandName to csproj (under PackAsTool condition) so that dotnet publish generates shims with:

  • The correct command name (nuget-plugin-microsoft-artifacts-credential-provider) so dotnet tool install uses the pre-built signed shim instead of generating its own ad-hoc signed one
  • The correct embedded DLL path matching the tool store layout

Update nuspec to include extensionless macOS shims that are not matched by the existing **. glob pattern.

Add PackageId and ToolCommandName to csproj (under PackAsTool condition)
so that dotnet publish generates shims with:
- The correct command name (nuget-plugin-microsoft-artifacts-credential-provider)
  so dotnet tool install uses the pre-built signed shim instead of generating
  its own ad-hoc signed one
- The correct embedded DLL path matching the tool store layout

Update nuspec to include extensionless macOS shims that are not matched
by the existing **\*.* glob pattern.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@embetten
embetten merged commit 14855bb into releases/2.0.4 Jul 21, 2026
55 checks passed
@embetten
embetten deleted the users/embetten/dotnet-tool-shim-broker-fix branch July 21, 2026 21:58
embetten added a commit that referenced this pull request Aug 13, 2026
## Summary

- Forward-port the .NET tool shim fix released in `2.0.4` through #708.
- Configure the package identity and command name used to generate the
signed shims.
- Package extensionless macOS shims while preserving master's
explanation of the supported shim RIDs.

The prebuilt shim RID change from release PR #706 is already present on
`master` through #705, so this PR includes only the remaining release
fix.

## Validation

- `dotnet build
.\CredentialProvider.Microsoft\CredentialProvider.Microsoft.csproj
--configuration Release --no-restore`
- Attempted the `PackAsTool` pack path; the local SDK reached
`GenerateShims` but could not complete because the macOS apphost runtime
pack is unavailable in the local environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants