Reputation: 548
We are using .NetCore in one project of our solutions.
I am trying to automate the build output of DotNet application and publish files to an Azure VM hosting this application.
I have tried many solutions but none worked.
what is the best way to upload files from a local server to an azure VM using TFS builds for a DotNet(1.1.0) project.
Upvotes: 0
Views: 299
Reputation: 51183
First, you need to define a CI build for .net-core project. If you are using TFS2017 update2 and later you could directly select the ASP.NET Core template, you could refer this tutorial: Build your ASP.NET Core app
Otherwise you need to use manually select related build task such as use command line call dotnet restore, dotnet publish. You could take a look at this link: How to build and deploy ASP.NET Core app to Azure
If you simply want to copy/upload files to an Azure VM, you could use Azure File Copy task. This task is used to copy application files and other artifacts that are required in order to install the app; such as PowerShell scripts, PowerShell-DSC modules, and more to Microsoft Azure storage blobs or virtual machines (VMs).
Upvotes: 1