SourceLink files

This commit is contained in:
Ben Adams 2017-11-11 17:50:30 +00:00
parent 173956db73
commit 07d3e4f82c
2 changed files with 16 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<RepositoryType>git</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<IncludeSource>true</IncludeSource>
<Version>0.0.1</Version>
<Version>0.0.2</Version>
</PropertyGroup>
<PropertyGroup>

View File

@ -92,10 +92,23 @@ namespace System.Diagnostics
var filePath = frame.GetFileName();
if (!string.IsNullOrEmpty(filePath))
{
try
{
sb.Append(" in ");
var uri = new Uri(filePath);
if (uri.IsFile)
{
sb.Append(System.IO.Path.GetFullPath(filePath));
}
else
{
sb.Append(uri);
}
}
catch
{ }
}
var lineNo = frame.GetFileLineNumber();
if (lineNo != 0)