Skip to content

Add SourceLink to the metadata of the SDK NuGet package #8184

Closed

Description

To help debugging applications that use PowerShell SDK, we should add SourceLink metadata to the NuGet SDK. We would also need to publish symbols for the dlls.

Please see: https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink for more information

Steps to reproduce

Expected behavior

Should be able to debug application using PowerShell SDK easily. 

Actual behavior

SourceLink and PDBs are not available for SDK package.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.2.0-preview.1
PSEdition                      Core
GitCommitId                    6.2.0-preview.1
OS                             Microsoft Windows 10.0.18277
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. nohwnd commented on Apr 6, 2023

    @nohwnd
    Collaborator

    Upvote on this, as this would help debugging the shipped pwsh.exe I think. Or large parts of the codebase at least that use system.management.automation.

  2. dkattan commented on Jul 27, 2023

    @dkattan
    Contributor

    Any movement on this?

  3. dkattan commented on Jan 23, 2024

    @dkattan
    Contributor

    This would be truly invaluable for those of us consuming the PowerShell SDK. Thoughts?

  4. dkattan commented on Jan 23, 2024

    @dkattan
    Contributor
  5. dkattan commented on Jul 22, 2024

    @dkattan
    Contributor

    Bump

  6. nohwnd commented on Jan 20, 2025

    @nohwnd
    Collaborator

    Sydney Smith (@SydneyhSmith) please make this happen so we can debug the dll more reasonably. source link enable is pretty easy, and these days you can ship symbols embedded into the dll, so there would be no need to even change your packaging.

  7. microsoft-github-policy-service commented on Jul 19, 2025

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

    Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

  8. microsoft-github-policy-service commented on Jan 18, 2026

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

    Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

  9. microsoft-github-policy-service commented on Oct 23, 2026

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

    Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions