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

The type 'RetryPolicy' exists in both 'Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling' #7

Open
bfaccruent opened this issue Jul 26, 2022 · 0 comments

Comments

@bfaccruent
Copy link

bfaccruent commented Jul 26, 2022

Hi
When I publish my project with dotnet (Version 6.0.302) it throws error :

>dotnet.exe publish Reader.csproj --configuration Release --runtime win-x64 --output Reader/publish --self-contained true -property:Version=4.0.696

error CS0433: The type 'RetryPolicy' exists in both 'Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'TransientFaultHandling.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=dbe58f97a0872a64'

I even updated it to version 3.0 but still fails :

The type 'RetryPolicy' exists in both 'Microsoft.Practices.EnterpriseLibrary.Trans
ientFaultHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'TransientFaultHandling.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=
dbe58f97a0872a64'

Here is the cproj file :

    <PackageReference Include="AspNetCore.HealthChecks.SqlServer" Version="5.0.3" />
    <PackageReference Include="dapper" Version="2.0.35" />
    <PackageReference Include="dapperextensions.netcore" Version="2.0.7" />
    <PackageReference Include="EnterpriseLibrary.TransientFaultHandling.Core" Version="3.0.0" />
    <PackageReference Include="FastMember" Version="1.5.0" />
    <PackageReference Include="log4net" Version="2.0.14" />
    <PackageReference Include="microsoft.aspnet.webapi.client" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNetCore.Owin" Version="3.1.7" />
    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.2.0" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.7" />
    <PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="3.1.7" />
    <PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="3.1.0" />
    <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.9" />
    <PackageReference Include="Microsoft.VisualStudio.Azure.Kubernetes.Tools.Targets" Version="1.1.0" />
    <PackageReference Include="Nancy" Version="2.0.0" />
    <PackageReference Include="Polly" Version="7.2.1" />
    <PackageReference Include="Scrutor" Version="3.2.1" />
    <PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
    <PackageReference Include="System.Net.Sockets" Version="4.3.0" />
    <PackageReference Include="TransientFaultHandling.Data" Version="3.0.0" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant