Does sourcelink work with dotnet pack plus a nuspec file?
See original GitHub issueI create my package using dotnet pack my.csproj
, but I need to use a nuspec file by including the <NuspecFile>
element inside the csproj
file. I’ve already noticed that <PublishRepositoryUrl>
has no effect on the resulting nuget package. Does sourcelink even work at all in this scenario?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Source Link and .NET libraries
Source Link executes when creating the NuGet package and embeds source control metadata inside assemblies and the package. Developers who ...
Read more >Publish Source Link NuGet Packages with Azure Pipelines
Source Link allows you to publish debuggable NuGet packages. ... will create a NuGet package. Here is an example Nuspec file for Device.Net....
Read more >Exploring .NET Core's SourceLink - Stepping into the ...
Now I'll pack up my project as a NuGet package. D:\github\SourceLinkTest\PsuedoizerCore [master ≡]> dotnet pack -c release. Microsoft (R) Build ...
Read more >How do I use dotnet pack to create a nuget package for .net ...
You can use a .nuspec file to pack your project if you reference at NuGet.Build.Tasks.Pack . I've done this to roll up multiple...
Read more >Publish Nuget packages with Azure Dev Ops
Use GitFlow and Azure Devops to automatically publish Nuget packages with sensible version numbers.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
By the way, it didn’t seem to work for anyone who reads this later. Support for a nuspec file doesn’t seem to be there for Source Link.
Good news! I managed to get everything working: https://github.com/xbehave/xbehave.net/pull/469/files
Thanks for all the help!