Opening the repository root in VS Code (C# Dev Kit) fails to load one project:
[error] Cannot open project file 'exercises\testing-code\solution\Tests\Tests.csproj'. The project file cannot be found.
[info] Project system initialization finished. 12 project(s) are loaded, and 1 failed to load.
edu-102-dotnet-code.sln line 47 points at a file that no longer exists:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "exercises\testing-code\solution\Tests\Tests.csproj", "{E932E5B8-5379-4245-8085-7125064DAD9D}"
The actual file is exercises/testing-code/solution/Tests/TemporalDurableExecution.Tests.csproj. Line 37 shows the intended pattern for the equivalent project in another exercise:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TemporalDebugActivity.Tests", "exercises\debug-activity\solution\Tests\TemporalDebugActivity.Tests.csproj", "{EF84A16B-0BE5-4EAD-898C-D665AAA6BF4E}"
Root cause
Commit c54087a ("tests working", 2025-01-21) renamed the project file in both practice and solution, but the solution file was not updated:
A exercises/testing-code/practice/Tests/TemporalDurableExecution.Tests.csproj
D exercises/testing-code/practice/Tests/Tests.csproj
A exercises/testing-code/solution/Tests/TemporalDurableExecution.Tests.csproj
D exercises/testing-code/solution/Tests/Tests.csproj
Suggested fix
Update the line 47 entry to the current filename (and rename the display name for consistency with the other *.Tests entries):
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TemporalDurableExecution.Tests", "exercises\testing-code\solution\Tests\TemporalDurableExecution.Tests.csproj", "{E932E5B8-5379-4245-8085-7125064DAD9D}"
The remaining 12 projects load fine and nothing in practice is affected, so the impact is limited to the error on opening the repository root -- but it is the first thing a learner sees when starting the course.
Observed at commit 168bc50 on main, .NET course.
Opening the repository root in VS Code (C# Dev Kit) fails to load one project:
edu-102-dotnet-code.slnline 47 points at a file that no longer exists:The actual file is
exercises/testing-code/solution/Tests/TemporalDurableExecution.Tests.csproj. Line 37 shows the intended pattern for the equivalent project in another exercise:Root cause
Commit
c54087a("tests working", 2025-01-21) renamed the project file in bothpracticeandsolution, but the solution file was not updated:Suggested fix
Update the line 47 entry to the current filename (and rename the display name for consistency with the other
*.Testsentries):The remaining 12 projects load fine and nothing in
practiceis affected, so the impact is limited to the error on opening the repository root -- but it is the first thing a learner sees when starting the course.Observed at commit
168bc50onmain, .NET course.