Skip to content

Commit 42a78e4

Browse files
authored
Adds debugging to the build to help catch versioning issues during packaging (#9)
* Test updated 'dotnet pack' step * Added debug to see what assembly versions we have on the file system during a build * Add assembly version debugging after pack * Test making Endjin.SemVer.DotNetApi 'copylocal=true' * Revert prior change - made no difference * Move pack step into this pipeline to speed debugging * Move custom pack step to later in pipeline * Disable custom pack step to test changes to central 'test' step * Add assembly debug after test execution * Tidy-up pipeline and re-point back to master branch of Endjin.Recommendations * Really re-point back to master branch of Endjin.Recommendations * Test custom 'pack' step to workaround issue with 'nobuild' seemingly not working * Add configuration to custom pack step * Move custom pack command to Endjin.RecommendedPractices * Point ERP reference back to default branch
1 parent 5ea4768 commit 42a78e4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

azure-pipelines.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,25 @@ jobs:
2020
vmImage: 'ubuntu-latest'
2121
service_connection_nuget_org: $(Endjin_Service_Connection_NuGet_Org)
2222
service_connection_github: $(Endjin_Service_Connection_GitHub)
23-
solution_to_build: $(Endjin_Solution_To_Build)
23+
solution_to_build: $(Endjin_Solution_To_Build)
24+
postBuild:
25+
- pwsh: |
26+
Write-Host "**** Versions of Endjin.SemVer.DotNetApi"
27+
gci -recurse Endjin.SemVer.DotNetApi.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
28+
Write-Host "**** Versions of nupkgversion"
29+
gci -recurse nupkgversion.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
30+
displayName: Debug assembly versions after build
31+
postRunExecutableSpecs:
32+
- pwsh: |
33+
Write-Host "**** Versions of Endjin.SemVer.DotNetApi"
34+
gci -recurse Endjin.SemVer.DotNetApi.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
35+
Write-Host "**** Versions of nupkgversion"
36+
gci -recurse nupkgversion.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
37+
displayName: Debug assembly versions after test
38+
postPack:
39+
- pwsh: |
40+
Write-Host "**** Versions of Endjin.SemVer.DotNetApi"
41+
gci -recurse Endjin.SemVer.DotNetApi.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
42+
Write-Host "**** Versions of nupkgversion"
43+
gci -recurse nupkgversion.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
44+
displayName: Debug assembly versions after pack

0 commit comments

Comments
 (0)