You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --include function of octo pack does not include a top-level folder when using nupkg. However, when using zip, this behaves as expected and does include the top-level folder.
Example 1:
The command below will result in a zip file that includes FolderA and inside FolderA it will have contents octo pack --id="TestOctoPack" --format="zip" --version="1.0.0" --basePath="C:\SomeFolder\" --include=".\FolderA\**\*.*"
Example 2:
The command below will result in a nupkg file that includes the contents of FolderA, not FolderA itself octo pack --id="TestOctoPack" --format="nupkg" --version="1.0.0" --basePath="C:\SomeFolder\" --include=".\FolderA\**\*.*"
The text was updated successfully, but these errors were encountered:
Unfortunately this is due to NuGet only preserving the path portion beginning with the wildcard so the top level folder (e.g. FolderA will not be included. I've tried to find a workaround but have not been able to find any way around it.
Zip works because the full path is preserved as we're not using NuGet when compressing zip files.
The
--include
function ofocto pack
does not include a top-level folder when using nupkg. However, when using zip, this behaves as expected and does include the top-level folder.Example 1:
The command below will result in a zip file that includes FolderA and inside FolderA it will have contents
octo pack --id="TestOctoPack" --format="zip" --version="1.0.0" --basePath="C:\SomeFolder\" --include=".\FolderA\**\*.*"
Example 2:
The command below will result in a nupkg file that includes the contents of FolderA, not FolderA itself
octo pack --id="TestOctoPack" --format="nupkg" --version="1.0.0" --basePath="C:\SomeFolder\" --include=".\FolderA\**\*.*"
The text was updated successfully, but these errors were encountered: