ctaggart / SourceLink

Source Code On Demand
MIT License
356 stars 55 forks source link

SourceLink for Library created using Visual Studio #387

Closed sabarim14 closed 4 years ago

sabarim14 commented 5 years ago

I have a library created using Visual Studio (.Net Standard), Source Control: TFS Released using : Jenkins

We deploy the library into a certain network location and use it as a custom Nuget package. We want this library to be sourceLink enabled.

There is no document, or video tutorial on how to make the library sourceLink enabled.

Could you show me a video tutorial on how to make a library SourceLink enabled from scratch, which helps naive developers.

ctaggart commented 4 years ago

See https://github.com/dotnet/sourcelink instead

sabarim14 commented 4 years ago

I followed the procedure mentioned in that link.

My source is TFS: Class Library .Net Framework: 4.5.2

I included below set of code in my .csproj file

`PropertyGroup>

netcoreapp2.1
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

`

`

`

What is "VirutalDirectory" -> what should go in there?

When I deploy the package it creates .nupkg in a network location. should I publish the .pub file in same location? How does it work? Could you please help.

Should my package deployed somewhere else to get downloaded?

Thanks for your help!

ctaggart commented 4 years ago

May be open an issue there instead.

sabarim14 commented 4 years ago

Thanks! I did