Skip to content

Commit 8f0d252

Browse files
committed
Update nuspec and package script
1 parent 915e841 commit 8f0d252

File tree

3 files changed

+1
-31
lines changed

3 files changed

+1
-31
lines changed

nuget.package/BuildNugetPackage.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ try {
7070
Set-Content -Encoding ASCII $(Join-Path $projectPath "libgit2sharp_hash.txt") $commitSha
7171
Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Restore "$(Join-Path $projectPath "..\LibGit2Sharp.sln")" }
7272

73-
# Cf. https://stackoverflow.com/questions/21728450/nuget-exclude-files-from-symbols-package-in-nuspec
74-
Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Pack -Build -Symbols "$(Join-Path $projectPath "LibGit2Sharp.csproj")" -Prop Configuration=Release -Exclude "**/NativeBinaries/**/*.*"}
75-
Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Pack "$(Join-Path $projectPath "LibGit2Sharp.csproj")" -Prop Configuration=Release }
73+
Run-Command { & "$(Join-Path $projectPath "..\Lib\NuGet\Nuget.exe")" Pack -Build -Symbols "$(Join-Path $projectPath "LibGit2Sharp.csproj")" -Prop Configuration=Release}
7674
}
7775
finally {
7876
Pop-Location

nuget.package/LibGit2Sharp.nuspec

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,10 @@
1212
<releaseNotes>https://github.com/libgit2/libgit2sharp/blob/master/CHANGES.md#libgit2sharp-changes</releaseNotes>
1313
<iconUrl>https://github.com/libgit2/libgit2sharp/raw/master/square-logo.png</iconUrl>
1414
<tags>libgit2 git wrapper bindings API dvcs vcs</tags>
15-
<references>
16-
<reference file="LibGit2Sharp.dll" />
17-
</references>
1815
</metadata>
1916
<files>
20-
<file src="..\Lib\NativeBinaries\**\*.dll" target="lib\net40\NativeBinaries" />
21-
<file src="..\Lib\NativeBinaries\**\*.pdb" target="lib\net40\NativeBinaries" />
2217
<file src="..\README.md" target="App_Readme\LibGit2Sharp.README.md" />
2318
<file src="..\LICENSE.md" target="App_Readme\LibGit2Sharp.LICENSE.md" />
2419
<file src="..\CHANGES.md" target="App_Readme\LibGit2Sharp.CHANGES.md" />
25-
<file src="..\nuget.package\build\*.*" target="build\net40" />
26-
<file src="..\Lib\NativeBinaries\libgit2.license.txt" target="App_Readme" />
2720
</files>
2821
</package>

nuget.package/build/LibGit2Sharp.props

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)