Last active
June 28, 2018 03:25
-
-
Save ctaggart/dd0cdc964d1410e9e9f0b95f9583efae to your computer and use it in GitHub Desktop.
sourcelink 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<PropertyGroup> | |
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | |
<PublishRepositoryUrl>true</PublishRepositoryUrl> | |
<EmbedUntrackedSources>true</EmbedUntrackedSources> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All"/> | |
</ItemGroup> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\tmp> sourcelink | |
SourceLink 3.0.0 | |
Source Code On Demand | |
Usage: [options] [command] | |
Options: | |
-h|--help Show help information | |
Commands: | |
print-documents print the documents stored in the pdb or dll | |
print-json print the Source Link JSON stored in the pdb or dll | |
print-urls print the URLs for each document based on the Source Link JSON | |
test test each URL and verify that the checksums match | |
Use " [command] --help" for more information about a command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\tmp> nuget install Newtonsoft.Json -source https://www.myget.org/F/json-net/api/v3/index.json -prerelease | |
PS C:\tmp> dotnet tool install --global SourceLink | |
You can invoke the tool using the following command: sourcelink | |
Tool 'sourcelink' (version '3.0.0') was successfully installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\tmp> sourcelink print-json "C:\tmp\Newtonsoft.Json.11.0.3-build001548\lib\netstandard2.0\Newtonsoft.Json.pdb" | |
{"documents":{"/_/*":"https://raw.githubusercontent.com/JamesNK/Newtonsoft.Json/7217c484e9705b5e76585c8b7fcd489c8e021c23/*"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\tmp> sourcelink test "C:\tmp\Newtonsoft.Json.11.0.3-build001548\Newtonsoft.Json.11.0.3-build001548.nupkg" | |
sourcelink test passed: lib/net20/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/net35/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/net40/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/net45/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/netstandard1.0/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/netstandard1.3/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/netstandard2.0/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.pdb | |
sourcelink test passed: lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.pdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\tmp> sourcelink test "C:\tmp\Newtonsoft.Json.11.0.3-build001548\lib\netstandard2.0\Newtonsoft.Json.pdb" | |
sourcelink test passed: C:\tmp\Newtonsoft.Json.11.0.3-build001548\lib\netstandard2.0\Newtonsoft.Json.pdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment