Failes to load project with OutputTo


I installed the OutputTo package via NuGet, but others cannot load the project using OutputTo due to this line in the project file.
<Import Project="$(SolutionDir)\packages\OutputTo.1.1\tools\OutputTo.targets" />
"packages\OutputTo.1.1\tools\OutputTo.targets" doesn't exist yet cause NuGet have not downloaded it, and it cannot download it because visual studio cannot load the project. Kind of a fubar situation.

Hope you can resolve this :)


Snebjorn wrote Mar 26, 2013 at 12:07 PM

I figured out a possible fix. Using the condition tag.
<Import Project="$(SolutionDir)\packages\OutputTo.1.1\tools\OutputTo.targets" Condition="Exists('$(SolutionDir)\packages\OutputTo.1.1\')" />