It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Piplines build failed for Microsoft.AspNetCore.Identity

Taxoid Taxoidovich I'm New Here Apr 18, 2019

 

Hi.

I've try to setup pipeline build for .net core project and I've faced with this error:

/usr/share/dotnet/sdk/2.2.203/Microsoft.Common.CurrentVersion.targets(2114,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.AspNetCore.Identity.EntityFrameworkCore". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
/usr/share/dotnet/sdk/2.2.203/Microsoft.Common.CurrentVersion.targets(2114,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.Identity.Stores". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Context/IdentityContext.cs(1,37): error CS0234: The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft.AspNetCore.Identity' (are you missing an assembly reference?)
Entities/Identity/ApplicationUser.cs(8,36): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?)
Entities/Identity/ApplicationUser.cs(8,50): error CS0535: 'ApplicationUser' does not implement interface member 'IEntity<string>.Id'
Context/IdentityContext.cs(7,38): error CS0246: The type or namespace name 'IdentityDbContext<>' could not be found (are you missing a using directive or an assembly reference?)
Context/IdentityContext.cs(9,33): error CS0115: 'ApplicationContext.OnModelCreating(ModelBuilder)': no suitable method found to override
Context/IdentityContext.cs(15,52): error CS0311: The type 'Pets.Buisness.Data.Context.ApplicationContext' cannot be used as type parameter 'TContext' in the generic type or method 'DbContextOptions<TContext>'. There is no implicit reference conversion from 'Pets.Buisness.Data.Context.ApplicationContext' to 'Microsoft.EntityFrameworkCore.DbContext'.

 

Project dependencies :

<PackageReference Include="AutoMapper" Version="8.0.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="2.2.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.4" />
<PackageReference Include="System.Linq.Queryable" Version="4.3.0" />

0 answers

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,666 views 1 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you