-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error from package creation when building .NET SDK projects #3272
Comments
Can you please upload a zip with a repro?
Alastair Smith <[email protected]> schrieb am Fr., 29. Juni 2018,
13:47:
… Description
We have Paket integrated with the .NET SDK via the bootstrapper in Magic
Mode, as recommended. When Paket is invoked as part of the build on a
solution containing .NET SDK projects to be packaged for NuGet, some of the
projects fail with errors like the following:
C:\code\.paket\Paket.Restore.targets(210,5): error : The filename, directory name, or volume label syntax is incorrect : 'C:\code\test\TestHelpers\obj\Release\TestHelpers.1.0.0-pre-000000.nuspec;C:\code\test\TestHelpers\obj\Release' [C:\code\test\TestHelpers\TestHelpers.csproj]
As far as I can tell based on comparisons between succeeding and failing
project files, it doesn't appear to be anything related to the project file
or their target frameworks.
These are the .NET SDK calls being invoked on my machine:
dotnet build --no-cache $SolutionFile -c Release --version-suffix=pre-000000
dotnet publish --no-build $SolutionFile -c Release
On one branch, where I converted from NuGet to paket using the conversion
tool, five projects throw this error. On another branch, where I converted
from NuGet to paket manually, only three projects throw this error, a
subset of the five.
Repro steps
I am not sure of the repro steps in this instance, as it happens on the
first attempted build after converting the project to paket.
Expected behavior
Paket packs the projects successfully.
Actual behavior
Some projects fail with errors like the following:
C:\code\.paket\Paket.Restore.targets(210,5): error : The filename, directory name, or volume label syntax is incorrect : 'C:\code\test\TestHelpers\obj\Release\TestHelpers.1.0.0-pre-000000.nuspec;C:\code\test\TestHelpers\obj\Release' [C:\code\test\TestHelpers\TestHelpers.csproj]
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3272>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNDjZawraMchekEUnDZGAF_7ep3rmks5uBhPYgaJpZM4U85KU>
.
|
Thanks @forki, I've invited you to a private repo with a reproduction of this bug. |
Aha! I have found what appears to be the root cause for the issue: there are two .nuspec files in the |
I think it related to #2661 PackTest2.zip In log for 5.172.3 i see for task In log for 5.89.4 i cant see I can't understand how it might work and when it was broken. In version range |
Dup of #3160 |
@lexarchik I tried your sample with latest version and it actually creates the nupkgs - what issue should I see? |
@alastairs I ran paket install and |
@forki this issue is still there. It happens in my projects when using imports. I tried to create a simpler repo to recreate the issue but could not get it to work. However, I found that I have a nuget PackageReference in my imports that paket did not touch duing the "convert-from-nuget" process. I suspect that has something to do with it. |
@forki
paket version 5.176.6 |
Not for me. Unfortunately? Which dotnet version?
lexarchik <[email protected]> schrieb am Fr., 17. Aug. 2018, 17:28:
… @forki <https://github.com/forki> dotnet pack --include-symbols still
fails with
<...>\.paket\Paket.Restore.targets(213,5): error : The filename, directory name, or volume label syntax is incorrect : '<...>\PackTest2\obj\Debug\PackTest2.1.0.0.nuspec;<...>\PackTest2\obj\Debug' [<...>\PackTest2\PackTest2.csproj]
paket version 5.176.6
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3272 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNIGU7s_N4XqwVMKlBUag3Iz9_CyTks5uRuEagaJpZM4U85KU>
.
|
dotnet version 2.1.300 |
I happen to have this problem too and I have seen that it occurs when launching dotnet pack twice with different versions. The clean command does not remove the old .nuspec file and the second time it finds 2 of them and it crashes. Removing the old .nuspec file fixes the problem. |
I have this problem myself if I use the flags --include-symbols or --include-source in the dotnet pack command. It seems to happen any time there is more than one .nuspec file in obj/Release. In this case the command makes both a Windows 10 |
I'm still not able to build a package with dotnet version 2.2.101 It seems that the issue of the pack failing when there is more than one nuspec file in the Isn't there a way to have it either not generate both nuspec files, or if that's not possible, have it ignore the non-symbols nuspec file if both are present? I don't know enough about the build process to fix it. |
Tagging in another related issue: #2689 |
Description
We have Paket integrated with the .NET SDK via the bootstrapper in Magic Mode, as recommended. When Paket is invoked as part of the build on a solution containing .NET SDK projects to be packaged for NuGet, some of the projects fail with errors like the following:
As far as I can tell based on comparisons between succeeding and failing project files, it doesn't appear to be anything related to the project file or their target frameworks.
These are the .NET SDK calls being invoked on my machine:
On one branch, where I converted from NuGet to paket using the conversion tool, five projects throw this error. On another branch, where I converted from NuGet to paket manually, only three projects throw this error, a subset of the five.
Repro steps
I am not sure of the repro steps in this instance, as it happens on the first attempted build after converting the project to paket.
Expected behavior
Paket packs the projects successfully.
Actual behavior
Some projects fail with errors like the following:
The text was updated successfully, but these errors were encountered: