title: Unable to build My Unit Test Project in Visual Studio 2017
body: <p>I'm getting this error when I build my solution, including a Unit Test project.</p>
  
  <blockquote>
    <p>This project references NuGet package(s) that are missing on this
    computer. Use NuGet Package Restore to download them.  For more
    information, see <a href="http://go.microsoft.com/fwlink/?LinkID=322105" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkID=322105</a>. The
    missing file is
    ..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets.</p>
  </blockquote>
  
  <p><strong>.csproj file</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;Import Project="..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props')" /&gt;
    &lt;PropertyGroup&gt;
      &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
      &lt;Platform Condition=" '$(Platform)' == '' "&gt;AnyCPU&lt;/Platform&gt;
      &lt;ProjectGuid&gt;{77FE5641-248D-4D82-850A-1B53495CB9A9}&lt;/ProjectGuid&gt;
      &lt;OutputType&gt;Library&lt;/OutputType&gt;
      &lt;AppDesignerFolder&gt;Properties&lt;/AppDesignerFolder&gt;
      &lt;RootNamespace&gt;UnitTest&lt;/RootNamespace&gt;
      &lt;AssemblyName&gt;UnitTest&lt;/AssemblyName&gt;
      &lt;TargetFrameworkVersion&gt;v4.6.1&lt;/TargetFrameworkVersion&gt;
      &lt;FileAlignment&gt;512&lt;/FileAlignment&gt;
      &lt;ProjectTypeGuids&gt;{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;/ProjectTypeGuids&gt;
      &lt;VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''"&gt;15.0&lt;/VisualStudioVersion&gt;
      &lt;VSToolsPath Condition="'$(VSToolsPath)' == ''"&gt;$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)&lt;/VSToolsPath&gt;
      &lt;ReferencePath&gt;$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages&lt;/ReferencePath&gt;
      &lt;IsCodedUITest&gt;False&lt;/IsCodedUITest&gt;
      &lt;TestProjectType&gt;UnitTest&lt;/TestProjectType&gt;
      &lt;NuGetPackageImportStamp&gt;
      &lt;/NuGetPackageImportStamp&gt;
      &lt;TargetFrameworkProfile /&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "&gt;
      &lt;DebugSymbols&gt;true&lt;/DebugSymbols&gt;
      &lt;DebugType&gt;full&lt;/DebugType&gt;
      &lt;Optimize&gt;false&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\Debug\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;DEBUG;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "&gt;
      &lt;DebugType&gt;pdbonly&lt;/DebugType&gt;
      &lt;Optimize&gt;true&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\Release\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"&gt;
        &lt;HintPath&gt;..\packages\MSTest.TestFramework.1.1.11\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"&gt;
        &lt;HintPath&gt;..\packages\MSTest.TestFramework.1.1.11\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"&gt;
        &lt;HintPath&gt;..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="System" /&gt;
      &lt;Reference Include="System.Configuration" /&gt;
      &lt;Reference Include="System.Core" /&gt;
      &lt;Reference Include="System.Net.Http" /&gt;
      &lt;Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
        &lt;HintPath&gt;..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="System.Web.Extensions" /&gt;
      &lt;Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
        &lt;HintPath&gt;..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;Compile Include="GenerateConceptService\GenerateConceptServiceUnitTest.cs" /&gt;
      &lt;Compile Include="SocialMedia\SocialMediaServiceTest.cs" /&gt;
      &lt;Compile Include="SocialMedia\TwitterActionsTest.cs" /&gt;
      &lt;Compile Include="UnitTest1.cs" /&gt;
      &lt;Compile Include="Properties\AssemblyInfo.cs" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;None Include="App.config"&gt;
        &lt;SubType&gt;Designer&lt;/SubType&gt;
      &lt;/None&gt;
      &lt;None Include="packages.config" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\Core.WindowsServices\Core.GenerateConcept\Core.GenerateConcept.csproj"&gt;
        &lt;Project&gt;{767FA3B9-55C4-4C3D-AEB8-7912A09AF868}&lt;/Project&gt;
        &lt;Name&gt;Core.GenerateConcept&lt;/Name&gt;
      &lt;/ProjectReference&gt;
      &lt;ProjectReference Include="..\CoreApi2\CoreApi2.Api\CoreApi2.Api.csproj"&gt;
        &lt;Project&gt;{55466732-A2A7-479D-B4A1-99FB2732DCE6}&lt;/Project&gt;
        &lt;Name&gt;CoreApi2.Api&lt;/Name&gt;
      &lt;/ProjectReference&gt;
      &lt;ProjectReference Include="..\CoreApi2\CoreApi2.Model\CoreApi2.Model.csproj"&gt;
        &lt;Project&gt;{24fba440-a133-4024-87c9-a77d0b7af659}&lt;/Project&gt;
        &lt;Name&gt;CoreApi2.Model&lt;/Name&gt;
      &lt;/ProjectReference&gt;
      &lt;ProjectReference Include="..\CoreApi2\CoreApi2.Services\CoreApi2.Services.csproj"&gt;
        &lt;Project&gt;{d2a117bf-d7e5-4483-bb35-71336b8e8404}&lt;/Project&gt;
        &lt;Name&gt;CoreApi2.Services&lt;/Name&gt;
      &lt;/ProjectReference&gt;
      &lt;ProjectReference Include="..\Infrastructure\Informanagement.Infrastructure\Informanagement.Infrastructure.csproj"&gt;
        &lt;Project&gt;{92C12E85-209B-4F16-BB1E-B1E120EFB4EB}&lt;/Project&gt;
        &lt;Name&gt;Informanagement.Infrastructure&lt;/Name&gt;
      &lt;/ProjectReference&gt;
    &lt;/ItemGroup&gt;
    &lt;Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /&gt;
    &lt;Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /&gt;
    &lt;Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"&gt;
      &lt;PropertyGroup&gt;
        &lt;ErrorText&gt;This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.&lt;/ErrorText&gt;
      &lt;/PropertyGroup&gt;
      &lt;Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props'))" /&gt;
      &lt;Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets'))" /&gt;
    &lt;/Target&gt;
    &lt;Import Project="..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets')" /&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I have broken refrences:</p>
  
  <p><a href="https://i.stack.imgur.com/DrhCg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DrhCg.png" alt="enter image description here"></a></p>