Vinyl Warmth
Vinyl Warmth

Reputation: 2516

How do I copy a file to the root dir in my MVC app as part of a VSTS build pipeline?

I want to copy a file test.txt into the root directory of my MVC application as part of our build process.

We are using VSTS and in my build definition I have added a task Copy Files

In the task I am setting:

After the build and release has taken place I expect to be in the root directory of the application, but it isn't?

Can anyone help with what I'm doing wrong?

Upvotes: 1

Views: 167

Answers (1)

Wouter de Kort
Wouter de Kort

Reputation: 39898

Source Folder should point to MyWebsite, Contents to test.txt or to *, not **.

** is meant for recursive folders and files like this: **\*.

Upvotes: 1

Related Questions