-
Notifications
You must be signed in to change notification settings - Fork 889
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
Added GitLink support #1003
Added GitLink support #1003
Conversation
@GeertvanHorrik Thanks for this. I've given it a try but didn't succeed in stepping in during debug. Then I realized that maybe the content of Thoughts? |
You must put the pdb files inside the nuget package. |
Could you please add the proposed changes below to your PR? Those should:
diff --git a/nuget.package/BuildNugetPackage.ps1 b/nuget.package/BuildNugetPackage.ps1
index 5dac796..c5b623f 100644
--- a/nuget.package/BuildNugetPackage.ps1
+++ b/nuget.package/BuildNugetPackage.ps1
@@ -71,8 +71,7 @@ try {
Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Restore "$(Join-Path $projectPath "..\LibGit2Sharp.sln")" }
# Cf. https://stackoverflow.com/questions/21728450/nuget-exclude-files-from-symbols-package-in-nuspec
- Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Pack -Build -Symbols "$(Join-Path $projectPath "LibGit2Sharp.csproj")" -Prop Configuration=Release -Exclude "**/NativeBinaries/**/*.*"}
- Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Pack "$(Join-Path $projectPath "LibGit2Sharp.csproj")" -Prop Configuration=Release }
+ Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Pack -Build "$(Join-Path $projectPath "LibGit2Sharp.csproj")" -Prop Configuration=Release }
}
finally {
Pop-Location
diff --git a/nuget.package/LibGit2Sharp.nuspec b/nuget.package/LibGit2Sharp.nuspec
index f605336..3b99741 100644
--- a/nuget.package/LibGit2Sharp.nuspec
+++ b/nuget.package/LibGit2Sharp.nuspec
@@ -24,5 +24,6 @@
<file src="..\CHANGES.md" target="App_Readme\LibGit2Sharp.CHANGES.md" />
<file src="..\nuget.package\build\*.*" target="build\net40" />
<file src="..\Lib\NativeBinaries\libgit2.license.txt" target="App_Readme" />
+ <file src="bin\$configuration$\$id$.pdb" target="lib\net40" />
</files>
</package> |
Done. |
Hmmm. I've downloaded the NuGet package from the last AppVeyor build and created a small Console App using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LibGit2Sharp;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(GlobalSettings.Version);
Console.ReadLine();
}
}
} Note: Enable source server support is ticked in VS options. I've set a breakpoint at the Then I've hit F11 and got the following @GeertvanHorrik What did I miss? |
How can I get the latest AppVeyor nuget package? Then I can test it. |
Click on the latest AppVeyor build log, pick one of the jobs, click on the |
Seems like the pdbs are not updated. They should contain something similar like this:
|
Oh! I think they're actually overwritten by the |
Done. Hope it's ok, this is becoming the hardest PR in my life.... ;-) |
Practice makes perfect. :D |
Dammit!! I forgot to thin about this as well. We also should drop the following
|
@GeertvanHorrik Ok, I've successfully stepped in while in debug mode. @jamill @ethomson |
/cc @Therzok |
lgtm |
changed based on libgit2#1003
@GeertvanHorrik Thanks for this. Because @ctaggart was the first to actually touch base with LibGit2Sharp (with #465 and #876), I think I'm going to rather consider #1009 over this one. Cheers! |
Next time please tell that in advance, would have saved me a lot of time which I could have put in other OS work. |
No description provided.