microsoft / microsoft/vscode-dotnettools

The type or namespace name 'Fact' could not be found when there is a new solution file

Open
#3,371 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

1.Not a regression.
2.Low priority.

Describe the issue

The type or namespace name 'Fact' could not be found when there is a new solution file.
Reproduced on two machines, and the error message doesn’t disappear even after waiting a long time.
Image

Image
Collect logs

csdevkit-logs-2026-07-31T06-54-57.zip

Steps to reproduce

1.Create a C# Console App, add a new xUnit Test Project, observe the Problem Window.
2.New a solution file .sln for them.
3.Add another xUnit Test Project and observe the Problem Window again.

Expected behavior

No error messages.

Environment information

.NET Install Tool: Pre-release 3.1.0
C# Dev Kit Extension: Pre-release v3.27.234
C# Extension: Pre-release v2.147.94
.NET SDKs:  11.0.100-preview.6.26359.118
VSCode Insiders: 1.132.0
Platform: Windows X64 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed steps in VS Code Insiders with a C# Console App and xUnit Test Projects, then inspect the Problem Window and the collected csdevkit logs before and after creating the .sln file. Done means the 'Fact' error no longer appears after adding the solution and another xUnit project.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, vscode
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.