dependencies - Dependency conflicts in asp.net core on mac -


i new .net , don't know how debug these kind of troubles when comes dependencies. trying run dotnet core application in mac, below can see output of terminal when execute dotnet restore , later can see project.json. not sure kind of information helpful here. appreciated. thanks.

log  : restoring packages /users/dimitris/develop/justbringcore/src/justbringcore/project.json... log  : restoring packages tool 'microsoft.aspnetcore.razor.tools' in /users/dimitris/develop/justbringcore/src/justbringcore/project.json... error: package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 supports: netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: 1 or more packages incompatible .netcoreapp,version=v1.0. log  : restoring packages tool 'microsoft.aspnetcore.server.iisintegration.tools' in /users/dimitris/develop/justbringcore/src/justbringcore/project.json... error: package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: 1 or more packages incompatible .netcoreapp,version=v1.0. log  : restoring packages tool 'microsoft.entityframeworkcore.tools' in /users/dimitris/develop/justbringcore/src/justbringcore/project.json... error: package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: 1 or more packages incompatible .netcoreapp,version=v1.0. log  : restoring packages tool 'microsoft.extensions.secretmanager.tools' in /users/dimitris/develop/justbringcore/src/justbringcore/project.json... info :   cache https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json info :   cache https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json log  : restoring packages tool 'microsoft.visualstudio.web.codegeneration.tools' in /users/dimitris/develop/justbringcore/src/justbringcore/project.json... error: package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: 1 or more packages incompatible .netcoreapp,version=v1.0. error: project justbringutils not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). project justbringutils supports: netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.applicationinsights.aspnetcore 1.0.0 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.applicationinsights.aspnetcore 1.0.0 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.aspnetcore.mvc 1.0.0 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.aspnetcore.mvc 1.0.0 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.visualstudio.web.codegenerators.mvc 1.0.0-preview2-final not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.visualstudio.web.codegenerators.mvc 1.0.0-preview2-final supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 supports: netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final supports: error:   - net451 (.netframework,version=v4.5.1) error:   - netstandard1.6 (.netstandard,version=v1.6) error: 1 or more projects incompatible .netcoreapp,version=v1.0. error: 1 or more packages incompatible .netcoreapp,version=v1.0. info : committing restore... log  : lock file has not changed. skipping lock file write. path: /users/dimitris/develop/justbringcore/src/justbringcore/project.lock.json log  : /users/dimitris/develop/justbringcore/src/justbringcore/project.json log  : restore failed in 6812ms.  errors in /users/dimitris/develop/justbringcore/src/justbringcore/project.json     package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 supports: netstandard1.6 (.netstandard,version=v1.6)     package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     1 or more packages incompatible .netcoreapp,version=v1.0.     package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     1 or more packages incompatible .netcoreapp,version=v1.0.     package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     1 or more packages incompatible .netcoreapp,version=v1.0.     package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     1 or more packages incompatible .netcoreapp,version=v1.0.     project justbringutils not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). project justbringutils supports: netstandard1.6 (.netstandard,version=v1.6)     package microsoft.applicationinsights.aspnetcore 1.0.0 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.applicationinsights.aspnetcore 1.0.0 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     package microsoft.aspnetcore.mvc 1.0.0 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.aspnetcore.mvc 1.0.0 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     package microsoft.visualstudio.web.codegenerators.mvc 1.0.0-preview2-final not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.visualstudio.web.codegenerators.mvc 1.0.0-preview2-final supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel.loader 1.0.0-preview2-003121 supports: netstandard1.6 (.netstandard,version=v1.6)     package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.cli.utils 1.0.0-preview2-003121 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.dotnet.projectmodel 1.0.0-rc3-003121 supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final not compatible netcoreapp1.0 (.netcoreapp,version=v1.0). package microsoft.visualstudio.web.codegeneration 1.0.0-preview2-final supports:     - net451 (.netframework,version=v4.5.1)     - netstandard1.6 (.netstandard,version=v1.6)     1 or more projects incompatible .netcoreapp,version=v1.0.     1 or more packages incompatible .netcoreapp,version=v1.0.  nuget config files used:     /users/dimitris/.nuget/nuget/nuget.config  feeds used:     https://api.nuget.org/v3/index.json 

project.json

{   "usersecretsid": "aspnet-justbringcore-...",    "dependencies": {     "csvhelper": "2.16.0",     "justbringutils": "1.0.0-*",     "microsoft.applicationinsights.aspnetcore": "1.0.0",     "microsoft.aspnetcore.authentication.cookies": "1.0.0",     "microsoft.aspnetcore.diagnostics": "1.0.0",     "microsoft.aspnetcore.diagnostics.entityframeworkcore": "1.0.0",     "microsoft.aspnetcore.identity.entityframeworkcore": "1.0.0",     "microsoft.aspnetcore.mvc": "1.0.0",     "microsoft.aspnetcore.razor.tools": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "microsoft.aspnetcore.server.iisintegration": "1.0.0",     "microsoft.aspnetcore.server.kestrel": "1.0.0",     "microsoft.aspnetcore.staticfiles": "1.0.0",     "microsoft.entityframeworkcore.sqlserver": "1.0.0",     "microsoft.entityframeworkcore.tools": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "microsoft.extensions.configuration.environmentvariables": "1.0.0",     "microsoft.extensions.configuration.json": "1.0.0",     "microsoft.extensions.configuration.usersecrets": "1.0.0",     "microsoft.extensions.logging": "1.0.0",     "microsoft.extensions.logging.console": "1.0.0",     "microsoft.extensions.logging.debug": "1.0.0",     "microsoft.netcore.app": {       "version": "1.0.0",       "type": "platform"     },     "microsoft.visualstudio.web.browserlink.loader": "14.0.0",     "microsoft.visualstudio.web.codegeneration.tools": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "microsoft.visualstudio.web.codegenerators.mvc": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "stripe.net": "6.3.5"   },    "tools": {     "microsoft.aspnetcore.razor.tools": {       "version": "1.0.0-preview2-final",       "imports": "portable-net45+win8+dnxcore50"     },     "microsoft.aspnetcore.server.iisintegration.tools": {       "version": "1.0.0-preview2-final",       "imports": "portable-net45+win8+dnxcore50"     },     "microsoft.entityframeworkcore.tools": {       "version": "1.0.0-preview2-final",       "imports": [         "portable-net45+win8+dnxcore50",         "portable-net45+win8"       ]     },     "microsoft.extensions.secretmanager.tools": {       "version": "1.0.0-preview1-final",       "imports": "portable-net45+win8+dnxcore50"     },     "microsoft.visualstudio.web.codegeneration.tools": {       "version": "1.0.0-preview2-final",       "imports": [         "portable-net45+win8+dnxcore50",         "portable-net45+win8"       ]     }   },    "frameworks": {     "netcoreapp1.0": {       "imports": [         "dotnet5.6",         "dnxcore50",         "portable-net45+win8"       ]     }   },    "buildoptions": {     "emitentrypoint": true,     "preservecompilationcontext": true   },    "runtimeoptions": {     "gcserver": true   },    "publishoptions": {     "include": [       "wwwroot",       "views",       "appsettings.json",       "web.config"     ]   },    "scripts": {     "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],     "postpublish": [ "dotnet publish-iis --publish-folder %publish:outputpath% --framework %publish:fulltargetframework%" ]   } } 

if dotnet restore dumping out bunch of errors, there's few things can check.

first, make sure using latest version of dotnet:

λ dotnet --version 1.0.0-preview2-003121 

next, can start removing offending packages 1 one determine ones breaking restore. few tweaks, able restore project.json:

{   "usersecretsid": "aspnet-justbringcore-...",    "dependencies": {     "csvhelper": "2.16.0",     "microsoft.applicationinsights.aspnetcore": "1.0.0",     "microsoft.aspnetcore.authentication.cookies": "1.0.0",     "microsoft.aspnetcore.diagnostics": "1.0.0",     "microsoft.aspnetcore.diagnostics.entityframeworkcore": "1.0.0",     "microsoft.aspnetcore.identity.entityframeworkcore": "1.0.0",     "microsoft.aspnetcore.mvc": "1.0.0",     "microsoft.aspnetcore.razor.tools": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "microsoft.aspnetcore.server.iisintegration": "1.0.0",     "microsoft.aspnetcore.server.kestrel": "1.0.0",     "microsoft.aspnetcore.staticfiles": "1.0.0",     "microsoft.entityframeworkcore.sqlserver": "1.0.0",     "microsoft.entityframeworkcore.tools": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "microsoft.extensions.configuration.environmentvariables": "1.0.0",     "microsoft.extensions.configuration.json": "1.0.0",     "microsoft.extensions.configuration.usersecrets": "1.0.0",     "microsoft.extensions.logging": "1.0.0",     "microsoft.extensions.logging.console": "1.0.0",     "microsoft.extensions.logging.debug": "1.0.0",     "microsoft.netcore.app": {       "version": "1.0.0",       "type": "platform"     },     "microsoft.visualstudio.web.browserlink.loader": "14.0.0",     "microsoft.visualstudio.web.codegeneration.tools": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "microsoft.visualstudio.web.codegenerators.mvc": {       "version": "1.0.0-preview2-final",       "type": "build"     },     "stripe.net": "6.3.5"   },    "tools": {     "microsoft.aspnetcore.razor.tools": {       "version": "1.0.0-preview2-final",     },     "microsoft.aspnetcore.server.iisintegration.tools": {       "version": "1.0.0-preview2-final",     },     "microsoft.entityframeworkcore.tools": {       "version": "1.0.0-preview2-final",     },     "microsoft.extensions.secretmanager.tools": {       "version": "1.0.0-preview2-final",     },     "microsoft.visualstudio.web.codegeneration.tools": {       "version": "1.0.0-preview2-final",       "imports": "portable-net45+win8+wp8+wpa81"     }   },    "frameworks": {     "netcoreapp1.0": {       "imports": [         "dotnet5.4",         "portable-net45+win8+wp8+wpa81"       ]     }   },    "buildoptions": {     "emitentrypoint": true,     "preservecompilationcontext": true   },    "runtimeoptions": {     "gcserver": true   },    "publishoptions": {     "include": [       "wwwroot",       "views",       "appsettings.json",       "web.config"     ]   },    "scripts": {     "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],     "postpublish": [ "dotnet publish-iis --publish-folder %publish:outputpath% --framework %publish:fulltargetframework%" ]   } } 

in original file, microsoft.extensions.secretmanager.tools 1 version out of date.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -