While deploying an ASP.NET 5 application the deployment fails to extract folders with nuspec files in them.
ASP.NET 5 has two of these (Microsoft.AspNet.Server.IIS and Microsoft.CodeAnalysis.Analyzers).
These nuspecs are needed to be able to run our app and it fails to resolve the dependencies.
First I already had the issue that they weren’t included in the package creation so I manually had to create one using a normal zip tool.
Even when it is in the zip file, it still won’t be extracted, even though the package at C:\Octopus\Packages does actually have the needed folders and files in it.
This seems to contradict the following line from the documentation:
“Before you can deploy an application using Octopus, you will need to bundle all of the executables, DLL’s, configuration files, installation scripts, and anything else the application needs to run into a package.”
Obviously it is quite an annoying step to introduce to still manually have to insert these nuspecs after every deployment.
Related issue (no response and quite old): http://help.octopusdeploy.com/discussions/questions/3579-octopus-deploy-with-aspnet-vnext
In case it is needed I have a working application when the package is manually extracted.
As far as I know this problem will exist for almost all asp.net 5 applications since they will all depend on these packages.
Hope anyone can help. Obviously I can introduce manual steps here, or automate something like a rename of the files but that doesn’t seem to be preferable for anyone.
I am running Octopus 3.0.24.0.
EDIT: just found this issue on Github: https://github.com/OctopusDeploy/Issues/issues/1483
Somehow setting this as a variable with true as value (guess) didn’t work (SpecialVariables.Tentacle.Agent.HandleDeploymentAsZip)