Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Microsoft.AspNetCore.All 2.1.2 #1

Closed
laoshancun opened this issue Aug 15, 2018 · 8 comments
Closed

Conflict with Microsoft.AspNetCore.All 2.1.2 #1

laoshancun opened this issue Aug 15, 2018 · 8 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@laoshancun
Copy link

Aguacongas.Identity.Redis require StackExchange.Redis >= 1.2.6, and StackExchange.Redis.StrongName (1.2.4) is required by Microsoft.AspNetCore.All.
this could cause an error.

Type “ConnectionMultiplexer”both exist in“StackExchange.Redis.StrongName, Version=1.2.4.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46” and “StackExchange.Redis, Version=1.2.6.0, Culture=neutral, PublicKeyToken=null”	
@aguacongas aguacongas added the bug Something isn't working label Aug 15, 2018
@aguacongas
Copy link
Member

@laoshancun Can your povide your .csproj ?
I cannot reproduced with this one :

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <Description>Identity sample MVC application on ASP.NET Core</Description>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <UserSecretsId>Aguacongas.Identity.Redis.Sample</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" />
    <PackageReference Include="Aguacongas.Identity.Redis" Version="1.1.0" />
  </ItemGroup>
</Project>

@laoshancun
Copy link
Author

Maybe you need to specify the version number of Microsoft.AspNetCore.All.

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.4.1" />
    <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.1.1" />
    <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.1.1" />
    <PackageReference Include="protobuf-net" Version="2.3.17" />
    <PackageReference Include="Aguacongas.Identity.Redis" Version="1.1.0" />
  </ItemGroup>

  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.1.0-preview1-final" />
  </ItemGroup>
</Project>

@aguacongas

This comment has been minimized.

@aguacongas
Copy link
Member

I'm not able to reproduce, even by specifying a version for Microsoft.AspNetCore.All

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <Description>Identity sample MVC application on ASP.NET Core</Description>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <UserSecretsId>Aguacongas.Identity.Redis.Sample</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.4.1" />
    <PackageReference Include="Aguacongas.Identity.Redis" Version="1.1.0" />
  </ItemGroup>
</Project>

So, I closed it.

@aguacongas aguacongas added the invalid This doesn't seem right label Aug 16, 2018
@laoshancun
Copy link
Author

you should use ConnectionMultiplexer in your code.

@aguacongas
Copy link
Member

aguacongas commented Aug 16, 2018

@laoshancun
Copy link
Author

it is just create a new mvc project,and do the following steps.
tim 20180817091548
tim 20180817091604

@aguacongas
Copy link
Member

Ok, I got it.
Fix is on the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants