Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3116

NuGet package restore error [NU1202] while trying to run Unit Tests

$
0
0

I am having this issue while trying to run unit tests on my home machine (works on my work machine).

Error:

Alerts.Tests.csproj: [NU1202] Package NuGet.Frameworks 5.0.0 is not compatible with netcoreapp2.2 (.NETCoreApp,Version=v2.2). Package NuGet.Frameworks 5.0.0 does not support any target frameworks.

This is the csproj file

<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFramework>netcoreapp2.2</TargetFramework><IsPackable>false</IsPackable></PropertyGroup><ItemGroup><PackageReference Include="coverlet.msbuild" Version="2.8.1" /><PackageReference Include="Microsoft.AspNetCore.All" Version="2.2.8" /><PackageReference Include="Microsoft.CodeCoverage" Version="16.6.1" /><PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /><PackageReference Include="Moq" Version="4.14.1" /><PackageReference Include="ReportGenerator" Version="4.5.8" /><PackageReference Include="xunit" Version="2.4.1" /><PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /><PackageReference Include="XunitXml.TestLogger" Version="2.1.26" /></ItemGroup></Project>

If anyone has encountered this issue and know the resolution, any help would be appreciated.


Viewing all articles
Browse latest Browse all 3116

Trending Articles



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