Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Piplines build failed for Microsoft.AspNetCore.Identity

Taxoid Taxoidovich
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 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" />

2 answers

0 votes
Jim Halter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2019

is there a solution to this?

0 votes
Diego Araujo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2019

I have equal problem

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events