Service Fabric

it's Avatar

it

30 Aug, 2015 11:13 AM

Our project uses Azure Service Fabric & currently the build is fails with

1. Cannot fine System.Fabric.dll
2. error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Service Fabric Tools\Microsoft.VisualStudio.Azure.Fabric.ApplicationProject.props" was not

Should I just bin deploy all the dlls & copy the props file into the local solution?

Or is there a way to have this GAC installed?

Thanks

  1. Support Staff 1 Posted by Feodor Fitsner on 30 Aug, 2015 01:29 PM

    Feodor Fitsner's Avatar

    Hi Chris,

    Service Fabric is not yet installed on build workers, but you can try deploying necessary assemblies and targets files using the approach described here: http://help.appveyor.com/discussions/problems/2892-vsto-visual-studio-tools-for-office

    - Feodor

  2. Support Staff 2 Posted by Feodor Fitsner on 30 Aug, 2015 01:47 PM

    Feodor Fitsner's Avatar

    Alternatively, you can install Service Fabric with this command:

        Webpicmd /install /products:"MicrosoftAzure-ServiceFabric" /AcceptEULA

    Thought it takes around 3 min of your build time.

    See this build for example: https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/1.0.806

    - Feodor

  3. 3 Posted by Billy Li on 30 Aug, 2015 11:29 PM

    Billy Li's Avatar

    Hi Feodor,

    Thanks for the reply. Any chance that the service fabric installation could be cached and subsequent build can restore cache and skip install?

    Regards,
    Billy Li
    Software developer at Fair Go Finance

    --------Forwarded message--------
    From: Chris McKelt <[email blocked]<mailto:[email blocked]>>
    Date: Mon, Aug 31, 2015 at 6:56 am
    Subject: Fwd: Re: Service Fabric [Questions #1625]
    To: Billy Li <[email blocked]<mailto:[email blocked]>>
    You able to have a look at this please

    Sent from Outlook<http://aka.ms/Ox5hz3>

    ---------- Forwarded message ----------

  4. Support Staff 4 Posted by Feodor Fitsner on 31 Aug, 2015 07:08 AM

    Feodor Fitsner's Avatar

    I think that's possible if you deploy required assemblies and target files like described in that method for VSTO. Most probably you don't need all the stuff installed by Service a Fabric installer to support your builds.

  5. 5 Posted by Billy Li on 31 Aug, 2015 07:41 AM

    Billy Li's Avatar

    Great Thanks,

    We got it building now but couldn't work out how to deploy it to azure. Any help would be appreciated.

    Regards,
    Billy Li

    Sent using CloudMagic<https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2>

  6. Support Staff 6 Posted by Feodor Fitsner on 31 Aug, 2015 01:46 PM

    Feodor Fitsner's Avatar

    What issues do you have with that? Did automatic packaging worked for you: http://www.appveyor.com/docs/deployment/azure-cloud-service#automat... ?

  7. 7 Posted by Billy Li on 01 Sep, 2015 12:04 AM

    Billy Li's Avatar

    Hi Feodor,

    I guess this is more of question for Microsoft as I couldn't find the service in Azure. It is not cloud service. However, if you heard of anyone with success deploying service fabric app, it would be appreciated if you could let me know.

    Regards,

    Billy

    ________________________________

  8. Support Staff 8 Posted by Feodor Fitsner on 01 Sep, 2015 10:46 AM

    Feodor Fitsner's Avatar

    When deploying from Visual Studio

    2015 you should see deployment commands in the output log?

    - Feodor

  9. 9 Posted by Billy Li on 01 Sep, 2015 12:47 PM

    Billy Li's Avatar

    We can't even deploy it from vs2015, service fabric seems to be in very early preview stage.

    Sent using CloudMagic<https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2>

  10. 10 Posted by Billy Li on 03 Sep, 2015 05:11 AM

    Billy Li's Avatar

    Hi Feodor,

    We have decided to switch to Api App (similar to webapp) ?
    <https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/>https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/

    It can be deployed using web deploy but on Azure, you could not download the publish settings for api app (unlike web app). If you deploy it from vs2015, it create a publish profile and the encrypted password in your "Properties\PublishProfiles\.pubxml.user". I can work out all the other parameters need for webdeploy from the profile, just missing the password. Any chance you would know how vs2015 decrypt that password?

    Regards,

    Billy Li

    ________________________________

  11. 11 Posted by Billy Li on 03 Sep, 2015 08:11 AM

    Billy Li's Avatar

    Hi Feodor,

    Please ignore my previous query. I have already sorted it out. However, I couldn't work out how to do multiple env deployment in appveyor.yml

    Neither

    deploy:
      provider: Environment
      name: dev-webclient
      name: dev-webapi

    Nor

    deploy:
      provider: Environment
      name: dev-webclient
    deploy:
      provider: Environment
      name: dev-webapi?

    Works. How could I configure it to auto deploy two artifacts to two different env?

    Regards,
    Billy Li

    ________________________________
    From: Billy Li
    Sent: Thursday, 3 September 2015 1:10 PM
    To: Feodor Fitsner
    Subject: RE: Service Fabric [Questions #1625]

    Hi Feodor,

    We have decided to switch to Api App (similar to webapp) ?
    <https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/>https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/

    It can be deployed using web deploy but on Azure, you could not download the publish settings for api app (unlike web app). If you deploy it from vs2015, it create a publish profile and the encrypted password in your "Properties\PublishProfiles\.pubxml.user". I can work out all the other parameters need for webdeploy from the profile, just missing the password. Any chance you would know how vs2015 decrypt that password?

    Regards,

    Billy Li

    ________________________________

  12. Support Staff 12 Posted by Feodor Fitsner on 03 Sep, 2015 09:36 PM

    Feodor Fitsner's Avatar

    What kind of environment is that: Web Deploy, Agent or other?

    You should set the name of to-be-deployed artifact on environment settings. All environments have "Artifact" field on their settings where you can put artifact file name or artifact "deployment name".

    Please let me know if you have any questions.

  13. 13 Posted by Billy Li on 03 Sep, 2015 10:56 PM

    Billy Li's Avatar

    Thanks for the reply.

    I get it working by

    deploy:
    -provider: Env...
      name: web deploy 1
    -provider: Env
      name: web deploy 2

    It was the dash that is missing and appveyor complain about duplicate key

    Sent using CloudMagic<https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2>

  14. 14 Posted by Billy Li on 19 Sep, 2015 03:53 AM

    Billy Li's Avatar

    Hi Feodor,

    Thanks for your kind help on service fabric previously, we have encounter three more questions recently and your help will be appreciated.

    1) Multi Env Config
    We want to build our dev branch using our dev config and deploy to dev server, while test branch under test config deploy to test server. Following your doco, we achieved this by specify -branch: dev in the yml and copy the same content and paste to the end changing to -branch: test. However, we have two identical code to maintain now. Is there a way to override configuration (we only need to change the build configuration and deploy parts) while reuse other same config?

    2) Build on tag only
    For the test branch we only want to trigger build on tag only. Following the doc, we achieve deploy on tag only, but don't know how to build on tag only.

    3) Tests
    We have both xunit unit and integration tests and karma js tests. We achieve running all of them by using auto discover plus manual run karma in after_test hook.

    However, our new requirement is
    Run xunit test on all *.tests.dll except the dll integration.tests.dll
    -->
    Then run a sql database setup cmd
    -->
    Then run xunit on the integration.tests.dll
    -->
    Finally run karma

    I don't know if the auto discover would suit our requirement, so we have tried a test_script, but the xunit.console.clr4 complains that the xunit.dll is not in bin, however, I only have xunit.core.dll not xunit.dll

    Regards,
    Billy

    Sent using CloudMagic<https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.3.5&pv=4.4.2>

  15. Support Staff 15 Posted by Feodor Fitsner on 21 Sep, 2015 02:46 AM

    Feodor Fitsner's Avatar

    1) They should be copied at the moment though we have a requirement to make it simpler.

    2) Added a new issue: https://github.com/appveyor/ci/issues/429 I'm not sure about branch configuration in the case. In many cases branch is undefined for tag commits. Looks like we should have tags filter then?

    3) I think for this scenario is better providing your own test script with those commands.

  16. 16 Posted by Billy Li on 21 Sep, 2015 03:15 AM

    Billy Li's Avatar

    Hi Feodor,

    Thanks for your reply. For question 2, I am sorry that I couldn't answer, I am not aware that branch is undefined for tag commits and what means by a tag filter.

    I notice that when I push to my test-branch, appveyor trigger a build correctly using the test-branch, and when I create a tag in github, I can specify the tag using test-branch, then appveyor trigger another build correctly using the test-branch, so I guess appveyor actually knows which branch is the tag commit coming from? Or have I misunderstood your question?

    ?[cid:cf86fe57-4657-424a-a8d1-81ec29127831]

    [cid:281deab9-4647-4e25-be0f-6db4cee9be6f]

    // Please reply above this line
    ==================================================

    From: Feodor Fitsner (Support staff)

    1) They should be copied at the moment though we have a requirement to make it simpler.

    2) Added a new issue: https://github.com/appveyor/ci/issues/429 I'm not sure about branch configuration in the case. In many cases branch is undefined for tag commits. Looks like we should have tags filter then?

    3) I think for this scenario is better providing your own test script with those commands.

    ________________________________

  17. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

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

Keyboard shortcuts

Generic

? 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