Search This Blog

August 7, 2017

Fixed the failed build in Bamboo: This project references NuGet package(s) that are missing on this computer

I used the Manage NuGet Packages to upgrade Chrome Driver and IE driver .  Using Visual Studio 2015 to build the solution does not cause any error. After the code review and the pull request was merged to Master Branch, I saw the failed build in Bamboo. 

Here was the error:  
 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 ..\packages\Selenium.WebDriver.ChromeDriver.2.31.0\build\Selenium.WebDriver.ChromeDriver.targets.  (EnsureNuGetPackageBuildImports target) his project references NuGet package(s) that are missing on this computer. 


After looking into this interesting issue, right clicked the project file and unloaded the project file. I could see the following code inside. After removing the code (Pink part) and the pull request was merged to Master Branch, the build succeeded in Bamboo. 


No comments: