Packaging Guest Executables using Visual Studio

Installing the Service Fabric SDK is a pre-requisite for performing this exercise. The following steps can be followed to create a Guest Executable package using Visual Studio:

  1. Open Visual Studio and choose New Project.
  2. Select Service Fabric Application.
  3. Choose the Guest Executable service template.
  4. Click Browse and select the folder holding the executable to be packaged.

 

 

  1. Fill in other parameters:
    • Code Package Behavior: This is ideally set to copy all the content of the folder to the Visual Studio project. There is also an option to link a folder if you require the project to dynamically pick up the executables every time it executes.
    • Program: Choose the executable that should run to start the service.
    • Arguments: Input parameters to be passed in as arguments to the executable should be specified here.
    • Working Folder: The working folder can be set to one of these three values:
      • CodeBase: If you want to set the working folder to the code directory.
      • CodePackage: If you want to set the working folder to the root directory.
      • Work: If you want to place the files in a sub directory called Work
  1. Name your service.
  2. Click OK.
  3. If the service requires an endpoint communication, you need to edit  ServiceManifest.xml to open an endpoint. We will see how this can be done in the next section.
  4. You can now debug the solution and use package and publish action to deploy the Guest Executable on your local cluster.
  5. When ready, you can publish the application to a remote cluster using Visual Studio.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.164.24