This target figures out whether this is a web project or normal application, and whether it is being built in release mode.

It then discovers the location of NuGet.exe.

-->

<!--

Find NuGet.exe and the project NuSpec

-->

<TargetName="DeployNugetFindNuGetSettings">

<Error

Code="OCTO: 1001"

Text="OctoPack: Expected to find a NuGet spec file named $(DeployNugetNuSpecFileName) under $(MSBuildProjectDirectory). You can fix this error by adding a NuGet spec file with that name, or override the name of the file by setting a property called DeployNugetNuSpecFileName in your project."

Condition="!Exists('$(DeployNugetNuSpecFileName)')"

/>

<Error

Code="OCTO: 1002"

Text="OctoPack: Could not locate NuGet.exe. Please add a NuGet package reference for NuGet.CommandLine, or set the property DeployNugetNuGetExePath in your project. Current search path is: $(NuGetExe)"