From e3808ab769136078d2ac6fcf61509f817af38652 Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Thu, 5 May 2016 15:33:19 -0700 Subject: [PATCH] [Fixes #656] 'dotnet run' does not work on MusicStore app --- src/MusicStore.Standalone/project.json | 47 ++++++++++++++++---------- src/MusicStore/project.json | 25 ++++++++++---- test/E2ETests/project.json | 10 +++--- 3 files changed, 53 insertions(+), 29 deletions(-) diff --git a/src/MusicStore.Standalone/project.json b/src/MusicStore.Standalone/project.json index 37d2705fdb..d59363fe58 100644 --- a/src/MusicStore.Standalone/project.json +++ b/src/MusicStore.Standalone/project.json @@ -5,23 +5,34 @@ "description": "Music store application on ASP.NET 5", "version": "1.0.0-*", "buildOptions": { - "emitEntryPoint": true, - "warningsAsErrors": true, + "compile": { + "exclude": [ + "../MusicStore/Program.cs", + "../MusicStore/bin", + "../MusicStore/obj" + ], + "include": [ + "../../shared/**/*.cs", + "../MusicStore/**/*.cs" + ] + }, + "copyToOutput": { + "include": [ + "Areas", + "Views", + "wwwroot", + "config.json", + "web.config" + ] + }, "define": [ "DEMO", "TESTING" ], - "preserveCompilationContext": true + "emitEntryPoint": true, + "preserveCompilationContext": true, + "warningsAsErrors": true }, - "compile": [ - "../../shared/**/*.cs", - "../MusicStore/**/*.cs" - ], - "exclude": [ - "../MusicStore/Program.cs", - "../MusicStore/bin", - "../MusicStore/obj" - ], "publishOptions": { "include": [ "Areas", @@ -79,11 +90,11 @@ "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" }, "runtimes": { - "win7-x64": {}, - "win7-x86": {}, - "osx.10.10-x64": {}, - "osx.10.11-x64": {}, - "ubuntu.14.04-x64": {}, - "ubuntu.15.04-x64": {} + "win7-x64": { }, + "win7-x86": { }, + "osx.10.10-x64": { }, + "osx.10.11-x64": { }, + "ubuntu.14.04-x64": { }, + "ubuntu.15.04-x64": { } } } \ No newline at end of file diff --git a/src/MusicStore/project.json b/src/MusicStore/project.json index 825432f3be..4376a1c082 100644 --- a/src/MusicStore/project.json +++ b/src/MusicStore/project.json @@ -5,17 +5,28 @@ "description": "Music store application on ASP.NET 5", "version": "1.0.0-*", "buildOptions": { - "emitEntryPoint": true, - "warningsAsErrors": true, + "compile": { + "include": [ + "../../shared/**/*.cs" + ] + }, + "copyToOutput": { + "include": [ + "Areas", + "Views", + "wwwroot", + "config.json", + "web.config" + ] + }, "define": [ "DEMO", "TESTING" ], - "preserveCompilationContext": true + "emitEntryPoint": true, + "preserveCompilationContext": true, + "warningsAsErrors": true }, - "compile": [ - "../../shared/**/*.cs" - ], "publishOptions": { "include": [ "Areas", @@ -52,7 +63,7 @@ "Microsoft.NETCore.Platforms": "1.0.1-*" }, "frameworks": { - "net451": {}, + "net451": { }, "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { diff --git a/test/E2ETests/project.json b/test/E2ETests/project.json index fd2db49381..6c174155bd 100644 --- a/test/E2ETests/project.json +++ b/test/E2ETests/project.json @@ -1,10 +1,12 @@ { "buildOptions": { - "warningsAsErrors": true + "warningsAsErrors": true, + "compile": { + "include": [ + "../../shared/**/*.cs" + ] + } }, - "compile": [ - "../../shared/**/*.cs" - ], "dependencies": { "dotnet-test-xunit": "1.0.0-*", "Microsoft.AspNetCore.Identity": "1.0.0-*",