I have the following dependencies in my dotnet core application:
"dependencies": { "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029", "Moq": "4.0.10827" },
And no matter which version of iQ Moq is simply not supported, it says:
Package Moq 4.0.10827 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Moq 4.0.10827 supports: - net35 (.NETFramework,Version=v3.5) - net40 (.NETFramework,Version=v4.0) - sl4 (Silverlight,Version=v4.0) One or more packages are incompatible with .NETCoreApp,Version=v1.0.
But I read on this blogpost: Moq on .NET Core , which was possible, I have a nuget plugin in the studio code, so it autocompletes packages, I just can’t find any package when I write moq.netcore Maybe I ask more approach to figuring out whether such a plugin really exists is more than an answer, because right now I can’t see on nuget if the packages are supported on dotnet Core, how do you guys check if it has support? and you only look at packages on Nuget.org ?
thanks
EDIT: Solution project.json:
{ "version": "1.0.0-*", "testRunner": "xunit", "dependencies": { "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029", "moq": "4.6.38-alpha" }, "frameworks": { "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0" } } } } }
asp.net-core moq nuget
Denlillemand
source share