Publishing your app from Visual Studio using Web Deploy is faster than FTP and ensures that all required files are compiled and uploaded to the server.
Follow these instructions to set up your Publishing Profile for fast publishing from Visual Studio.
- From the Dashboard tab under Websites & Domains, click on the Web Deploy Publishing Settings icon.
- This will download the publishing profile for Visual Studio.
Save this to your local computer. - In Visual Studio, open or create your Blazor solution.
- Right-click on your Blazor Project and select Publish
- Select Import Profile and click on Next
- Click on Browse and then select the publish profile file you downloaded from step 2 and click on Finish
- From the Publish screen, Click the dropdown at the top, and select the profile ending in - Web Deploy.pubxml
- Your publish screen should now look like this:
- Click on the More actions dropdown and select Edit
- Select the Connection tab and paste your Plesk hosting account password into the Password box.
Tick the Save password checkbox and then click on the Validate Connection button.
You will see a green tick after a few seconds. - Click on the Save button to close the window.
- Now click on the Publish button at the top right.
- Visual Studio will now start uploading your compiled solution to the web server:
- Once finished you will see the success message. Click on Open site to view your published app.
- If any errors occur during publishing, they will be shown in the Build window in Visual Studio.
- You can now quickly publish your app anytime by selecting Publish from the Build menu in Visual Studio.