title: Unable to find testhost.dll Please publish your test project and retry
body: <p>I have created .net standard 2.1 class library project with specflow and selenium implementation. I have only added simple login tests in order to have POC that it is working. This is info from json file.</p>
  <p>I've added Microsoft.NET.Test.Sdk package, that didn't solved my problem.
  I've added Microsoft.TestPlatform.TestHost, that didn't solved my problem either.</p>
  <p>I'm a beginner so I'm not quite sure what else I need to post here in order to get some help which is more than welcome. I can provide additional info if needed, thanks in advance guys.</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netstandard2.1&lt;/TargetFramework&gt;
      &lt;OutputType&gt;Library&lt;/OutputType&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;SpecFlowObsoleteCodeBehindFiles Remove=&quot;SharedFeatures\Login.feature.cs&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;BoDi&quot; Version=&quot;1.5.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Cucumber.Messages&quot; Version=&quot;6.0.2&quot; /&gt;
      &lt;PackageReference Include=&quot;DotNetSeleniumExtras.WaitHelpers&quot; Version=&quot;3.11.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.NET.Test.Sdk&quot; Version=&quot;16.9.1&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.TestPlatform.TestHost&quot; Version=&quot;16.9.1&quot; /&gt;
      &lt;PackageReference Include=&quot;NUnit&quot; Version=&quot;3.13.1&quot; /&gt;
      &lt;PackageReference Include=&quot;NUnit3TestAdapter&quot; Version=&quot;3.17.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Selenium.Chrome.WebDriver&quot; Version=&quot;85.0.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Selenium.Support&quot; Version=&quot;3.141.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Selenium.WebDriver&quot; Version=&quot;3.141.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Selenium.WebDriver.ChromeDriver&quot; Version=&quot;89.0.4389.2300&quot; /&gt;
      &lt;PackageReference Include=&quot;SpecFlow&quot; Version=&quot;3.7.38&quot; /&gt;
      &lt;PackageReference Include=&quot;SpecFlow.NUnit&quot; Version=&quot;3.7.38&quot; /&gt;
      &lt;PackageReference Include=&quot;SpecFlow.Tools.MsBuild.Generation&quot; Version=&quot;3.7.38&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Compile Update=&quot;SharedFeatures\Login.feature.cs&quot;&gt;
        &lt;DependentUpon&gt;%(Filename)&lt;/DependentUpon&gt;
      &lt;/Compile&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;SpecFlowFeatureFiles Update=&quot;SharedFeatures\Login.feature&quot;&gt;
        &lt;Visible&gt;$(UsingMicrosoftNETSdk)&lt;/Visible&gt;
        &lt;CodeBehindFile&gt;%(RelativeDir)%(Filename).feature$(DefaultLanguageSourceExtension)&lt;/CodeBehindFile&gt;
      &lt;/SpecFlowFeatureFiles&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  <p>This is the error I'm getting :</p>
  <pre><code>Unable to find C:PATH\bin\Debug\netstandard2.1\testhost.dll. Please publish your test project and retry.
  Unable to find C:PATH\bin\Debug\netstandard2.1\testhost.dll. Please publish your test project and retry.
  </code></pre>