Posts

Showing posts from August, 2018

The filename, directory syntax is incorrect during Dot Net Core package creation with Octo through cmd

Image
I got below error during Dote Net Core application package creation from command prompt. I was trying with below command and getting error explained in screenshot. dotnet octo pack --id="SharjeelsWork-OctoWeb" --version="1.0.6" --format=zip --basePath=" F:\RSI\SharjeelsWork\RD\Core\sharjeelsWorkCore\sharjeelsWorkCore\bin\Release\netcoreapp2.1\publish" --outFolder=" F:\RSI\SharjeelsWork\Octopus\Packages\DotNetCore" Here issue was related to out Folder path having an extra space. I just remove this space and got the  package creation message on same window.

Dot Net Core Application Packaging using Octo

Image
Octo.exe is a command line tool that interacts with the Octopus Deploy REST API and includes a pack command to create packages either as Zip or NuGet packages for deployment with Octopus. Installation We recommend installing Octo as a global tool using .NET Core which makes Octo available as a command via the .NET CLI. If you have the .NET Core 2.1.300 SDK available you can install Octo onto a machine or build agent as a global tool with the following command: dotnet tool install Octopus.DotNet.Cli –global Publish your application There are two ways to publish your dot net core application. One you can do from command line and other from Dote net solution it self. Command Line Dot net publish source/sharjeelsWorkCore.Web --output published-app --configuration Release dotnet publish F:\RSI\SharjeelsWork\RD\Core\sharjeelsWorkCore\sharjeelsWorkCore\sharjeelsWorkCore.csproj --output published-app --configuration Release Dote Net Solution Right c