-
Notifications
You must be signed in to change notification settings - Fork 0
MSTest package reference #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,22 +18,37 @@ | |
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\InvoiceReminder.API\InvoiceReminder.API.csproj" /> | ||
| <ProjectReference Include="..\InvoiceReminder.Application\InvoiceReminder.Application.csproj" /> | ||
| <ProjectReference Include="..\InvoiceReminder.Data\InvoiceReminder.Data.csproj" /> | ||
| <ProjectReference Include="..\InvoiceReminder.Domain\InvoiceReminder.Domain.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> | ||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.13.0" /> | ||
| </ItemGroup> | ||
|
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Versão do Microsoft.NET.Test.Sdk divergente do restante da solução Sugestão de ajuste: - <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.13.0" />
+ <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.14.1" />🤖 Prompt for AI Agents |
||
|
|
||
| <PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" /> | ||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" /> | ||
| </ItemGroup> | ||
|
|
||
| <PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.7.3" /> | ||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.7.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <PackageReference Include="MSTest.Analyzers" Version="3.9.3" /> | ||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.9.3"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| </ItemGroup> | ||
|
|
||
| <PackageReference Include="MSTest.TestAdapter" Version="3.9.3" /> | ||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <PackageReference Include="MSTest.TestFramework" Version="3.9.3" /> | ||
| <ProjectReference Include="..\InvoiceReminder.API\InvoiceReminder.API.csproj" /> | ||
| <ProjectReference Include="..\InvoiceReminder.Application\InvoiceReminder.Application.csproj" /> | ||
| <ProjectReference Include="..\InvoiceReminder.Data\InvoiceReminder.Data.csproj" /> | ||
| <ProjectReference Include="..\InvoiceReminder.Domain\InvoiceReminder.Domain.csproj" /> | ||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,30 +25,30 @@ | |
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.13.0" /> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.14.1" /> | ||
| </ItemGroup> | ||
|
Comment on lines
+28
to
29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerifique o “mix” de SDKs antes do merge Você atualizou
Recomendo alinhar tudo em torno da mesma major/minor (ex.: subir o cabeçalho para Exemplo de ajuste sugerido fora deste trecho: -<Project Sdk="MSTest.Sdk/3.6.4">
+<Project Sdk="MSTest.Sdk/3.9.3">Para confirmar a versão do SDK e as referências de pacote neste projeto de testes, execute: 🏁 Script executed: #!/bin/bash
grep -n "<Project Sdk" InvoiceReminder.DomainEntities.UnitTests/InvoiceReminder.DomainEntities.UnitTests.csproj
grep -n "PackageReference.*Microsoft.NET.Test.Sdk" InvoiceReminder.DomainEntities.UnitTests/InvoiceReminder.DomainEntities.UnitTests.csprojLength of output: 369 Alinhar versão do Project Sdk com o pacote de testes O projeto de testes está declarando <Project Sdk="MSTest.Sdk/3.6.4">enquanto o Pontos a ajustar:
Sugestões de correção (escolha uma abordagem):
Exemplo de diff para a primeira opção: -<Project Sdk="MSTest.Sdk/3.6.4">
+<Project Sdk="MSTest.Sdk/3.9.3">🤖 Prompt for AI Agents |
||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" /> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.7.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.8.3"> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.9.3"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.8.3" /> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.8.3" /> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,30 +31,30 @@ | |
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.13.0" /> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.14.1" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" /> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.7.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.8.3"> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.9.3"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.8.3" /> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.8.3" /> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
Comment on lines
+46
to
58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Alinhe a versão do SDK declarado no topo com os pacotes MSTest 3.9.3. O projeto usa • avisos MSB3277 de conflito de assembly; Sugestão: -<Project Sdk="MSTest.Sdk/3.6.4">
+<Project Sdk="MSTest.Sdk/3.9.3">Caso o objetivo seja usar apenas o SDK padrão (
🤖 Prompt for AI Agents |
||
|
|
||
| </Project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <Project Sdk="MSTest.Sdk/3.6.4"> | ||
| <Project Sdk="MSTest.Sdk/3.6.4"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainAtualize o SDK do projeto para manter compatibilidade com os pacotes MSTest 3.9.3 Os pacotes MSTest.TestFramework/Adapter/Analyzers foram elevados para 3.9.3, mas o SDK do projeto continua em 3.6.4. Isso pode gerar warnings ou comportamentos inesperados (features de assert, message diagnostics, etc.) caso exista quebra de contrato entre as versões. -<Project Sdk="MSTest.Sdk/3.6.4">
+<Project Sdk="MSTest.Sdk/3.9.3">Para confirmar o Sdk e as versões dos pacotes MSTest configurados neste projeto, vou inspecionar o arquivo csproj: 🏁 Script executed: #!/bin/bash
# Exibe as primeiras linhas do csproj para verificar o atributo <Project Sdk=…>
sed -n '1,20p' InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj
echo "Referências aos pacotes MSTest e suas versões:"
grep -E "<PackageReference.*MSTest.TestFramework" -n InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj
grep -E "<PackageReference.*MSTest.TestAdapter" -n InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj
grep -E "<PackageReference.*Analyzer" -n InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csprojLength of output: 1713 Atualizar o SDK do projeto para 3.9.3 Para manter a compatibilidade com os pacotes MSTest.TestFramework, MSTest.TestAdapter e MSTest.Analyzers (todos na versão 3.9.3), atualize o atributo • Arquivo: InvoiceReminder.JobScheduler.UnitTests/InvoiceReminder.JobScheduler.UnitTests.csproj -<Project Sdk="MSTest.Sdk/3.6.4">
+<Project Sdk="MSTest.Sdk/3.9.3">🤖 Prompt for AI Agents |
||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
|
|
@@ -13,30 +13,30 @@ | |
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.13.0" /> | ||
| <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.14.1" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" /> | ||
| <PackageReference Update="Microsoft.Testing.Extensions.TrxReport" Version="1.7.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.8.3"> | ||
| <PackageReference Update="MSTest.Analyzers" Version="3.9.3"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.8.3" /> | ||
| <PackageReference Update="MSTest.TestAdapter" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.8.3" /> | ||
| <PackageReference Update="MSTest.TestFramework" Version="3.9.3" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Alinhar versões do ecossistema MSTest para evitar incompatibilidade
Os pacotes
MSTest.Analyzers,MSTest.TestAdaptereMSTest.TestFrameworkforam atualizados para 3.9.3, porém o SDK raiz continua em 3.6.4.Prática recomendada: manter todos na mesma versão principal/menor para garantir que regras de analisador, adapter e framework conversem corretamente com o SDK.
Proposta:
Isso eliminará possíveis avisos de compatibilidade e garante suporte completo a novas features introduzidas na série 3.9.
🤖 Prompt for AI Agents