Visual Studio 2019 Image with PCL Build Support

ilexp's Avatar

ilexp

Jul 28, 2019 @ 09:49 AM

Hi there,

we've recently worked on migrating a medium sized project to more modern C# / .NET environments and, as part of that, would like to switch from our Visual Studio 2017 AppVeyor image to Visual Studio 2019.

However, some of our projects use the old Portable Class Library profile and, due to the nature of our software, cannot easily be switched to .NET Standard right away. (They will eventually, but it's a non-trivial operation in our case.) Since PCLs have been deprecated, VS 2019 does no longer include the PCL targeting pack by default, and to build them you need to explicitly select ".NET Portable Library Targeting Pack" as a component in the Visual Studio Installer. Obviously, we can't do that for the AppVeyor image.

Now the question is, do we have any way to use the 2019 image in AppVeyor and get PCL build support at the same time?

  1. 1 Posted by Ilya Finkelshte... on Jul 29, 2019 @ 08:45 AM

    Ilya Finkelshteyn's Avatar

    Hi Adam,

    Would you be interested in running your own image? We have a solution, called private build cloud. We can help you with all automation you need to create an image and connect AppVeyor to your own Azure subscription. This, however will incur charges from Azure (if you do not have some sponsored Azure subscription).

    Let us know what you think.

    Ilya.

  2. 2 Posted by ilexp on Jul 31, 2019 @ 07:14 PM

    ilexp's Avatar

    Hi Ilya,

    I don't have an Azure subscription and would prefer not to roll a custom image for maintenance reasons. This is probably a great solution for some projects though.

    Would there be any way to use the VS 2019 image provided by AppVeyor, but run some sort of setup script that would install any additional required packages?

    Best regards,
    Adam

  3. 3 Posted by Ilya Finkelshte... on Jul 31, 2019 @ 11:56 PM

    Ilya Finkelshteyn's Avatar

    Understood, please watch https://github.com/appveyor/ci/issues/3041. Hopefully some other customers will benefit from it too :)

  4. 4 Posted by ilexp on Aug 02, 2019 @ 12:07 PM

    ilexp's Avatar

    Great, thanks! I'll cross-reference it with the issue from our project.

Reply to this discussion

Internal reply

        No formatting (switch to Markdown)

          You can attach files up to 10MB

          If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

            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