IMPORTANT!
This forum is now archived. Click here for the New Support Forum
dotnet restore errors
Quote from Kamil on February 19, 2018, 2:29 pmHi any help appreciated. I followed the Installation Notes but am still getting several of these nuget errors when running 'dotnet restore':
I'm running latest VS2017 version 15.5.6. I cleared my local packages (
dotnet nuget locals all --clear
), not sure what step I'm missing.warning NU1701: Package 'System.Collections 4.3.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : warning NU1701: Package 'System.Collections.Concurrent 4.3.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : warning NU1701: Package 'System.ComponentModel 4.3.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [C:\Dev\Prop\QuickApp\QuickApp.sln]
the warnings are then followed by errors:
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.AspNetCore.Diagnostics.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.AspNetCore.Diagnostics.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Caching.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Caching.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Logging 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Logging 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Configuration.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Configuration.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Logging.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Logging.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Options 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Options 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Primitives 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Primitives 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.FileProviders.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.FileProviders.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Caching.Memory 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Caching.Memory 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.DependencyInjection 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.DependencyInjection 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package System.Diagnostics.DiagnosticSource 4.4.1 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.Diagnostics.DiagnosticSource 4.4.1 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0) [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.WebEncoders 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.WebEncoders 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package System.Reflection.TypeExtensions 4.3.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.Reflection.TypeExtensions 4.3.0 supports: [C:\Dev\Prop\QuickApp\QuickApp.sln]
Hi any help appreciated. I followed the Installation Notes but am still getting several of these nuget errors when running 'dotnet restore':
I'm running latest VS2017 version 15.5.6. I cleared my local packages (dotnet nuget locals all --clear
), not sure what step I'm missing.
warning NU1701: Package 'System.Collections 4.3.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : warning NU1701: Package 'System.Collections.Concurrent 4.3.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : warning NU1701: Package 'System.ComponentModel 4.3.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [C:\Dev\Prop\QuickApp\QuickApp.sln]
the warnings are then followed by errors:
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.AspNetCore.Diagnostics.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.AspNetCore.Diagnostics.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Caching.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Caching.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Logging 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Logging 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Configuration.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Configuration.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.DependencyInjection.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Logging.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Logging.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Options 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Options 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Primitives 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Primitives 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.FileProviders.Abstractions 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.FileProviders.Abstractions 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.Caching.Memory 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.Caching.Memory 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.DependencyInjection 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.DependencyInjection 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package System.Diagnostics.DiagnosticSource 4.4.1 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.Diagnostics.DiagnosticSource 4.4.1 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0) [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package Microsoft.Extensions.WebEncoders 2.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.Extensions.WebEncoders 2.0.0 does not support any target frameworks. [C:\Dev\Prop\QuickApp\QuickApp.sln]
C:\Dev\Prop\QuickApp\src\DAL\DAL.csproj : error NU1202: Package System.Reflection.TypeExtensions 4.3.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.Reflection.TypeExtensions 4.3.0 supports: [C:\Dev\Prop\QuickApp\QuickApp.sln]
Quote from Chris Romero on February 23, 2018, 10:18 pmI have this same issue. How did you fix it?
I have this same issue. How did you fix it?
Quote from Eben Monney on February 24, 2018, 5:07 pmThe error indicates you're using nuget packages that are not compatible with .Net Standard.
Try to see if you can get versions of the package that have support for .Net Standard.
Note that .Net framework is a superset of .Net Standard and those two libraries are not the same.
The error indicates you're using nuget packages that are not compatible with .Net Standard.
Try to see if you can get versions of the package that have support for .Net Standard.
Note that .Net framework is a superset of .Net Standard and those two libraries are not the same.
IMPORTANT!
This forum is now archived. Click here for the New Support Forum