I'm playing with new Core CLR code and trying to implement some test project. I found that Moq at the current moment not support Core CLR and there is package from Microsoft called moq.netcore
. But when I add this in my list of dependencies like moq.netcore": "4.4.0-beta8"
I get this error:
Unable to locate Dependency moq.netcore >= 4.4.0-beta8
How can I fix this?
You need to add special source to your nuget package manager to be able to locate dev version of packages by MS team.
URL of sources where you could find this packet is https://www.myget.org/F/aspnet-contrib/api/v3/index.json
if you prefer command line I think this command should work:
nuget sources add -name FeedName -Source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
or click on NuGet settings in Visual Studio and add it manually (you could check there for example)