Service Fabric SDK is not available on Visual Studio 2019 image

jezz.santos's Avatar


28 Feb, 2020 10:41 PM

Is it possible to install the Service Fabric SDK on the VS2019 image?
We need to install a Stateless Service in a local cluster for testing

  1. 1 Posted by jezz.santos on 28 Feb, 2020 11:26 PM

    jezz.santos's Avatar

    I have added the following to my YML in the meantime:

      - cmd: Webpicmd /install /products:"MicrosoftAzure-ServiceFabric-CoreSDK" /AcceptEULA /SuppressReboot

    Which does what I need.

    However, it turns out that the installer add these paths to the PATH variable:
    C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code + C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager

    But I am unable to use any of the API's in the SDK from my tests, because the assemblies are in that path, but there is no reboot or logout, so my build fails because my tests can make use of that path change.

    Is there a way to workaround the issue of the PATH not being seen after the install?

  2. Support Staff 2 Posted by Feodor Fitsner on 29 Feb, 2020 05:05 PM

    Feodor Fitsner's Avatar

    Hi Jezz,

    You can update PATH with a simple:

    - set PATH=<something>;%PATH%

    Alternatively, reboot of build VM is also possible with a general pattern like:

      - cmd: Webpicmd /install /products:"MicrosoftAzure-ServiceFabric-CoreSDK" /AcceptEULA /SuppressReboot
    # Restart VM
    - ps: Start-Sleep -s 5
    - ps: Restart-Computer
    - ps: Start-Sleep -s 5

    It's better to do everything in init as after reboot the build is not restoring the last current directory. Of course, you can do like - cd %APPVEYOR_BUILD_FOLDER%.

  3. Feodor Fitsner closed this discussion on 30 Apr, 2020 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac