Roka545
Roka545

Reputation: 3626

Create a folder after build using project.json in NET Core

I know you can use "copyToOutput" in project.json to copy files to a project's output directory, but is it possible to copy over an entire folder?

Upvotes: 0

Views: 340

Answers (1)

mrapan
mrapan

Reputation: 85

You can add directories just the way you add files. Note that empty directories will be ignored using this approach.

"buildOptions": {
    "copyToOutput": {
      "include": [ "someFile.json", "myDirectory" ],
    }
  }

Upvotes: 1

Related Questions