error MSB4018: System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath
See original GitHub issueI 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:
- Created 4 years ago
- Reactions:1
- Comments:17 (8 by maintainers)
Top GitHub Comments
Any update on fixing this? Still happening for -
dotnet publish -c release -r win-x64 --self-contained=true /p:PublishSingleFile=true
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.