You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible somehow in the Publish-PSResource cmdlet to have the repository element with attributes type and url defined in the generated Nuspec file in order to link a package to a repository in GitHub during publishing of a package. Similar to how RepositoryUrl is used when pushing a package with the dotnet cli and a csproj file.
As far as I can tell, this linking of a package to a repository must be done manually after publishing a package today.
@partlythomas we have the ProjectUri element in the psd1 that usually links to a GitHub repo, is that what you are looking for, would you want this to connect to the repository element in the nuspec? What are you looking for with the type attribute?
@partlythomas we have the ProjectUri element in the psd1 that usually links to a GitHub repo, is that what you are looking for, would you want this to connect to the repository element in the nuspec? What are you looking for with the type attribute?
The end goal is that I want a published module or script to automatically link to a repository when using GitHub Packages NuGet feed as the destination repository. I am not fully sure if linking the RepositoryUri element to the nuspec repository element would achieve that.
Summary of the new feature / enhancement
It should be possible somehow in the Publish-PSResource cmdlet to have the
repository
element with attributestype
andurl
defined in the generated Nuspec file in order to link a package to a repository in GitHub during publishing of a package. Similar to howRepositoryUrl
is used when pushing a package with the dotnet cli and a csproj file.As far as I can tell, this linking of a package to a repository must be done manually after publishing a package today.
References:
https://docs.github.com/en/enterprise-server@3.10/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry
https://devblogs.microsoft.com/nuget/introducing-source-code-link-for-nuget-packages/
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: