Unable to find testhost.dll. Please publish your test project and retry October 13, 2022 by Tarik Installing Microsoft.NET.Test.Sdk package from nuget package manager solved my issue.