"Deploy NuGet Package" ODstep unpacks .NET Core assets in wrong format.

alexhildyard's Avatar

alexhildyard

10 Nov, 2017 04:40 PM

Steps to reproduce

1. Create a .NET Core application and package it into a NuGet package. We created the package on a Windows 2008 server using dotnet 2.0 and the TeamCity "NuGet Pack" runner

2. Create an OctopusDeploy project which unpacks the NuGet package in question using a ZIP extractor, eg. [System.IO.Compression.ZipFile]::ExtractToDirectory(). We used a Windows 2008 tentacle. Once the package has been unpacked, copy the assets to a Linux (Ubuntu 14.04) box, and launch the application using dotnet. The application launches successfully

3. Repeat step (2), but instead of using OctopusDeploy, just extract the assets from the NuGet package using any ZIP program (eg. the ZIP extractor built into the Windows shell). Again, the application launches correctly once the assets have been copied to the Linux box

4. Create an OctopusDeploy project which unpacks the NuGet package in question using "Deploy NuGet Package." We used a Windows 2008 tentacle. Once the package has been unpacked, copy the assets to a Linux (Ubuntu 14.04) box, and launch the application using dotnet. The application fails to launch with an "incorrect format" error

  1. Support Staff 1 Posted by Henrik Andersso... on 13 Nov, 2017 02:22 AM

    Henrik Andersson's Avatar

    Hi Alex,

    Thanks for getting in touch.

    Could you share the package that you used to do your testing so I can run it locally and try and figure out what is causing the issue?

    For reference, we use SharpCompress to extract the NuGet package in the Deploy package step. Could you try to use a .zip file instead of .nupkg and see if that experience the same error?

    Thank you and best regards,
    Henrik

  2. Paul Stovell closed this discussion on 02 Mar, 2018 10:45 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac