It seems like you've created a test project targeting .NET Framework 4.8 using xUnit in Visual Studio 2022, and the tests run successfully within the IDE, but you encounter errors when using dotnet test command.
> dotnet test
D:\Workspace\Project\DataManager_Repositories\DM-Foundry\Test_Client\Foundry\Foundry.csproj(145,3): error MSB4019: Imported project "C:\ProgramFiles\dotnet\sdk\7.0.400\Telerik\WebUITestStudio\Telerik .WebUITestStudio.targets" not found. Make sure the expression in the import declaration "C:\Program Files\dotnet\sdk\7.0.400\\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" is correct and the file exists on disk.