copilot-instructions.md documents `dotnet test` for server tests, which fails on .NET 10

已关闭 适合新手
#150 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@miachillgood 已经在做这个了。

开始于 2026年9月17日。

  • #157 来自 @miachillgood —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
88/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp
领域
documentation

调研方向

从 .github/copilot-instructions.md 第 60 行附近开始,验证 src/ServerTests 中记录的 server-test 命令。检查 ARCHITECTURE.md 或 README 是否重复了相同的说明,并与 CI 作业的测试调用进行比较。当面向贡献者的说明使用可正常工作的命令,且不再存在相互冲突的本地指导时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

documentation

Problem

.github/copilot-instructions.md line 60 says:

  • Run server tests: dotnet test from the ServerTests project.

That command no longer works. Running it in src/ServerTests fails before any test executes:

error : Testing with VSTest target is no longer supported by Microsoft.Testing.Platform
on .NET 10 SDK and later. If you use dotnet test, you should opt-in to the new dotnet test
experience. For more information, see https://aka.ms/dotnet-test-mtp-error
[src/ServerTests/ServerTests.csproj]

The project uses Microsoft.Testing.Platform, and under the .NET 10 SDK the VSTest target it routes through is gone.

What actually works

cd src/ServerTests
dotnet run
Test run summary: Passed! - src/ServerTests/bin/Debug/net10.0/ServerTests.dll (net10.0|x64)
  total: 214
  failed: 0
  succeeded: 214
  skipped: 0

Why this is worth fixing

The instructions file is the first thing an AI agent reads before touching this repo, and it is the documented entry point for contributors. A command that fails immediately sends the reader down a dead end at exactly the moment they are trying to verify their work.

The failure is also easy to misread. It surfaces as a red error : from an MSBuild target with a non-zero exit code, so it looks like a broken build or a failing test suite rather than a wrong command — the plausible next move is to start "fixing" code that was never broken.

This happened during a real session: the documented command was run against a green branch, failed, and needed a second attempt with dotnet run to discover all 214 tests actually pass.

Note CI is unaffected — the Unit Tests (Server/.NET) job passes, so it is invoking the suite some other way. Only the documented local command is wrong.

Suggested fix

Update line 60 to dotnet run, and ideally align it with however the CI job invokes the tests so the documented command and CI stay in agreement.

Worth checking whether ARCHITECTURE.md or the README repeat the same dotnet test instruction.

主要语言
TypeScript
星标
6
派生
7
平均合并
3 天 5 小时
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/Kusto-Explorer-VsCode 的其他 Issue

查看 microsoft/Kusto-Explorer-VsCode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。