[Fixes #656] 'dotnet run' does not work on MusicStore app

This commit is contained in:
Kiran Challa 2016-05-06 10:24:13 -07:00
commit 9d3f2c4803
3 changed files with 53 additions and 32 deletions

View File

@ -5,23 +5,34 @@
"description": "Music store application on ASP.NET 5", "description": "Music store application on ASP.NET 5",
"version": "1.0.0-*", "version": "1.0.0-*",
"buildOptions": { "buildOptions": {
"emitEntryPoint": true, "compile": {
"warningsAsErrors": true, "exclude": [
"../MusicStore/Program.cs",
"../MusicStore/bin",
"../MusicStore/obj"
],
"include": [
"../../shared/**/*.cs",
"../MusicStore/**/*.cs"
]
},
"copyToOutput": {
"include": [
"Areas",
"Views",
"wwwroot",
"config.json",
"web.config"
]
},
"define": [ "define": [
"DEMO", "DEMO",
"TESTING" "TESTING"
], ],
"preserveCompilationContext": true "emitEntryPoint": true,
"preserveCompilationContext": true,
"warningsAsErrors": true
}, },
"compile": [
"../../shared/**/*.cs",
"../MusicStore/**/*.cs"
],
"exclude": [
"../MusicStore/Program.cs",
"../MusicStore/bin",
"../MusicStore/obj"
],
"publishOptions": { "publishOptions": {
"include": [ "include": [
"Areas", "Areas",
@ -79,11 +90,11 @@
"postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
}, },
"runtimes": { "runtimes": {
"win7-x64": {}, "win7-x64": { },
"win7-x86": {}, "win7-x86": { },
"osx.10.10-x64": {}, "osx.10.10-x64": { },
"osx.10.11-x64": {}, "osx.10.11-x64": { },
"ubuntu.14.04-x64": {}, "ubuntu.14.04-x64": { },
"ubuntu.15.04-x64": {} "ubuntu.15.04-x64": { }
} }
} }

View File

@ -5,20 +5,28 @@
"description": "Music store application on ASP.NET 5", "description": "Music store application on ASP.NET 5",
"version": "1.0.0-*", "version": "1.0.0-*",
"buildOptions": { "buildOptions": {
"emitEntryPoint": true, "compile": {
"warningsAsErrors": true, "include": [
"../../shared/**/*.cs"
]
},
"copyToOutput": {
"include": [
"Areas",
"Views",
"wwwroot",
"config.json",
"web.config"
]
},
"define": [ "define": [
"DEMO", "DEMO",
"TESTING" "TESTING"
], ],
"preserveCompilationContext": true "emitEntryPoint": true,
"preserveCompilationContext": true,
"warningsAsErrors": true
}, },
"commands": {
"web": "MusicStore"
},
"compile": [
"../../shared/**/*.cs"
],
"publishOptions": { "publishOptions": {
"include": [ "include": [
"Areas", "Areas",
@ -55,7 +63,7 @@
"Microsoft.NETCore.Platforms": "1.0.1-*" "Microsoft.NETCore.Platforms": "1.0.1-*"
}, },
"frameworks": { "frameworks": {
"net451": {}, "net451": { },
"netcoreapp1.0": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {

View File

@ -1,10 +1,12 @@
{ {
"buildOptions": { "buildOptions": {
"warningsAsErrors": true "warningsAsErrors": true,
"compile": {
"include": [
"../../shared/**/*.cs"
]
}
}, },
"compile": [
"../../shared/**/*.cs"
],
"dependencies": { "dependencies": {
"dotnet-test-xunit": "1.0.0-*", "dotnet-test-xunit": "1.0.0-*",
"Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-*", "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-*",