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 overrideContext/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" />
/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 overrideContext/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'.
<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" />
I have equal problem
is there a solution to this?
It looks like you're new here. Sign in or register to get started.