ci: split build and pack with --verbosity normal to surface api-dto build errors - #15
Merged
Merged
Conversation
api-dto keeps failing with NU5026 ("DLL not found") even after the
PR #14 fix that added the Dto.Shared.projitems Import. The previous
pack step ran `dotnet pack` without --no-build, relying on its implicit
build phase, which prints only "Restored..." with no build details
before failing. That makes it impossible to tell whether:
- the Import is not adding the Compile items at all (build should
then fail with CS2008 "no inputs"), or
- the build succeeds but emits no DLL, or
- the build is being skipped entirely.
Refactor the step to run `dotnet build --verbosity normal` first, then
`dotnet pack --no-build`. With verbose output we will see exactly
which Compile items MSBuild evaluates for Api.Dto and whether csc.exe
runs at all. Applied symmetrically to the mcp branch of the loop.
No functional change for the other 23 packages — they pass through
build and pack normally with the same configuration.
https://claude.ai/code/session_015jxScBEvdKkRwGvJTgK5Py
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema persistente
PR #14 adicionou o
<Import>esperado emCodout.Framework.Api.Dto.csproj, mas omass-release.ymlainda falha no mesmo step com NU5026 (DLL não encontrada). O output que vejo dos logs é só:Sem log de build. Não dá pra distinguir entre:
<Import>não está adicionando os Compile items (build deveria falhar com CS2008 "no inputs").Fix do diagnóstico
Separo
dotnet buildedotnet packno step, com--verbosity normalno build:Vantagens:
Como usar
mass-release.ymlcomconfirm: PUBLISH,dry_run: true.Build api-dtoaqui — agora vai ter informação suficiente pra eu identificar a causa raiz.Test plan
yaml.safe_load).--verbosity normalpros 24 pacotes.Não muda
https://claude.ai/code/session_015jxScBEvdKkRwGvJTgK5Py
Generated by Claude Code