Real Software

Software Development focuses on creating new software applications and computer systems through the use of programming code and development tools. Consideration needs to be made for the computer systems that will be used to support these new products. Related topics include the business process that employs developers so that they can produce a valuable product.

Recent Posts

Octopus C# Step Templates

Nuget Packages

If you want to create larger step templates for Octopus it is advisable to use C# scripts which come from a nuget package.

  • nuget packages can store dependency DLLs as well as the actual script, allowing you to use third part DLLs and not just those stored in the GAC.
#r "Newtonsoft.Json.dll"
  • separate the script into a number of files, e.g.
#load "pool.csx"

Scripting

Scripting in C# with Octopus does not work well namespaces or using statements so it’s advisable to qualify the types with their full name instead.

private System.Net.NetworkCredential _devAdminCredentials = new System.Net.NetworkCredential("admin", "Password123");

Octopus Parameters

Parameters for the step are created via the UI and can be referenced in C#.

Octopus.Parameters["websitePool"]

It is a good idea to export the step template to JSON so that you have a backup of all the parameters which should be stored in source control.

  1. Orchard CMS Leave a reply
  2. Computer Nerds Leave a reply
  3. HTML5 4 Replies
  4. Working with PDF Documents in C# Leave a reply
  5. Custom Fonts Leave a reply
  6. Beginning IronPython 3 Replies
  7. Example IronPython Test Script 1 Reply
  8. Agile Leave a reply
  9. What exactly is a CMS? Leave a reply