Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Mocking framework for core

$
0
0

Hi,

When I tried to add Moq(4.7.8) from nuget package for my asp.net core project , I got following error.  What is the correct version of Moq I should use..

Error One or more packages are incompatible with .NETCoreApp,Version=v1.1.
Error Package Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1).
Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
Error Package restore failed. Rolling back package changes for 'WebAPI.Test'.

my Current xUnit test project version is 

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>