File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ install:
39
39
$ShouldPublishNugetArtifact = "$($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)"
40
40
$Env:SHOULD_PUBLISH_NUGET_ARTIFACT = $ShouldPublishNugetArtifact
41
41
Write-Host "Should publish Nuget artifact = $($Env:SHOULD_PUBLISH_NUGET_ARTIFACT)"
42
+ cinst sourcelink -pre -y
42
43
43
44
assembly_info :
44
45
patch : true
53
54
before_build :
54
55
- nuget restore "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln"
55
56
57
+ after_build :
58
+ - ps : sourcelink -u 'https://raw.githubusercontent.com/libgit2/libgit2sharp/{0}/%var2%' -pr LibGit2Sharp\LibGit2Sharp.csproj -pp Configuration Release -nf LibGit2Sharp\Core\UniqueIdentifier.cs
59
+
56
60
build_script :
57
61
- msbuild "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln" /verbosity:normal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:ExtraDefine="LEAKS_IDENTIFYING"
58
62
@@ -65,10 +69,10 @@ on_success:
65
69
& "$env:APPVEYOR_BUILD_FOLDER\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
66
70
Add-Type -Path "$env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp\bin\Release\LibGit2Sharp.dll"
67
71
Write-Host "LibGit2Sharp version = $([LibGit2Sharp.GlobalSettings]::Version)" -ForegroundColor "Magenta"
68
- If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
69
- {
72
+ # If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
73
+ # {
70
74
Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
71
- }
75
+ # }
72
76
73
77
notifications :
74
78
- provider : Email
Original file line number Diff line number Diff line change @@ -58,9 +58,6 @@ $projectPath = Join-Path $root "..\LibGit2Sharp"
58
58
59
59
Remove-Item (Join-Path $projectPath " *.nupkg" )
60
60
61
- Clean - OutputFolder (Join-Path $projectPath " bin\" )
62
- Clean - OutputFolder (Join-Path $projectPath " obj\" )
63
-
64
61
# The nuspec file needs to be next to the csproj, so copy it there during the pack operation
65
62
Copy-Item (Join-Path $root " LibGit2Sharp.nuspec" ) $projectPath
66
63
@@ -69,10 +66,7 @@ Push-Location $projectPath
69
66
try {
70
67
Set-Content - Encoding ASCII $ (Join-Path $projectPath " libgit2sharp_hash.txt" ) $commitSha
71
68
Run- Command { & " $ ( Join-Path $projectPath " ..\Lib\NuGet\Nuget.exe" ) " Restore " $ ( Join-Path $projectPath " ..\LibGit2Sharp.sln" ) " }
72
-
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 }
69
+ Run- Command { & " $ ( Join-Path $projectPath " ..\Lib\NuGet\Nuget.exe" ) " Pack - Prop Configuration= Release }
76
70
}
77
71
finally {
78
72
Pop-Location
Original file line number Diff line number Diff line change 24
24
<file src =" ..\CHANGES.md" target =" App_Readme\LibGit2Sharp.CHANGES.md" />
25
25
<file src =" ..\nuget.package\build\*.*" target =" build\net40" />
26
26
<file src =" ..\Lib\NativeBinaries\libgit2.license.txt" target =" App_Readme" />
27
+ <file src =" bin\$configuration$\$id$.pdb" target =" lib\net40" />
27
28
</files >
28
29
</package >
You can’t perform that action at this time.
0 commit comments