From 67fc64309fbca3111f35e55415ce2933d54c2ffb Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Tue, 27 Sep 2016 10:28:01 +0100 Subject: [PATCH] Update Angular 2 Music Store sample to declare dependency on .NET Core 1.0.1 --- samples/angular/MusicStore/Startup.cs | 2 +- samples/angular/MusicStore/project.json | 61 +++++++++++++++++-------- 2 files changed, 43 insertions(+), 20 deletions(-) diff --git a/samples/angular/MusicStore/Startup.cs b/samples/angular/MusicStore/Startup.cs index a367d28..c4e37bf 100755 --- a/samples/angular/MusicStore/Startup.cs +++ b/samples/angular/MusicStore/Startup.cs @@ -62,7 +62,7 @@ namespace MusicStore public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory, IHostingEnvironment env) { app.UseDeveloperExceptionPage(); - + // Initialize the sample data SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait(); diff --git a/samples/angular/MusicStore/project.json b/samples/angular/MusicStore/project.json index ac5a938..ceede62 100755 --- a/samples/angular/MusicStore/project.json +++ b/samples/angular/MusicStore/project.json @@ -5,52 +5,75 @@ "preserveCompilationContext": true }, "runtimeOptions": { - "gcServer": true + "configProperties": { + "System.GC.Server": true + } }, "tooling": { "defaultNamespace": "MusicStore" }, -"dependencies": { + "dependencies": { "Microsoft.NETCore.App": { - "version": "1.0.0", + "version": "1.0.1", "type": "platform" }, + "Microsoft.AspNetCore.AngularServices": "1.0.0-*", "Microsoft.AspNetCore.Diagnostics": "1.0.0", "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0", + "Microsoft.AspNetCore.Mvc": "1.0.1", + "Microsoft.AspNetCore.Razor.Tools": { + "version": "1.0.0-preview2-final", + "type": "build" + }, "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", - "Microsoft.AspNetCore.Mvc": "1.0.0", - "Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0", - "Microsoft.AspNetCore.Server.Kestrel": "1.0.0", + "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", "Microsoft.AspNetCore.StaticFiles": "1.0.0", - "Microsoft.Extensions.Configuration.Json": "1.0.0", - "Microsoft.Extensions.Logging.Console": "1.0.0", - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.Extensions.Logging.Debug": "1.0.0", "Microsoft.EntityFrameworkCore.SQLite": "1.0.0", - "Microsoft.AspNetCore.AngularServices": "1.0.0-*", - "AutoMapper": "5.0.2" + "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", + "Microsoft.Extensions.Configuration.Json": "1.0.0", + "Microsoft.Extensions.Configuration.CommandLine": "1.0.0", + "Microsoft.Extensions.Logging": "1.0.0", + "Microsoft.Extensions.Logging.Console": "1.0.0", + "Microsoft.Extensions.Logging.Debug": "1.0.0", + "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", + "AutoMapper": "5.0.2" }, + + "tools": { + "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final", + "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final", + "Microsoft.DotNet.Watcher.Tools": "1.0.0-preview2-final" + }, + "frameworks": { "netcoreapp1.0": { "imports": [ "dotnet5.6", - "dnxcore50", "portable-net45+win8" ] } }, + "publishOptions": { - "exclude": [ + "include": [ + "appsettings.json", + "ClientApp", "node_modules", - "bower_components", - "**.xproj", - "**.user", - "**.vspscc" + "typings", + "Views", + "tsconfig.json", + "tsd.json", + "web.config", + "webpack.*.js", + "wwwroot" ] }, "scripts": { - "prepublish": [ "npm install" ], + "prepublish": [ + "npm install", + "gulp" + ], "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ] } }