When using the include source option with the dotnet pack command, an error appears.
-> dotnet pack --include-source -c Debug -o ......\NugetPackages
If I use the same command with the include symbols, I do not have any errors :
-> dotnet pack --include-symbols -c Debug -o ......\NugetPackages
Version :
.NET Command Line Tools (1.0.0-preview5-004262)
Hi
When using the include source option with the dotnet pack command, an error appears. -> dotnet pack --include-source -c Debug -o ......\NugetPackages If I use the same command with the include symbols, I do not have any errors : -> dotnet pack --include-symbols -c Debug -o ......\NugetPackages
Version : .NET Command Line Tools (1.0.0-preview5-004262)
Product Information: Version: 1.0.0-preview5-004262 Commit SHA-1 hash: 441277ccfa
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\1.0.0-preview5-004262 Error : C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: The "PackTask" task failed unexpectedly.\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Framework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: System.Argumen tException: An item with the same key has already been added. Key: D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\ApplicationInfo.cs\ r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Framework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at System.T hrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object key)\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Framew ork.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at System.C ollections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmin d.Framework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at NuGet.Bu ild.Tasks.Pack.PackTask.GetSourceFiles(String currentProjectDirectory)\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Fra mework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at NuGet.Bu ild.Tasks.Pack.PackTask.GetPackArgs()\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Framework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at NuGet.Bu ild.Tasks.Pack.PackTask.Execute()\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Framework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at Microsof t.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastruct ure\Flexmind.Framework.Infrastructure.csproj] C:\Program Files\dotnet\sdk\1.0.0-preview5-004262\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(73,5): error MSB4018: at Microsof t.Build.BackEnd.TaskBuilder.d__25.MoveNext() [D:\Dev\Flexmind.Framework\Flexmind.Framework\Flexmind.Framework.Infrastructure\Flexmind.Framew
ork.Infrastructure.csproj]
Project File :