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

source index with SourceLink #17

Closed
ctaggart opened this issue Nov 26, 2014 · 1 comment
Closed

source index with SourceLink #17

ctaggart opened this issue Nov 26, 2014 · 1 comment

Comments

@ctaggart
Copy link

A new ticket has been opened up for ASP.NET vNext at aspnet/Universe#131 for source indexing and shipping the pdb files in the nupkg files. Universe is using sake, but I'm not sure how to use it. I just published a SourceLink.exe to NuGet and Chocolatey. I thought a good example would be to figure out how to do source index sake itself. Here are the manual steps that work:

chocolatey install SourceLink -pre
PS C:\tmp> git clone https://github.com/sakeproject/sake.git -c core.autocrlf=input
  • build in Release
  • index the pdb of both projects to be shipped
SourceLink.exe index `
  -u "https://raw.githubusercontent.com/sakeproject/sake/{0}/%var2%" `
  -p src\Sake.Engine\Sake.Engine.csproj `
  -pp Configuration Release

SourceLink.exe index `
  -u "https://raw.githubusercontent.com/sakeproject/sake/{0}/%var2%" `
  -p src\Sake\Sake.csproj `
  -pp Configuration Release `
  -nf src\Sake\Properties\AssemblyInfo.cs
  • include pdb in nupkg

How do you do that using sake? Do you create a .shade file?

You can see the indexed files links by using srctool -x.

PS C:\aspnet\sake> srctool -x src\Sake.Engine\bin\Release\Sake.Engine.pdb > Sake.Engine.srctool.txt
PS C:\aspnet\sake> srctool -x src\Sake\bin\Release\Sake.pdb > Sake.srctool.txt
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Builder/BuilderBase.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Loader/FunctionsExtension.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Logging/DefaultLog.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Loader/DefaultLoader.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Loader/ExtensionFactory.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Loader/TargetExtension.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/SakeEngine.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake.Engine/Options.cs
src\Sake.Engine\bin\Release\Sake.Engine.pdb: 8 source files were extracted.
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake/ConsoleWriter.cs
https://raw.githubusercontent.com/sakeproject/sake/6cdfee8d77c5db5dfbfdeb867192e600f47c000e/src/Sake/Program.cs
src\Sake\bin\Release\Sake.pdb: 2 source files were extracted.
@ctaggart
Copy link
Author

ctaggart commented Mar 3, 2017

Closing the ancient request. Enabling source linking support would be the cool thing now.
https://github.com/ctaggart/SourceLink

@ctaggart ctaggart closed this as completed Mar 3, 2017
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