As stated on cakebuild.net , the #addin directive also supports URI syntax ( #addin nuget:[uri]?package=packageid[¶meters] ), which can be used to specify parameters such as feed, version, and preerelease.
Usage example:
#addin nuget:?package=Cake.Foo #addin nuget:?package=Cake.Foo&version=1.2.3 #addin nuget:?package=Cake.Foo&prerelease #addin nuget:https:
You can also override the default nuget location for all additions by specifying the NUGET_SOURCE environment variable, the NUGET_SOURCE argument to Cake, or add a configuration file as shown below
[Nuget] Source=http:
You save it as cake.config and place it along your build.cake file. You can learn more about Cake configuration here and default values here.
But to get the latest preview, I would suggest switching to the syntax #addin nuget:[feedurl]?package=[packageid]&prerelease .
source share