fix(ci): update workflow .NET SDK from 6.0.200 to 8.0.x#265
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/takenet/blip-sdk-csharp/sessions/4ebbec0e-49c5-4cb0-8e57-c51e92d0939d Co-authored-by: AcacioFernando <8922023+AcacioFernando@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] fix: update GitHub Actions to support net8.0 target
fix(ci): update workflow .NET SDK from 6.0.200 to 8.0.x
May 25, 2026
|
Policy Management Violations (2)Policy Name: Politica Geral - Exploitable Path
Policy Name: CVE-2024-21907The following violations of your team's AppSec policy rules were identified in this project. Since 'Break Build' is enabled for these rules, you must resolve these issues before the Pull Request can be merged.
Communicate with Checkmarx by submitting a PR comment with @Checkmarx followed by one of the supported commands. Learn about the supported commands here. |
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.

CI was broken because the workflow installed .NET 6.0.200 while
src/Samples/MediaReceiver/MediaReceiver.csprojtargetsnet8.0.Changes
.github/workflows/build.ymlactions/checkout:v2→v4actions/setup-dotnet:v1→v4,dotnet-version:6.0.200→8.0.xsudofromdotnet teststepOriginal prompt
Create a pull request in repository
takenet/blip-sdk-csharpbased onmasterto fix the GitHub Actions workflow so it supports the repository changes that introduced anet8.0target insrc/Samples/MediaReceiver/MediaReceiver.csproj.Context:
.github/workflows/build.yml.6.0.200usingactions/setup-dotnet@v1.src/Samples/MediaReceiver/MediaReceiver.csprojtargetsnet8.0.Requested change:
net8.0.Requirements:
fix(ci): ....Suggested implementation:
.github/workflows/build.yml, updateactions/checkoutto a maintained version if appropriate.actions/setup-dotnet@v1+dotnet-version: 6.0.200with a supportedactions/setup-dotnetversion and.NET 8SDK (for example8.0.x).src/Take.Blip.Client.sln.Deliverable:
masterwith a Conventional Commits PR title.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: como corrigir o problema?
Assistant: O problema mais provável é incompatibilidade entre o SDK do workflow e o TargetFramework do projeto sample.
Seu workflow está instalando .NET 6.0.200, mas o arquivo
src/Samples/MediaReceiver/MediaReceiver.csprojusanet8.0. Então o build/test no GitHub Actions tende a falhar porque o runner não tem o SDK 8 necessário. No workflow atual, a linha relevante é esta:dotnet-version: 6.0.200. Além disso, o projeto sample está explicitamente emnet8.0.Como corrigir
Você tem 2 opções:
Opção 1 — Atualizar o workflow para .NET 8
Se esse sample deve mesmo continuar em
net8.0, ajuste o GitHub Actions para instalar .NET 8.Exemplo:
Essa é a correção certa se o repositório já passou a suportar .NET 8.
Opção 2 — Voltar o sample para .NET 6
Se o repositório ainda está padronizado em .NET 6, então o sample
MediaReceivernão deveria estar emnet8.0. Nesse caso, troque para:Essa opção faz sentido se o resto da solução ainda depende de .NET 6.
O que eu recomendo neste caso
Pelo que vi, o workflow do repositório inteiro ainda está configurado para .NET 6, então a mudança para
net8.0nesse sample provavelmente foi a causa do erro.Assim, a correção mais segura para o PR #263 é:
MediaReceiver.csprojparanet6.0,Outro ponto importante no seu PR
O título atual do PR é:
chore: Updated dependencies and refactored method signature [AB#1025663](https://curupira.visualstudio.com/6cd5c1b3-c813-4ff6-b562-e74fb11ea8c2/_workitems/edit/1025663)Pelas regras que você informou, o título precisa seguir Conventional Commits com formato consistente, por exemplo:
chore(deps): update dependencies and refactor method signaturefix(build): align workflow SDK with target frameworkSe a mudança principal for corrigir o pipeline, eu usaria:
fix(ci): align .NET SDK version with project target frameworkSe quiser, eu também posso...
This pull request was created from Copilot chat.