Geta / geta-notfoundhandler

The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
20 stars 16 forks source link

Getting error: Found multiple publish output files with the same relative path `module.config` #104

Closed arashbahreini closed 1 year ago

arashbahreini commented 1 year ago

Hello guys, I installed the following packages in my .net 6 project

<PackageReference Include="Geta.NotFoundHandler" Version="5.0.8" />
<PackageReference Include="Geta.NotFoundHandler.Admin" Version="5.0.8" />
<PackageReference Include="Geta.NotFoundHandler.Optimizely" Version="5.0.8" />
<PackageReference Include="Geta.NotFoundHandler.Optimizely.Commerce" Version="5.0.8" />

and now I am getting following error only when I run dotnet publish command. At build time I don't get any error!

C:\Program Files\dotnet\sdk\7.0.307\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path: C:\work\B eerwulf.Webshop\src\Valtech.Beerwulf.Web\modules_protected\Geta.NotFoundHandler.Optimizely\module.config, C:\Users\vbhos.nuget\packages\geta.notfoundhandler.optimizely\5.0.8\contentFiles\any\any\modules_pr otected\Geta.NotFoundHandler.Optimizely\module.config. [C:\work\Beerwulf.Webshop\UnitTest.Web\UnitTest.Web.csproj]