Publish app for testing on an Azure DevTest Labs VM
Članek
In this article, you learn how to publish an application for testing on an Azure DevTest Labs virtual machine (VM). As a developer, you may need to validate that your application build runs correctly on another operating system than your developer workstation. You might also distribute an application build for installation and testing by the test team.
In Visual Studio you can publish your application to other computers, or devices. Publish your application to the Azure file share you created previously.
To publish your app to your Azure file share from Visual Studio:
Open Visual Studio, and choose Create a new project in the Start window.
On the Create a new project screen, select Console Application, and then select Next.
On the Configure your new project page, keep the defaults and select Next.
On the Additional information page, keep the defaults and select Create.
In Visual Studio Solution Explorer, select and hold your project name, and select Build.
When the build succeeds, in Solution Explorer, select and hold your project name, and select Publish.
On the Publish screen, select Folder, and then select Next.
For Specific target, select Folder, and then select Next.
For the Location option, select Browse, and then select the file share you mounted earlier.
Select OK, and then select Finish.
Select Publish.
When the publish operation finishes, the application files are available on the Azure file share. You can now mount the file share from another computer, server, or lab VM, to access the application.
Mount the file share to your lab VM
To access the application files in the Azure file share, you need to first mount the share to your lab VM.
Build end-to-end solutions in Microsoft Azure to create Azure Functions, implement and manage web apps, develop solutions utilizing Azure storage, and more.