Skip to content

Instantly share code, notes, and snippets.

@devlights
Created November 8, 2016 12:20
Show Gist options
  • Select an option

  • Save devlights/402b002d7480de90b37bb8392de027a2 to your computer and use it in GitHub Desktop.

Select an option

Save devlights/402b002d7480de90b37bb8392de027a2 to your computer and use it in GitHub Desktop.
dotnet coreでビルド時にコンテンツをコピーする方法 (package.json, buildOptions, copyToOutput)
  • buildOptionsブロックにcopyToOutputを追加
  • ディレクトリの場合は、後ろスラッシュ必要
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true,
"copyToOutput": [
"FileName",
"FolderName/"
]
},
"dependencies": {},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
}
},
"imports": "dnxcore50"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment