-
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
Can't run dotnet pack with sources/symbols when project uses Paket #2689
Comments
Thanks for reporting this. I hope someone can take this. |
@matthid I might take a look at this if I could get a little direction in how to debug this. |
@sjuberman Well, this is definitely not the easiest to debug, but I guess you would start by using either https://www.hanselman.com/blog/MSBuildStructuredLogRecordAndVisualizeYourBuilds.aspx or add msbuild messages/warnings to output the variables in the build process (see/edit the If you don't know how to fix just report back your findings. |
@matthid I think I managed to pinpoint it to the The output from I managed to get past the error by splitting the string and running I'll include the before and after file below:
After:
|
ok we don't have either :) next step I would probably do is compare the visual msbuild log without paket with the one where paket is enabled (and with and without your flags). I guess when using those parameters we need to do something different (ignore the target or hook into a different place) |
Pull request here: #2711 |
same error |
Site note for anybody that just wants to add the *.pdb into the main nuget package: <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
Can't publish a separate NuGet symbols package due to a bug in paket (fsprojects/Paket#2689), instead working around it by embedding the pdb's in the package itself
Description
I get an error when running
dotnet pack
with the--include-symbols
and--include-source
arguments.\.paket\Paket.Restore.targets(100,5): error : The given path's format is not supported.
Everything works when dropping these arguments.
One strange thing that also happens is that if you build it with the arguments then the build without arguments also fails until you delete the
symbols.nuspec
file in theobj
folder.Repro steps
Repro:
PaketRepro.zip
Stuff.Repro
dotnet pack --include-symbols
ordotnet pack --include-source
Expected behavior
The command should output a nuget package for the project and one for the symbols
Actual behavior
Throws error
\.paket\Paket.Restore.targets(100,5): error : The given path's format is not supported.
Known workarounds
None
Environment
Paket version: 5.91.0
.Net SDK version: 2.0.0
OS: Windows 10
The text was updated successfully, but these errors were encountered: