There is no way AFAIK to specify to use pre-release packages within packages.config
. Instead, use the -InstallPrerelease
flag (PowerShell) or Prerelease
flag (command-line nuget.exe) to specify that pre-release/beta packages should be installed in preference to stable packages.
Note that Foo.1.0.0-dev1234
is considered earlier than Foo.1.0.0
, so if the the stable package exists (Foo.1.0.0
) then any Foo.1.0.0-xxxx
beta/pre-release packages will not be installed. In such a case, you'd need to up-rev the beta version to (say) Foo.1.0.1-devxxxx
for it to be found as 'newer' than Foo.1.0.0
.
See here for further details: How to publish nuget prerelease version package