question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet restore fails

See original GitHub issue

I’ve just upgraded the dotnet cli from this link.

After upgrading, dotnet restore prints a lot of error messages for a project.json that previously restored and built fine. Here’s the file:

{
    "version": "1.0.0-*",
    "compilationOptions": {
        "emitEntryPoint": true
    },

    "compile":["*.cs"],

    "dependencies": {
        "NETStandard.Library": "1.0.0-*",
        "Microsoft.AspNetCore.Server.Kestrel":"1.0.0-*",
        "Npgsql":"3.1.0-unstable0415",
        "Dapper":"1.50.0-*",
        "Microsoft.AspNetCore.StaticFiles":"1.0.0-*",
        "Newtonsoft.Json":"8.0.2",
        "System.Runtime.Serialization.Primitives":"4.0.0-*",
        "System.Xml.XDocument":"4.0.11-*",
        "Portable.BouncyCastle":"1.8.1",
        "System.Security.Cryptography.X509Certificates":"4.0.0-*",
        "System.Text.RegularExpressions": "4.1.0-*"
    },

    "frameworks": {
        "dnxcore50": {
            "System.Linq":"4.0.1-beta-*"
        }
    }
}

And here’s what dotnet restore spits out:

log  : Restoring packages for C:\Desktop\Daten\Entwicklung\balesio\clockr\project.json...
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/netstandard.library/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/netstandard.library/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='NETStandard.Library'
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/microsoft.aspnetcore.server.kestrel/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.aspnetcore.server.kestrel/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.server.kestrel/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='Microsoft.AspNetCore.Server.Kestrel'
info :   GET https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/dapper/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/dapper/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/dapper/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='Dapper'
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/microsoft.aspnetcore.staticfiles/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.aspnetcore.staticfiles/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.staticfiles/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='Microsoft.AspNetCore.StaticFiles'
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/system.runtime.serialization.primitives/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.runtime.serialization.primitives/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/system.runtime.serialization.primitives/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='System.Runtime.Serialization.Primitives'
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/system.xml.xdocument/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.xml.xdocument/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/system.xml.xdocument/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='System.Xml.XDocument'
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/system.security.cryptography.x509certificates/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.security.cryptography.x509certificates/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/system.security.cryptography.x509certificates/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='System.Security.Cryptography.X509Certificates'
info :   CACHE https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/system.text.regularexpressions/index.json
info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.text.regularexpressions/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/system.text.regularexpressions/index.json
info :   CACHE https://www.myget.org/F/npgsql-unstable/FindPackagesById()?id='System.Text.RegularExpressions'
info :   NotFound https://www.myget.org/F/aspnetrelease/api/v3/flatcontainer/dapper/index.json 369ms
info :   NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.aspnetcore.server.kestrel/index.json 718ms
info :   OK https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/netstandard.library/index.json 939ms
info :   NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/dapper/index.json 674ms
info :   NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.aspnetcore.staticfiles/index.json 674ms
info :   OK https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.runtime.serialization.primitives/index.json 694ms
info :   OK https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.xml.xdocument/index.json 708ms
info :   OK https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.text.regularexpressions/index.json 697ms
info :   OK https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.security.cryptography.x509certificates/index.json 715ms
warn : Detected package downgrade: NETStandard.Library from 1.5.0-rc2-24027 to 1.0.0--
warn :  clockr (>= 1.0.0) -> Dapper (>= 1.50.0) -> NETStandard.Library (>= 1.5.0-rc2-24027)
warn :  clockr (>= 1.0.0) -> NETStandard.Library (>= 1.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0-rc2-24027 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Dapper (>= 1.50.0) -> System.Data.SqlClient (>= 4.1.0-rc2-24027) -> System.Security.Cryptography.X509Certificates (>= 4.1.0-rc2-24027)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Server.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Http.Extensions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Server.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Http (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Http.Extensions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: NETStandard.Library from 1.5.0-rc2-24027 to 1.0.0--
warn :  clockr (>= 1.0.0) -> Dapper (>= 1.50.0) -> NETStandard.Library (>= 1.5.0-rc2-24027)
warn :  clockr (>= 1.0.0) -> NETStandard.Library (>= 1.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0-rc2-24027 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Dapper (>= 1.50.0) -> System.Data.SqlClient (>= 4.1.0-rc2-24027) -> System.Security.Cryptography.X509Certificates (>= 4.1.0-rc2-24027)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Server.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Http.Extensions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Server.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Http (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Http.Extensions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: NETStandard.Library from 1.5.0-rc2-24027 to 1.0.0--
warn :  clockr (>= 1.0.0) -> Dapper (>= 1.50.0) -> NETStandard.Library (>= 1.5.0-rc2-24027)
warn :  clockr (>= 1.0.0) -> NETStandard.Library (>= 1.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0-rc2-24027 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Dapper (>= 1.50.0) -> System.Data.SqlClient (>= 4.1.0-rc2-24027) -> System.Security.Cryptography.X509Certificates (>= 4.1.0-rc2-24027)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Server.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Http.Extensions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.StaticFiles (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Server.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Http (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
warn : Detected package downgrade: System.Security.Cryptography.X509Certificates from 4.1.0 to 4.0.0--
warn :  clockr (>= 1.0.0) -> Microsoft.AspNetCore.Server.Kestrel (>= 1.0.0) -> Microsoft.AspNetCore.Hosting (>= 1.0.0) -> Microsoft.AspNetCore.Http.Extensions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Abstractions (>= 1.0.0) -> Microsoft.AspNetCore.Http.Features (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.1.0)
warn :  clockr (>= 1.0.0) -> System.Security.Cryptography.X509Certificates (>= 4.0.0)
error: System.Runtime.Serialization.Primitives 4.0.0 provides a compile-time reference assembly for System.Runtime.Serialization.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Security.Cryptography.X509Certificates 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Text.RegularExpressions 4.1.0 provides a compile-time reference assembly for System.Text.RegularExpressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.IO.Compression 4.1.0-rc3-23909 provides a compile-time reference assembly for System.IO.Compression on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Net.Http 4.0.1-rc3-23909 provides a compile-time reference assembly for System.Net.Http on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Linq 4.1.0 provides a compile-time reference assembly for System.Linq on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Linq.Expressions 4.1.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.AppContext 4.1.0 provides a compile-time reference assembly for System.AppContext on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Security.Cryptography.Encoding 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: Some packages are not compatible with DNXCore,Version=v5.0 (win7-x64).
error: System.Runtime.Serialization.Primitives 4.0.0 provides a compile-time reference assembly for System.Runtime.Serialization.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Security.Cryptography.X509Certificates 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Text.RegularExpressions 4.1.0 provides a compile-time reference assembly for System.Text.RegularExpressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.IO.Compression 4.1.0-rc3-23909 provides a compile-time reference assembly for System.IO.Compression on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Net.Http 4.0.1-rc3-23909 provides a compile-time reference assembly for System.Net.Http on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Linq 4.1.0 provides a compile-time reference assembly for System.Linq on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Linq.Expressions 4.1.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.AppContext 4.1.0 provides a compile-time reference assembly for System.AppContext on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Security.Cryptography.Encoding 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: Some packages are not compatible with DNXCore,Version=v5.0 (win7-x86).
info : Committing restore...
log  : Restore failed in 4186ms.

Errors in C:\Desktop\Daten\Entwicklung\balesio\clockr\project.json
    System.Runtime.Serialization.Primitives 4.0.0 provides a compile-time reference assembly for System.Runtime.Serialization.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Security.Cryptography.X509Certificates 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Text.RegularExpressions 4.1.0 provides a compile-time reference assembly for System.Text.RegularExpressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.IO.Compression 4.1.0-rc3-23909 provides a compile-time reference assembly for System.IO.Compression on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Net.Http 4.0.1-rc3-23909 provides a compile-time reference assembly for System.Net.Http on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Linq 4.1.0 provides a compile-time reference assembly for System.Linq on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Linq.Expressions 4.1.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.AppContext 4.1.0 provides a compile-time reference assembly for System.AppContext on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Security.Cryptography.Encoding 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    Some packages are not compatible with DNXCore,Version=v5.0 (win7-x64).
    System.Runtime.Serialization.Primitives 4.0.0 provides a compile-time reference assembly for System.Runtime.Serialization.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Security.Cryptography.X509Certificates 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Text.RegularExpressions 4.1.0 provides a compile-time reference assembly for System.Text.RegularExpressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.IO.Compression 4.1.0-rc3-23909 provides a compile-time reference assembly for System.IO.Compression on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Net.Http 4.0.1-rc3-23909 provides a compile-time reference assembly for System.Net.Http on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Linq 4.1.0 provides a compile-time reference assembly for System.Linq on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Linq.Expressions 4.1.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.AppContext 4.1.0 provides a compile-time reference assembly for System.AppContext on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Security.Cryptography.Encoding 4.0.0-rc3-23904 provides a compile-time reference assembly for System.Security.Cryptography.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    Some packages are not compatible with DNXCore,Version=v5.0 (win7-x86).

NuGet Config files used:
    C:\Desktop\Daten\Entwicklung\balesio\clockr\NuGet.Config
    C:\Users\VanCoding\AppData\Roaming\NuGet\NuGet.Config

Feeds used:
    https://www.myget.org/F/aspnetrelease/api/v3/index.json
    https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
    https://api.nuget.org/v3/index.json
    https://www.myget.org/F/npgsql-unstable/

I’ve also tried removing all but one dependencies, for example only kestrel, but it still gives me a lot of those X provides a compile-time reference assembly for X on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86. errors.

What’s the problem, and how do I fix it? Thanks you so much!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
VanCodingcommented, Jun 29, 2016

Well, after uninstalling everything .net related and then installing the SDK again from the link @blackdwarf provided, I’m now on version 1.0.0-preview2-003121. Before I was at 1.0.0-beta-001603. It seems that installing it from different sources does not necessarily override the previous version. I think that’s what happened. I had 2 versions installed and the older version took precedence over the newer.

After following all the steps again & upgrading most of the dependencies it now can restore if I target “netstandardapp1.6” or “netcoreapp1.0”. But BouncyCastle is sadly not yet supported by those targets. I hope that it’s getting support soon.

Anyways, it seems that everything’s okay with the dotnet CLI. Thank you for your support guys!!

1reaction
blackdwarfcommented, Jun 28, 2016

@VanCoding I think you will need to change your project.json. I would suggest you change the target from dnxcore50 to netcoreapp1.0. You also need to include Microsoft.NETCore.App package in the dependencies in order to produce a portable application. You can find out more about portable applications and what they mean on https://docs.microsoft.com/en-us/dotnet/articles/core/deploying/index.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package Restore Failed / .Net Core Install Bug
Tools -> NuGet Package Manager -> Package Manager Console · Select required project to restore packages from 'Default Project' list · Run the ......
Read more >
dotnet restore failing · Issue #8027 · dotnet/sdk
dotnet restore fails unexpectedly on certain packages for me and I can't figure out why. I have a private nuget repo hosted through...
Read more >
dotnet restore fails after migrating from NET Core 3.1 ...
I have a solution containing 1 C# project and 1 C++/CLI project. C# project references the C++ one. While both were targeting ....
Read more >
Solving flaky dotnet restore issue only on Docker
Solving flaky dotnet restore issue only on Docker — Failed to retrieve information ... I've got stuck for a couple of days to...
Read more >
dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found