Package isn't downloading before web site .refresh attempts to update

Topics: General
May 4, 2013 at 12:18 AM
We have a Web Site project (which cannot be converted to a web application at this time) that has a reference to a couple of nuget packages. We have the solution set to automatically restore the packages during build but it doesn't seem to be working with these web site projects. The web site attempts to build and then fails because the assembly is not available yet when the project attempts to use the .refresh file to retrieve it. Is there a way to configure this so that this will work?
Developer
May 4, 2013 at 1:16 AM
Package restore works by adding an msbuild target to projects that are executed before compilation. Web site projects don't have a mechanism to inject this target - consequently package restore doesn't work with them. You could have an external command that calls into nuget.exe to restore packages.