Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use modern snupkg with TeamCity ? #22

Open
gillg opened this issue Jun 21, 2021 · 1 comment
Open

How to use modern snupkg with TeamCity ? #22

gillg opened this issue Jun 21, 2021 · 1 comment

Comments

@gillg
Copy link

gillg commented Jun 21, 2021

Hello,

Is it possible to publish .snupkg or .symbols.nupkg nugets to a feed and expose them as symbols ?
I have the feeling that NuGet.org made a custom trick for it, you can publish you PDB on snupkg then the expose them to a kind a dynamic symbols server...
Another project (BaGet https://github.com/loic-sharma/BaGet) seems do the same thing, you publish on a standard nuget API /api/v2/symbol/ and you configure Visual Studio with /api/download/symbols. I don't know the spec of symbols API but probably something extract asked nugets to expose pdbs.

Do you see any way to do the same thing with this plugin ? Do you know an alternate plugin oriented like this ?

@gillg
Copy link
Author

gillg commented Jun 21, 2021

This approach would be great, no specific requirements seems needed,

On a csproj you just enable :

        <IncludeSymbols>true</IncludeSymbols>
	<SymbolPackageFormat>snupkg</SymbolPackageFormat>

Then dotnet pack will create one nuget "yourproject-version.nupkg" with you assembly, and one other "yourproject-version.snupkg" with only your pdb.
On my use case I index them in two differents feeds, but I would map one feed as symbols server.

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

No branches or pull requests

1 participant