Visual Studio 2019 publish to zip

Richard Scannell 321 Reputation points
2022-11-02T11:58:55.337+00:00

I am using VS2019 to build a testwebhook . The instructions I am following tell me to publish the project to a zipped package.

When I go to MyProject : Publish and click 'Add a Publish Profile', I get the following options for the TARGET :
Azure
Docker Container Registry
Folder
FTP/FTPS Server
Web Server IIS
and Import Profile

When I click through each option, none of them offers 'zip' as an option .

Has 'Zip' been deprecated?
Is there an extension I need to install?

I know Azure exists as an option, but ideally I'd like to follow the 'zip' instructions if I can

Thanks in advance

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,009 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Scannell 321 Reputation points
    2022-11-03T09:36:32.03+00:00

    Hello @Anna Xiu-MSFT

    Thank you for the reply .

    The first part of the instructions are just about cloning the project from DEVOPS, so I'll skip those.

    The actual text about publishing the project is
    'Publish the project to the UAT Azure function as a zipped package. The profile for UAT can be created using the ‘New’ option and should use your Azure AD login credentials to authenticate'

    The Screen grab of the 'publish' screen shows a black screen, with white text. 'Publish' highlighted in the left column ( The other unselected option there is 'Connected Services' )

    The Publish section from the middle of the screen shows drop down list with the option
    'functions-MyAppName - Zip Deploy' selected and a Publish button next to it.

    Under the Publish section is a Summary section with the following information
    Site URL : functions-MyAppName.azurewebsites.net
    Configuration : Release
    Username : XXXX
    Password XXX.

    After this the document gives guidance about checking the url from within Visual Studio.

    My own test deployment to a different Azure App using the 'Azure' option from the publish screen I can see, reports a successful deployment , & there is a working url in the browser, but the function area has a different look to it. The functions section is empty, but the Azure logs show a number of 'Succeeded' events including :

    Sync Web Apps Function Triggers
    Update WebSites config
    Get Web App Publishing profile
    CreateWebSites

    There are no 'failed' events in the log

    Thanks again for replying. I would like to use the Web Deploy method if possible, as that is what the instructions mention.

    Best Regards Richard

    0 comments No comments