Getting the following error on TFS Build
$/Pallavi_RampUp/NewWindowsService/WindowsServiceDemoSolution.sln - 1 error(s), 0 warning(s), View Log File
C:\Builds\1\Pallavi_RampUp\WindowsServiceDemo\src\WindowsServiceDemo\WindowsServiceDemo.csproj (77): Expected “$(RunOctoPack)” to evaluate to a boolean instead of “true/p:OctoPackPublishPackageToHttp=http://alm-tfs-01.cybage.com/Octopus/nuget/packages”, in condition “!Exists(’…\packages\OctoPack.3.0.53\tools\OctoPack.targets’) And (’$(RunOctoPack)’ != ‘’ And $(RunOctoPack))”.
You are trying to build with OctoPack, but the NuGet targets file that OctoPack depends on is not available on this computer. This is probably because the OctoPack package has not been committed to source control, or NuGet Package Restore is not enabled. Please enable NuGet Package Restore to download them. For more information
Enableb Nuget Package restore still facing the issue
ensure that your nuget.targets file is checked into source control
Thanks for getting in touch! Corey’s suggestion is a good one to consider. Reading over that log a few times another option might be that you need to add a space after the
It looks like MsBuild is trying to interpret
true/p:OctoPackPublishPackageToHttp=http://alm-tfs-01.cybage.com/Octopus/nuget/packages as a boolean, but failing.
Hope that helps!
Thanks a lot. Its working now.
nuget.targets file were not commited to source control.
Into Nuget.config file
Changed the property to false.
Also their was no space between the build arguments command which was specified by Michael. Thank you…Saved a lot of time.
Thanks for getting back to me with the good news, and a shout out to Corey for helping!