coapp / coapp.powershell

ClrPlus Signing
52 stars 43 forks source link

Write-NuGetPackage fails when files are "too big"? #52

Open yodantauber opened 10 years ago

yodantauber commented 10 years ago

The following autopackage script fails if each of the "big-64" and "big-32" folders contains 5 DLLs, each of which is about 2MB in size. It doesn't fail if the DLLs are small (a few KB each).

files {
    [x64] { 
        bin: big-64\*.dll;
    }
    [x86] { 
        bin: big-32\*.dll;
    }
};

The error message is:

Write-NuGetPackage : The given key was not present in the dictionary.

I created a minimal script (with fake "DLLs") to reproduce this issue, I'll try to upload it.

yodantauber commented 10 years ago

There it is: http://1drv.ms/MsZ5VM

yodantauber commented 10 years ago

This just in: The bug doesn't surface if any files are added to the package without conditions. In other words, Large DLL files are a problem only if the package doesn't have any condition-less files. A workaround until this is resolved: add dummygroup: {dummy}; (the dummy file must exist).

fearthecowboy commented 10 years ago

That is so strange.

I can't promise a quick look into this (at least you have a workaround)... I'm madly coding (seven days a week :o ) on a super-secret (and oh-so-damn-exciting) project that I'm trying to get to a releasable state by //Build.