-
Notifications
You must be signed in to change notification settings - Fork 224
FileNotFoundException when publishing #2267
Comments
This actually happens in a clean docker container I use for builds on my CI system. All packages are restored from scratch on each build. Restoring, compiling, running unit tests works fine, just the publish step is failing. |
I might have found the issue: |
Hi @sklose. You code you point out may cause the issue, I need to take a look. In the meantime, I believe if you clean your packages folder and restore again this issue will go away. You can use this script to clean all caches: https://github.com/troydai/k.toolkit/blob/master/clean-packages.py |
/cc @muratg I think I can fix this in beta6 time frame. |
Looks like a regression, @troydai we probably try to fix it. |
I updated to beta6-12234 which fixes the dnu restore issue (#2240) which is similar to this. However, I still seem to have dnu publish problems. Just FYI. "System.IO.FileNotFoundException: Could not find file 'C:\Users\hathcoa.dnx\packages\Unity\3.5.1404\Unity.3.5.1404.0.nupkg'. |
@adamhathcock thanks for letting us know. The fix was checked in recently. Please try a build newer than 12251. Thanks. |
Happens with Moq, too - version 4.2.1502.911 gets an extra |
Hi @tillig It is fixed a newer beta6 DNX build. |
@troydai Yeah, but if I want to ship something that works against beta 5 (shipped with VS) then I'm stuck. Is there a workaround? Or do I just not get to support beta 5? |
@tillig The plan is to ship beta 6 by next Monday (see https://github.com/aspnet/home/wiki/roadmap). Unfortunately I don't know a workaround for beta 5. I think your best bet would be to ship against beta 6. |
@muratg OK. I'll hold off until beta 6. Thanks for letting me know - I do appreciate it! |
Since a couple of days I am getting a FileNotFoundException when I run 'dnu publish'. It seems to be related to commit cae8aab where the file paths were canonicalized.
The package acutally exists on disk, but the path is /root/.dnx/packages/AWSSDK/2.3.47/AWSSDK.2.3.47.nupkg (without the .0)
The text was updated successfully, but these errors were encountered: