Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error in first build (asp .net core & angular ) #4188


User avatar
0
ramezani583 created

hi, I use visual studio 2017 version 15.3.5 my solution: asp .net core & angular with .net framework 4.6.1

Error NU1202 Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

Error NU1202 Package Microsoft.Extensions.SecretManager.Tools 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Extensions.SecretManager.Tools 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

Error The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher. Please install version 2.0 or higher of the .NET Core SDK. SSoft.PhoneBook.Migrator C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.NETFramework.targets 57


3 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @ramezani583,

    Check this: #4002

  • User Avatar
    0
    ramezani583 created

    Hi, I install dot-net core 2, it's error resolved but 4 new error appear! Node.js version is8.9.1 LTS TypeScript version is 2.6.1.0 Yarn version is "yarn-1.3.2"

    (TS) Property 'value' does not exist on type 'number | (() => string) | ((...items: any[]) => number) | (() => any) | { (...items: ReadonlyArra...'. Property 'value' does not exist on type 'number'. src (tsconfig project) D:\Project\PhoneBook_Core_framework 4.6.1\PhoneBook\aspnet-core\src\SSoft.PhoneBook.Web.Host\src\app\admin\tenants\create-tenant-modal.component.ts 75 Active

  • User Avatar
    0
    ismcagdas created
    Support Team

    @ramezani583 can you build your project with angular-cli ? As you can see, defaultEdition[0] is not a number, the problem might be related to typescript version you are using.