gitlink-presentation



gitlink-presentation

0 0


gitlink-presentation

WrocNet GitLink presentation

On Github tpluscode / gitlink-presentation

GitLink

Easy debugging NuGet packages

(and other external components)

gitlink.t-code.pl

The problem

How to debug external code?

1. Don't?

2. Just get the source code, right?

1. is source code available? 1. which commit do I download? 1. do I have to build the code?

NuGet symbols package

Create two .nupkg filesOne with .dlls Other with .pdbs and source code Publish both Add http://srv.symbolsource.org/pdb/Public to Visual Studio source server settings

Details here

NuGet symbols package

NuGet Pack MyPackage.nuspec -Symbols
NuGet Pack MyProject.csproj -Symbols

NuGet symbols package

  • Nuspec way requires two files
  • Source code will be made public!

GitLink

Allows fetching source code directly from the web

GitLink

Features

  • Based on SourceLink
  • Uses SrcSrv - from Windows SDK
  • Doesn't require a local repository (CI-friendly)
  • Single executable
SourceLink requires FAKE

GitLink

Usage

Get from GitHub, NuGet* or Chocolatey

GitLink.exe c:\source\code -u https://github.com/project/source

* will add reference

Demo

GitLink

URL providers

Now GitHub, Bitbucket Soon Assembla, RhodeCode, ProjectLocker, Unfuddle, Others

Custom URL providers possible

GitLink

Gotchas

The end

Questions?