question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does sourcelink work with dotnet pack plus a nuspec file?

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
christcottrellcommented, Feb 10, 2022

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.

1reaction
adamralphcommented, Aug 31, 2018

Good news! I managed to get everything working: https://github.com/xbehave/xbehave.net/pull/469/files

Thanks for all the help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found