Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
dotnet pack --include-symbols fails #2661
When packing a .NET Core project with
The reason the build will fail is that the command
The root cause is that
Given the following .Net Core .csproj file:
the build will produce an error.
The build should produce a NuGet package with the
The build fails with the following error:
I have tried to vary the
Sounds like you already have an idea how to fix it? Do you intend to send a pull request? Am 25.08.2017 11:09 schrieb "Magne Rasmussen" <email@example.com>:…
Description When packing a .NET Core project with dotnet pack --include-symbols will fail rather than producing two NuGet packages. The reason the build will fail is that the command "...\.paket\paket.exe" fix-nuspecs files "obj\TestProj.1.0.0.nuspec;obj\TestProj.1.0.0.symbols.nuspec" references-file "D:\test\src\TestProj/obj/TestProj.csproj.references" fails. This in turn causes .paket\Paket.Restore.targets to fail on line 87. The root cause is that paket fix-nuspecs ... does not seem to split the files argument into a list with two entries, but rather tries to process the entire argument as a list with one entry. Repro steps Given the following .Net Core .csproj file: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net461</TargetFramework> </PropertyGroup> <Import Project="..\..\.paket\Paket.Restore.targets" /> </Project> paket.dependencies: source https://api.nuget.org/v3/index.json nuget NUnit and paket.references: NUnit When running dotnet pack --include-symbols the build will produce an error. ...> dotnet --info .NET Command Line Tools (2.0.0) Product Information: Version: 2.0.0 Commit SHA-1 hash: cdcd1928c9 Runtime Environment: OS Name: Windows OS Version: 10.0.15063 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.0.0\ Microsoft .NET Core Shared Framework Host Version : 2.0.0 Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d ...> .paket\paket.exe --version Paket version 5.89.2 Expected behavior The build should produce a NuGet package with the TestProj.dll assembly, and a NuGet package with the symbols. Actual behavior The build fails with the following error: Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. TestProj -> ...\src\TestProj\bin\Debug\net461\TestProj.dll Paket version 5.89.2 Performance: - Runtime: 655 milliseconds Paket failed with -> Specified file 'obj\TestProj.1.0.0.nuspec;obj\TestProj.1.0.0.symbols.nuspec' does not exist. D:\test\.paket\Paket.Restore.targets(87,5): error MSB3073: The command ""D:\test\.paket\paket.exe" fix-nuspecs files "obj\TestProj.1.0.0.nuspec;obj\TestProj.1.0.0.symbols.nuspec" references-file "D:\test\src\TestProj/obj/TestProj.csproj.references" " exited with code 1. [D:\test\src\TestProj\TestProj.csproj] Known workarounds None. I have tried to vary the files argument to make paket parse it as two separate files, but no success. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2661>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AADgNE74rH_NQ3NoT_7Zp3Rzenn2R8DBks5sbo9agaJpZM4PCaIG> .
No, sorry. I've tried to find a way to fix it, but I have no idea of how
The funny thing is that this worked a couple of days ago, but I can't seem to find any commit that should have changed this behavior.