-
Notifications
You must be signed in to change notification settings - Fork 370
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
Enable source link support #923
Comments
Thanks - when we've updated, I'd certainly be interested in that. We do push the source packages to Symbol Source already, so I'd hope that would already work for debugging. Will read your blog post for more details :) (And two minutes later, I see why symbol source isn't enough :) |
Out of interest, is there going to be any official Microsoft documentation around this? I'm somewhat nervous about starting to depend on a package provided only via a personal github repo rather than any official Microsoft support. The fact that the option is in VS is a good indicator that this does have MS support, but I suspect you'll find it's easier to get adoption if it were found in the |
Yes, I'm interested in joining the .NET Foundation. I could use some help with this. The success of source linking is general depends on Microsoft adoption that is happening in the background right now of the aspnet MVC #5905. I've received feedback on 2.0 from Microsoft & GitLink devs that I'm trying to address for 2.1. |
Okay, I'm probably not the right person to help in general with this aspect, but if you need me to nudge anyone, just let me know. |
@ctaggart: I've just started looking into this in a bit more detail, and I'm still pretty confused about:
(I'd rather not change things multiple times.) I'm doing experimentation in Noda Time rather than in this repo, as there's a smaller set of projects to consider there, but any clarifications you can give would be helpful. |
@jskeet The adoption of source link should increase after Visual Studio 15.3 is released. Microsoft is making it work with the old Windows PDB format too, which will unblock them adopting it everywhere like ASP.NET. They have internal legacy systems that only work with the older format. They also now have a tool to convert between the two. You should build Portable PDB files and package them in the NuGet packages. They are cross platform and work with net45 as well as netstandard. Use SourceLink.Create.CommandLine by following the quick start. There are several examples available linked from the issues. |
@ctaggart: Is that where things are headed, in a fairly definite way? Should we stop pushing symbol packages as well? (And are there plans to make dotnet pack include pdb files rather than having to manually craft the build file? I've done that for Noda Time, but it's ugly...) |
@ctaggart: Oh, and do I still need |
@jskeet Correct, Yes, with portable pdb files, they are small enough that they can be packaged in the nuget packages. Yes, you can stop publishing symbol packages separately after including them in the nuget packages. Including pdb files is a known issue. Follow the link to the issue for a couple of decent solutions. |
Fixes googleapis#923. (Generated project files in next commit.)
It would be awesome if these libraries enabled source link support. As we use these libraries, we run into exceptions where being able to debug into the source code would be really helpful. Enabling source link support is very easy once you upgrade to MSBuild 15.
An easy way is just adding a
Directory.Build.props
in the right directory.I'll happily submit a pull request after ya'll have upgraded to MSBuild 15. For details see:
http://blog.ctaggart.com/2017/03/enable-source-link-support-announcing.html
https://github.com/ctaggart/SourceLink/
The text was updated successfully, but these errors were encountered: