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" />
is there a solution to this?
I have equal problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.