How to fix error NU1100: Unable to resolve 'Microsoft.NET.Test.Sdk (>= 17.12.0)' for 'net9.0'

Trần Nhân 0 Reputation points
2025-04-03T17:09:25.9866667+00:00

When I run this command:
dotnet new mstest in PowerShell (my solution and project are in VSCode), I meet this problem:
User's image

After that, following to the Manual Instruction, I run the command dotnet restore but I still meet that problem, I can't find any solution for it. Can you help me?

Developer technologies | .NET | .NET CLI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Trần Nhân 0 Reputation points
    2025-04-03T17:17:27.57+00:00

    Yeah, it's my mistake. I have the solution for this, just download the nuget source to the solution folder or project folder.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.