Tuesday, August 26, 2014

Make NuGet get your missing dependencies in Visual Studio 2013.

  • Enable NuGet in building at: PROJECT > Enable NuGet Package Restore
    • NuGet "exited with code 1." ...is an error message I saw even after building with NuGet enabled, basically because some of the older dependencies could not be found
      • go to: TOOLS > Library Package Manager > Package Manager Console ...at this point as it is time to hope the newer versions of what is missing will work
        • "Install-Package Whatever" is the syntax at the console for installing something
          • I needed Microsoft.Practices.ServiceLocation so I ran "Install-Package CommonServiceLocator" and at first it complained because I also did not yet have StructureMap... and yet NuGet ultimately found the missing dependencies and worked out its mess

No comments:

Post a Comment