From 1eba9765f673ce66f40353fd80c42268d44c6a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 12 May 2016 05:23:41 +0200 Subject: [PATCH] Add a buildOptions/copyToOutput node to ensure the necessary files are copied when publishing --- samples/Mvc.Client/project.json | 10 +++++++++- samples/Mvc.Server/project.json | 11 ++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/samples/Mvc.Client/project.json b/samples/Mvc.Client/project.json index 8473860b..4666a980 100644 --- a/samples/Mvc.Client/project.json +++ b/samples/Mvc.Client/project.json @@ -3,7 +3,15 @@ "debugType": "portable", "emitEntryPoint": true, "warningsAsErrors": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + + "copyToOutput": { + "include": [ + "wwwroot", + "Views", + "web.config" + ] + } }, "dependencies": { diff --git a/samples/Mvc.Server/project.json b/samples/Mvc.Server/project.json index c8a77aba..1cece8c5 100644 --- a/samples/Mvc.Server/project.json +++ b/samples/Mvc.Server/project.json @@ -3,7 +3,16 @@ "debugType": "portable", "emitEntryPoint": true, "warningsAsErrors": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + + "copyToOutput": { + "include": [ + "wwwroot", + "Views", + "config.json", + "web.config" + ] + } }, "dependencies": {