My team has been using Octopus to deploy .NET 4 web applications and we store our artifacts as nuget packages in ProGet, an external repository. We would like to continue to use an external repository. We follow the instructions at https://octopus.com/docs/deploying-applications/deploying-asp.net-core-web-applications#DeployingASP.NETCoreWebApplications-PublishingandPackingtheWebsite to run
dotnet publish and then create a zip file from the output. But, ProGet does not support .zip files and Octopus does not support deploying .zip files from external repositories. I’ve tried to use
dotnet pack to create the nuget package, but it did not include everything (such as the .deps file). There is a GitHub issue about this in the cli project, and they refer us to the Octopus team for guidance. We’re also trying to do all of this on linux build machines running in docker, and so octo.exe is not available.
Is it possible to create a nuget package for an ASP.NET Core application and deploy it from an external repository?