Search code examples
nuget.net-coredotnet-cli

dotnetcore Nuget enable Pre-Release


I've started using dotnetcore for a hobby project.

I'm having an issue trying to install NLog. The Visual Studio Code editor seems to recognise the beta version as the intelisense suggests it inside the project.json file. However nuget doesn't seem to restore it.

Is there a way to enable pre-release on Nuget packages in the new dotnet core platform?


Solution

  • I came across the answer to my question whilst watching a PluralSight video on Entity Framework Core By Dr Scott Allen.

    One option is to use the visual studio package manager console and use the -pre flag. e.g:

    install-package Microsoft.EntityFrameworkCore.tools -pre