question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error MSB4018: System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath

See original GitHub issue

I was creating new .net core console application with just one nuget reference “Microsoft.Azure.Cosmos” and tried publish single file. And i was getting error when published: The “GenerateBundle” task failed unexpectedly. System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath.

<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.0</TargetFramework> <PublishSingleFile>true</PublishSingleFile> <RuntimeIdentifier>win-x64</RuntimeIdentifier> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Azure.Cosmos" Version="3.0.0" /> </ItemGroup> </Project>

As discussed here, this is a bug in sdk. Another way it`s fix problem in a package directly.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adirh3commented, May 21, 2021

Any update on fixing this? Still happening for - dotnet publish -c release -r win-x64 --self-contained=true /p:PublishSingleFile=true

1reaction
penylandcommented, Oct 6, 2020

Hi! This still repros on 3.13.0 when building a self contained. NET5 RC1 WebApi for RID win10-x64. Builds without problems when using RID linux-x64 .

Easy to reproduce by doing: dotnet new webapi -n TestApi -f net5.0 dotnet add TestApi package Microsoft.Azure.Cosmos -v 3.13.0 dotnet publish .\TestApi\TestApi.csproj -c release -r win-x64 /p:PublishSingleFile=true --self-contained

Removing the build folder (~/.nuget/packages/microsoft.azure.cosmos/3.13.0) solves the issue for win10-x64.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSB4018 "Multiple entries with the same ...
ArgumentException : Invalid input specification: Found multiple entries with the same BundleRelativePath" error results, console exception text ...
Read more >
Publish error on .Net Core 3.1, "System.ArgumentException
Net Core 3.1, "System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath".
Read more >
Error Publishing with /p:PublishSingleFile=true Flag
Publish.targets(801,5): error MSB4018: System.ArgumentException: Invalid input specification: Found multiple entries with the same ...
Read more >
Cannot Publish WPF .NET Core 3.1 Application using ...
2>System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath 2> at Microsoft.NET.
Read more >
Dotnet publish with PublishSingleFile=true errors after ...
Cli.fsproj] error MSB4018: System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found