.net - Updating to ASP.NET Core 2.0 - Packages are not compatible with netcoreapp2.0 -




i'm trying update net core 2.0 i'm getting these errors on packages installed reference

the problem, maybe:

i'm getting reference netcoreapp1.0 in output

the microsoft.entityframeworkcore.tools.dotnet 2.0.0 package not compatible netcoreapp1.0 (.netcoreapp, version = v1.0). microsoft.entityframeworkcore.tools.dotnet 2.0.0 package supports: netcoreapp2.0 (.netcoreapp, version = v2.0) 1 or more packages not compatible .netcoreapp, version = v1.0. detection of detected package: microsoft.applicationinsights.aspnetcore 2.1.1 2.0.0   microsoft.aspnetcore.all (> = 2.0.0) -> microsoft.aspnetcore.applicationinsights.hostingstartup (> = 2.0.0) -> microsoft.applicationinsights.aspnetcore (> = 2.1. 1)   application (> = 1.0.0) -> microsoft.applicationinsights.aspnetcore (> = 2.0.0)

after that, message components:

the microsoft.aspnetcore.anypackage 2.0.0 package not compatible netcoreapp2.0 (.netcoreapp, version = v2.0). microsoft.aspnetcore.websockets 2.0.0 package supports: netstandard2.0 (.netstandard, version = v2.0)

this manual:

https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/

sdk updated 2.0

enter image description here

this csproj

<project sdk="microsoft.net.sdk.web">    <propertygroup>     <targetframework>netcoreapp2.0</targetframework>   </propertygroup>    <propertygroup>     <assettargetfallback>$(assettargetfallback);portable-net45+win8+wp8+wpa81;</assettargetfallback>   </propertygroup>    <itemgroup>     <compile remove="wwwroot\lib\kendo-ui-core\**" />     <content remove="wwwroot\lib\kendo-ui-core\**" />     <embeddedresource remove="wwwroot\lib\kendo-ui-core\**" />     <none remove="wwwroot\lib\kendo-ui-core\**" />   </itemgroup>    <itemgroup>     <content include="wwwroot\css\bootstrap-lumen.css" />     <content include="wwwroot\css\bootstrap-sand.css" />     <content include="wwwroot\css\bootstrap-sand.min.css" />     <content include="wwwroot\js\application-role-index.js" />     <content include="wwwroot\js\family-index.js" />     <content include="wwwroot\js\jquery-3.2.1.min.js" />     <content include="wwwroot\js\modal-action-store.js" />     <content include="wwwroot\js\populate-district.js" />     <content include="wwwroot\js\store-index.js" />     <content include="wwwroot\js\type-index.js" />     <content include="wwwroot\js\user-index.js" />     <content include="wwwroot\js\jquery.filtertable.min.js" />     <content include="wwwroot\js\machine-index.js" />   </itemgroup>   <itemgroup>     <packagereference include="bootstrap.v3.datetimepicker" version="4.17.45" />     <packagereference include="bootstrap.v3.datetimepicker.css" version="4.17.45" />     <packagereference include="microsoft.aspnetcore.all" version="2.0.0" />     <packagereference include="microsoft.applicationinsights.aspnetcore" version="2.0.0" />     <packagereference include="microsoft.extensions.logging.debug" version="2.0.0" />     <packagereference include="microsoft.visualstudio.web.codegeneration.design" version="2.0.0" />     <packagereference include="microsoft.visualstudio.web.codegenerators.mvc" version="2.0.0" />     <packagereference include="newtonsoft.json" version="10.0.3" />     <packagereference include="nuget.commandline" version="4.1.0" />   </itemgroup>   <itemgroup>     <dotnetclitoolreference include="microsoft.visualstudio.web.codegeneration.tools" version="2.0.0" />     <dotnetclitoolreference include="microsoft.entityframeworkcore.tools.dotnet" version="2.0.0" />   </itemgroup>  </project> 

thanks in advance help.

edit: more info

after compiling solution got message

1> csc: error cs1703: multiple assemblies equivalent identity have been imported: 'c: \ users \ user \ .nuget \ packages \ microsoft.netcore.app \ 2.0.0 \ ref \ netcoreapp2.0 \ system.componentmodel.dll 'and' c: \ users \ user \ .nuget \ packages \ system.componentmodel \ 4.3.0 \ ref \ netstandard1.0 \ system.componentmodel.dll '. remove 1 of duplicate references.

solved updating visual studio version 15.3.3

also, make sure sdk updated version 2.0





wiki

Comments

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

Jenkins: find build number for git commit -

firebase - How to wait value in Ionic 2 -