diff --git a/NodeServices.sln b/NodeServices.sln index 50c6f03f84..e8d88be610 100644 --- a/NodeServices.sln +++ b/NodeServices.sln @@ -5,7 +5,7 @@ VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{E6E88944-4800-40BA-8AF5-069EA3ADFEB8}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.NodeServices", "src\Microsoft.AspNet.NodeServices\Microsoft.AspNet.NodeServices.xproj", "{B0FA4175-8B29-4904-9780-28B3C24B0567}" +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.NodeServices", "src\Microsoft.AspNetCore.NodeServices\Microsoft.AspNetCore.NodeServices.xproj", "{B0FA4175-8B29-4904-9780-28B3C24B0567}" EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ES2015Transpilation", "samples\misc\ES2015Transpilation\ES2015Transpilation.xproj", "{6D4BCDD6-7951-449B-BE55-CB7F014B7430}" EndProject @@ -18,11 +18,11 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "MusicStore", "samples\angul EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ReactGrid", "samples\react\ReactGrid\ReactGrid.xproj", "{ABF90A5B-F4E0-438C-A6E4-9549FB43690B}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.AngularServices", "src\Microsoft.AspNet.AngularServices\Microsoft.AspNet.AngularServices.xproj", "{421807E6-B62C-417B-B901-46C5DEDAA8F1}" +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.AngularServices", "src\Microsoft.AspNetCore.AngularServices\Microsoft.AspNetCore.AngularServices.xproj", "{421807E6-B62C-417B-B901-46C5DEDAA8F1}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.ReactServices", "src\Microsoft.AspNet.ReactServices\Microsoft.AspNet.ReactServices.xproj", "{B04381DE-991F-4831-A0B5-FE1BD3EF80C4}" +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.ReactServices", "src\Microsoft.AspNetCore.ReactServices\Microsoft.AspNetCore.ReactServices.xproj", "{B04381DE-991F-4831-A0B5-FE1BD3EF80C4}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.SpaServices", "src\Microsoft.AspNet.SpaServices\Microsoft.AspNet.SpaServices.xproj", "{4624F728-6DFF-44B6-93B5-3C7D9C94BF3F}" +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.SpaServices", "src\Microsoft.AspNetCore.SpaServices\Microsoft.AspNetCore.SpaServices.xproj", "{4624F728-6DFF-44B6-93B5-3C7D9C94BF3F}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Templates", "Templates", "{727E6D58-6830-4792-96C6-E138A33959FB}" EndProject diff --git a/README.md b/README.md index f6aea665da..97162f371f 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ This project is part of ASP.NET Core. You can find samples, documentation and ge ## What is this? -This repo hosts sources for the `Microsoft.AspNet.AngularServices` and `Microsoft.AspNet.ReactServices` packages, along with samples and the underlying `Microsoft.AspNet.NodeServices` project. +This repo hosts sources for the `Microsoft.AspNetCore.AngularServices` and `Microsoft.AspNetCore.ReactServices` packages, along with samples and the underlying `Microsoft.AspNetCore.NodeServices project`. -#### `Microsoft.AspNet.AngularServices` +#### `Microsoft.AspNetCore.AngularServices` This package provides facilities for developers building Angular 2 applications on ASP.NET. @@ -20,7 +20,7 @@ A sample is included in this repo. We are also working with the Angular team to add support for other client+server features such as cache priming, so that the client-side SPA code does not need to wait for an initial set of ajax requests to complete - the necessary data can be bundled with the initial page. Another possible future feature would be helpers to emit a JSON representation of C# class model metadata, so some validation rules can transparently apply both on the server and the client. -#### `Microsoft.AspNet.ReactServices` +#### `Microsoft.AspNetCore.ReactServices` This package provides similar facilities for React applications on ASP.NET. @@ -32,7 +32,7 @@ We are open to adding other client+server features that will make React develope Although we have finite resources and are currently focused on adding Angular 2 and React support, the architecture here is designed so that you can build your own server-side support for other client-side libraries and frameworks. -The underlying `Microsoft.AspNet.NodeServices` package is a general-purpose way for ASP.NET applications (or .NET applications more generally) to interoperate with code running inside Node.js. That's how `AngularServices`/`ReactServices` server-side rendering works - those packages transparently spin up Node.js instances that can perform the server-side rendering. Any code that runs inside Node can efficiently be invoked from .NET via this package, which takes care of starting and stopping Node instances and manages the communication between .NET and Node. +The underlying `Microsoft.AspNetCore.NodeServices` package is a general-purpose way for ASP.NET applications (or .NET applications more generally) to interoperate with code running inside Node.js. That's how `AngularServices`/`ReactServices` server-side rendering works - those packages transparently spin up Node.js instances that can perform the server-side rendering. Any code that runs inside Node can efficiently be invoked from .NET via this package, which takes care of starting and stopping Node instances and manages the communication between .NET and Node. ## Using AngularServices/ReactServices in your own projects diff --git a/samples/angular/MusicStore/Startup.cs b/samples/angular/MusicStore/Startup.cs index 76bb747245..c0dd2054b4 100755 --- a/samples/angular/MusicStore/Startup.cs +++ b/samples/angular/MusicStore/Startup.cs @@ -36,10 +36,6 @@ namespace MusicStore .AddEntityFrameworkStores() .AddDefaultTokenProviders(); - // Uncomment the following line to add Web API services which makes it easier to port Web API 2 controllers. - // You will also need to add the Microsoft.AspNet.Mvc.WebApiCompatShim package to the 'dependencies' section of project.json. - // services.AddWebApiConventions(); - // Configure Auth services.Configure(options => { diff --git a/samples/angular/MusicStore/Views/_ViewImports.cshtml b/samples/angular/MusicStore/Views/_ViewImports.cshtml index d5abf1333d..3e7a43a302 100755 --- a/samples/angular/MusicStore/Views/_ViewImports.cshtml +++ b/samples/angular/MusicStore/Views/_ViewImports.cshtml @@ -1,4 +1,4 @@ @using MusicStore -@using Microsoft.AspNet.AngularServices +@using Microsoft.AspNetCore.AngularServices @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/samples/angular/MusicStore/project.json b/samples/angular/MusicStore/project.json index b74d48a147..b15a67e73e 100755 --- a/samples/angular/MusicStore/project.json +++ b/samples/angular/MusicStore/project.json @@ -22,11 +22,11 @@ "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", "Microsoft.EntityFrameworkCore.SQLite": "1.0.0-*", - "Microsoft.AspNet.AngularServices": "1.0.0-*", + "Microsoft.AspNetCore.AngularServices": "1.0.0-*", "AutoMapper": "4.1.1" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { "netstandardapp1.5": { diff --git a/samples/misc/ES2015Transpilation/Startup.cs b/samples/misc/ES2015Transpilation/Startup.cs index 0156b8317c..7c6fbaef34 100755 --- a/samples/misc/ES2015Transpilation/Startup.cs +++ b/samples/misc/ES2015Transpilation/Startup.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.NodeServices; +using Microsoft.AspNetCore.NodeServices; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System.IO; diff --git a/samples/misc/ES2015Transpilation/project.json b/samples/misc/ES2015Transpilation/project.json index e01c5b2c90..eb224aecf4 100755 --- a/samples/misc/ES2015Transpilation/project.json +++ b/samples/misc/ES2015Transpilation/project.json @@ -20,7 +20,7 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.NodeServices": "1.0.0-*" + "Microsoft.AspNetCore.NodeServices": "1.0.0-*" }, "frameworks": { "dnx451": {}, diff --git a/samples/misc/Webpack/Startup.cs b/samples/misc/Webpack/Startup.cs index 443946f806..15d11f675f 100755 --- a/samples/misc/Webpack/Startup.cs +++ b/samples/misc/Webpack/Startup.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System.IO; diff --git a/samples/misc/Webpack/project.json b/samples/misc/Webpack/project.json index 66cff29982..4ad392e58d 100755 --- a/samples/misc/Webpack/project.json +++ b/samples/misc/Webpack/project.json @@ -20,11 +20,11 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.SpaServices": "1.0.0-*" + "Microsoft.AspNetCore.SpaServices": "1.0.0-*" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { diff --git a/samples/react/MusicStore/Startup.cs b/samples/react/MusicStore/Startup.cs index e5311f82bf..94e2e1d5fd 100755 --- a/samples/react/MusicStore/Startup.cs +++ b/samples/react/MusicStore/Startup.cs @@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.Configuration; @@ -37,10 +37,6 @@ namespace MusicStore .AddEntityFrameworkStores() .AddDefaultTokenProviders(); - // Uncomment the following line to add Web API services which makes it easier to port Web API 2 controllers. - // You will also need to add the Microsoft.AspNet.Mvc.WebApiCompatShim package to the 'dependencies' section of project.json. - // services.AddWebApiConventions(); - // Configure Auth services.Configure(options => { diff --git a/samples/react/MusicStore/Views/_ViewImports.cshtml b/samples/react/MusicStore/Views/_ViewImports.cshtml index 191e16246d..173029286a 100755 --- a/samples/react/MusicStore/Views/_ViewImports.cshtml +++ b/samples/react/MusicStore/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ @using MusicStore @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/samples/react/MusicStore/project.json b/samples/react/MusicStore/project.json index 9064551398..6c1d18aab1 100755 --- a/samples/react/MusicStore/project.json +++ b/samples/react/MusicStore/project.json @@ -22,12 +22,12 @@ "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", "Microsoft.EntityFrameworkCore.SQLite": "1.0.0-*", - "Microsoft.AspNet.ReactServices": "1.0.0-*", + "Microsoft.AspNetCore.ReactServices": "1.0.0-*", "AutoMapper": "4.1.1" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { diff --git a/samples/react/ReactGrid/Startup.cs b/samples/react/ReactGrid/Startup.cs index 33149ca8c4..1cb9501bab 100755 --- a/samples/react/ReactGrid/Startup.cs +++ b/samples/react/ReactGrid/Startup.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Serialization; diff --git a/samples/react/ReactGrid/Views/_ViewImports.cshtml b/samples/react/ReactGrid/Views/_ViewImports.cshtml index 5b5b5c3c00..30438849dd 100755 --- a/samples/react/ReactGrid/Views/_ViewImports.cshtml +++ b/samples/react/ReactGrid/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ @using ReactExample @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/samples/react/ReactGrid/project.json b/samples/react/ReactGrid/project.json index 5f9823a189..5ea0489220 100755 --- a/samples/react/ReactGrid/project.json +++ b/samples/react/ReactGrid/project.json @@ -16,10 +16,10 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.ReactServices": "1.0.0-*" + "Microsoft.AspNetCore.ReactServices": "1.0.0-*" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { "dnx451": {}, diff --git a/src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNet.AngularServices.xproj b/src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNetCore.AngularServices.xproj similarity index 93% rename from src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNet.AngularServices.xproj rename to src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNetCore.AngularServices.xproj index 82193b4aec..b037b32766 100644 --- a/src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNet.AngularServices.xproj +++ b/src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNetCore.AngularServices.xproj @@ -7,7 +7,7 @@ 421807e6-b62c-417b-b901-46c5dedaa8f1 - Microsoft.AspNet.AngularServices + Microsoft.AspNetCore.AngularServices ..\artifacts\obj\$(MSBuildProjectName) ..\artifacts\bin\$(MSBuildProjectName)\ diff --git a/src/Microsoft.AspNetCore.AngularServices/PrimeCacheHelper.cs b/src/Microsoft.AspNetCore.AngularServices/PrimeCacheHelper.cs index b8029191f1..48fdeca330 100644 --- a/src/Microsoft.AspNetCore.AngularServices/PrimeCacheHelper.cs +++ b/src/Microsoft.AspNetCore.AngularServices/PrimeCacheHelper.cs @@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -namespace Microsoft.AspNet.AngularServices { +namespace Microsoft.AspNetCore.AngularServices { public static class PrimeCacheHelper { public static async Task PrimeCache(this IHtmlHelper html, string url) { // TODO: Consider deduplicating the PrimeCache calls (that is, if there are multiple requests to precache diff --git a/src/Microsoft.AspNetCore.AngularServices/npm/package.json b/src/Microsoft.AspNetCore.AngularServices/npm/package.json index 471f8c27a8..8f7c19ed38 100644 --- a/src/Microsoft.AspNetCore.AngularServices/npm/package.json +++ b/src/Microsoft.AspNetCore.AngularServices/npm/package.json @@ -7,10 +7,6 @@ "test": "echo \"Error: no test specified\" && exit 1", "prepublish": "tsd install && tsc && node build.js" }, - "repository": { - "type": "git", - "url": "https://github.com/aspnet/NodeServices/tree/master/Microsoft.AspNet.AngularServices" - }, "typings": "dist/Exports", "author": "Microsoft", "license": "Apache-2.0", diff --git a/src/Microsoft.AspNetCore.AngularServices/project.json b/src/Microsoft.AspNetCore.AngularServices/project.json index 137ef58a66..7cafda32fd 100644 --- a/src/Microsoft.AspNetCore.AngularServices/project.json +++ b/src/Microsoft.AspNetCore.AngularServices/project.json @@ -1,6 +1,6 @@ { "version": "1.0.0-*", - "description": "Helpers for building Angular 2 applications on ASP.NET 5.", + "description": "Helpers for building Angular 2 applications on ASP.NET Core.", "compilationOptions": { "keyFile": "../../tools/Key.snk" }, @@ -10,7 +10,7 @@ "url": "git://github.com/aspnet/nodeservices" }, "tooling": { - "defaultNamespace": "Microsoft.AspNet.AngularServices" + "defaultNamespace": "Microsoft.AspNetCore.AngularServices" }, "frameworks": { "dnx451": {}, @@ -26,7 +26,7 @@ }, "dependencies": { "Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*", - "Microsoft.AspNet.NodeServices": "1.0.0-*", - "Microsoft.AspNet.SpaServices": "1.0.0-*" + "Microsoft.AspNetCore.NodeServices": "1.0.0-*", + "Microsoft.AspNetCore.SpaServices": "1.0.0-*" } } diff --git a/src/Microsoft.AspNetCore.NodeServices/Configuration.cs b/src/Microsoft.AspNetCore.NodeServices/Configuration.cs index 415ca5d360..5d85d07dfc 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Configuration.cs +++ b/src/Microsoft.AspNetCore.NodeServices/Configuration.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.PlatformAbstractions; using Microsoft.AspNetCore.Hosting; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { public static class Configuration { private readonly static string[] defaultWatchFileExtensions = new[] { ".js", ".jsx", ".ts", ".tsx", ".json", ".html" }; private readonly static NodeServicesOptions defaultOptions = new NodeServicesOptions { diff --git a/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js b/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js index d50e501fc2..abd95406e4 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js +++ b/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js @@ -52,10 +52,10 @@ var server = http.createServer(function(req, res) { server.listen(requestedPortOrZero, 'localhost', function () { // Signal to HttpNodeHost which port it should make its HTTP connections on - console.log('[Microsoft.AspNet.NodeServices.HttpNodeHost:Listening on port ' + server.address().port + '\]'); + console.log('[Microsoft.AspNetCore.NodeServices.HttpNodeHost:Listening on port ' + server.address().port + '\]'); // Signal to the NodeServices base class that we're ready to accept invocations - console.log('[Microsoft.AspNet.NodeServices:Listening]'); + console.log('[Microsoft.AspNetCore.NodeServices:Listening]'); }); function readRequestBodyAsJson(request, callback) { diff --git a/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-stream.js b/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-stream.js index fc9869cf11..9d9e792d74 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-stream.js +++ b/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-stream.js @@ -20,4 +20,4 @@ readline.createInterface({ input: process.stdin }).on('line', function (message) } }); -console.log('[Microsoft.AspNet.NodeServices:Listening]'); // The .NET app waits for this signal before sending any invocations +console.log('[Microsoft.AspNetCore.NodeServices:Listening]'); // The .NET app waits for this signal before sending any invocations diff --git a/src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs b/src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs index 811e7bfc6b..4671740cf9 100644 --- a/src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs +++ b/src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs @@ -7,9 +7,9 @@ using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { internal class HttpNodeInstance : OutOfProcessNodeInstance { - private readonly static Regex PortMessageRegex = new Regex(@"^\[Microsoft.AspNet.NodeServices.HttpNodeHost:Listening on port (\d+)\]$"); + private readonly static Regex PortMessageRegex = new Regex(@"^\[Microsoft.AspNetCore.NodeServices.HttpNodeHost:Listening on port (\d+)\]$"); private readonly static JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() diff --git a/src/Microsoft.AspNetCore.NodeServices/HostingModels/InputOutputStreamNodeInstance.cs b/src/Microsoft.AspNetCore.NodeServices/HostingModels/InputOutputStreamNodeInstance.cs index a7fde794c6..3f27acda37 100644 --- a/src/Microsoft.AspNetCore.NodeServices/HostingModels/InputOutputStreamNodeInstance.cs +++ b/src/Microsoft.AspNetCore.NodeServices/HostingModels/InputOutputStreamNodeInstance.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { // This is just to demonstrate that other transports are possible. This implementation is extremely // dubious - if the Node-side code fails to conform to the expected protocol in any way (e.g., has an // error), then it will just hang forever. So don't use this. diff --git a/src/Microsoft.AspNetCore.NodeServices/HostingModels/NodeInvocationInfo.cs b/src/Microsoft.AspNetCore.NodeServices/HostingModels/NodeInvocationInfo.cs index 682877f47e..a4fde64abb 100644 --- a/src/Microsoft.AspNetCore.NodeServices/HostingModels/NodeInvocationInfo.cs +++ b/src/Microsoft.AspNetCore.NodeServices/HostingModels/NodeInvocationInfo.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { public class NodeInvocationInfo { public string ModuleName; diff --git a/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs b/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs index 2e2559b0e9..fe3386a6b6 100644 --- a/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs +++ b/src/Microsoft.AspNetCore.NodeServices/HostingModels/OutOfProcessNodeInstance.cs @@ -3,7 +3,7 @@ using System.Diagnostics; using System.IO; using System.Threading.Tasks; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { /** * Class responsible for launching the Node child process, determining when it is ready to accept invocations, * and finally killing it when the parent process exits. Also it restarts the child process if it dies. @@ -91,7 +91,7 @@ namespace Microsoft.AspNet.NodeServices { this._nodeProcessIsReadySource = new TaskCompletionSource(); this._nodeProcess.OutputDataReceived += (sender, evt) => { - if (evt.Data == "[Microsoft.AspNet.NodeServices:Listening]" && !initializationIsCompleted) { + if (evt.Data == "[Microsoft.AspNetCore.NodeServices:Listening]" && !initializationIsCompleted) { this._nodeProcessIsReadySource.SetResult(true); initializationIsCompleted = true; } else if (evt.Data != null) { diff --git a/src/Microsoft.AspNetCore.NodeServices/INodeInstance.cs b/src/Microsoft.AspNetCore.NodeServices/INodeInstance.cs index 3889808654..fae73db4c2 100644 --- a/src/Microsoft.AspNetCore.NodeServices/INodeInstance.cs +++ b/src/Microsoft.AspNetCore.NodeServices/INodeInstance.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { public interface INodeServices : IDisposable { Task Invoke(string moduleName, params object[] args); diff --git a/src/Microsoft.AspNetCore.NodeServices/Microsoft.AspNet.NodeServices.xproj b/src/Microsoft.AspNetCore.NodeServices/Microsoft.AspNetCore.NodeServices.xproj similarity index 94% rename from src/Microsoft.AspNetCore.NodeServices/Microsoft.AspNet.NodeServices.xproj rename to src/Microsoft.AspNetCore.NodeServices/Microsoft.AspNetCore.NodeServices.xproj index a6fbcbe4ac..49e7ca7e42 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Microsoft.AspNet.NodeServices.xproj +++ b/src/Microsoft.AspNetCore.NodeServices/Microsoft.AspNetCore.NodeServices.xproj @@ -7,7 +7,7 @@ b0fa4175-8b29-4904-9780-28b3c24b0567 - Microsoft.AspNet.NodeServices + Microsoft.AspNetCore.NodeServices ..\NodeServices.sln\artifacts\obj\$(MSBuildProjectName) ..\NodeServices.sln\artifacts\bin\$(MSBuildProjectName)\ diff --git a/src/Microsoft.AspNetCore.NodeServices/NodeHostingModel.cs b/src/Microsoft.AspNetCore.NodeServices/NodeHostingModel.cs index 682c910b6f..b363631f53 100644 --- a/src/Microsoft.AspNetCore.NodeServices/NodeHostingModel.cs +++ b/src/Microsoft.AspNetCore.NodeServices/NodeHostingModel.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { public enum NodeHostingModel { Http, InputOutputStream, diff --git a/src/Microsoft.AspNetCore.NodeServices/Util/EmbeddedResourceReader.cs b/src/Microsoft.AspNetCore.NodeServices/Util/EmbeddedResourceReader.cs index 6e400941e8..73fe29ea9a 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Util/EmbeddedResourceReader.cs +++ b/src/Microsoft.AspNetCore.NodeServices/Util/EmbeddedResourceReader.cs @@ -2,7 +2,7 @@ using System; using System.IO; using System.Reflection; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { public static class EmbeddedResourceReader { public static string Read(Type assemblyContainingType, string path) { var asm = assemblyContainingType.GetTypeInfo().Assembly; diff --git a/src/Microsoft.AspNetCore.NodeServices/Util/StringAsTempFile.cs b/src/Microsoft.AspNetCore.NodeServices/Util/StringAsTempFile.cs index 34788a6a76..bfcb333d17 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Util/StringAsTempFile.cs +++ b/src/Microsoft.AspNetCore.NodeServices/Util/StringAsTempFile.cs @@ -1,7 +1,7 @@ using System; using System.IO; -namespace Microsoft.AspNet.NodeServices { +namespace Microsoft.AspNetCore.NodeServices { // Makes it easier to pass script files to Node in a way that's sure to clean up after the process exits public sealed class StringAsTempFile : IDisposable { public string FileName { get; private set; } diff --git a/src/Microsoft.AspNetCore.NodeServices/project.json b/src/Microsoft.AspNetCore.NodeServices/project.json index b9d590fee8..1ee10f0c92 100644 --- a/src/Microsoft.AspNetCore.NodeServices/project.json +++ b/src/Microsoft.AspNetCore.NodeServices/project.json @@ -1,6 +1,6 @@ { "version": "1.0.0-*", - "description": "Invoke Node.js modules at runtime in ASP.NET 5 applications.", + "description": "Invoke Node.js modules at runtime in ASP.NET Core applications.", "compilationOptions": { "keyFile": "../../tools/Key.snk" }, diff --git a/src/Microsoft.AspNetCore.ReactServices/Microsoft.AspNet.ReactServices.xproj b/src/Microsoft.AspNetCore.ReactServices/Microsoft.AspNetCore.ReactServices.xproj similarity index 93% rename from src/Microsoft.AspNetCore.ReactServices/Microsoft.AspNet.ReactServices.xproj rename to src/Microsoft.AspNetCore.ReactServices/Microsoft.AspNetCore.ReactServices.xproj index 730b6cfed0..0f5427654f 100644 --- a/src/Microsoft.AspNetCore.ReactServices/Microsoft.AspNet.ReactServices.xproj +++ b/src/Microsoft.AspNetCore.ReactServices/Microsoft.AspNetCore.ReactServices.xproj @@ -7,7 +7,7 @@ b04381de-991f-4831-a0b5-fe1bd3ef80c4 - Microsoft.AspNet.ReactServices + Microsoft.AspNetCore.ReactServices ..\artifacts\obj\$(MSBuildProjectName) ..\artifacts\bin\$(MSBuildProjectName)\ diff --git a/src/Microsoft.AspNetCore.ReactServices/project.json b/src/Microsoft.AspNetCore.ReactServices/project.json index fd3c7d6ae0..1033e187b3 100644 --- a/src/Microsoft.AspNetCore.ReactServices/project.json +++ b/src/Microsoft.AspNetCore.ReactServices/project.json @@ -1,6 +1,6 @@ { "version": "1.0.0-*", - "description": "Helpers for building React applications on ASP.NET 5.", + "description": "Helpers for building React applications on ASP.NET Core.", "compilationOptions": { "keyFile": "../../tools/Key.snk" }, @@ -10,12 +10,12 @@ "url": "git://github.com/aspnet/nodeservices" }, "tooling": { - "defaultNamespace": "Microsoft.AspNet.ReactServices" + "defaultNamespace": "Microsoft.AspNetCore.ReactServices" }, "dependencies": { "Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*", - "Microsoft.AspNet.NodeServices": "1.0.0-*", - "Microsoft.AspNet.SpaServices": "1.0.0-*" + "Microsoft.AspNetCore.NodeServices": "1.0.0-*", + "Microsoft.AspNetCore.SpaServices": "1.0.0-*" }, "frameworks": { "dnx451": {}, diff --git a/src/Microsoft.AspNetCore.SpaServices/Microsoft.AspNet.SpaServices.xproj b/src/Microsoft.AspNetCore.SpaServices/Microsoft.AspNetCore.SpaServices.xproj similarity index 94% rename from src/Microsoft.AspNetCore.SpaServices/Microsoft.AspNet.SpaServices.xproj rename to src/Microsoft.AspNetCore.SpaServices/Microsoft.AspNetCore.SpaServices.xproj index cada1c1ed8..99a66bae65 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Microsoft.AspNet.SpaServices.xproj +++ b/src/Microsoft.AspNetCore.SpaServices/Microsoft.AspNetCore.SpaServices.xproj @@ -7,7 +7,7 @@ 4624f728-6dff-44b6-93b5-3c7d9c94bf3f - Microsoft.AspNet.SpaServices + Microsoft.AspNetCore.SpaServices ..\artifacts\obj\$(MSBuildProjectName) ..\artifacts\bin\$(MSBuildProjectName)\ diff --git a/src/Microsoft.AspNetCore.SpaServices/Prerendering/PrerenderTagHelper.cs b/src/Microsoft.AspNetCore.SpaServices/Prerendering/PrerenderTagHelper.cs index d8b012e68e..ee07d6f413 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Prerendering/PrerenderTagHelper.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Prerendering/PrerenderTagHelper.cs @@ -6,12 +6,12 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Mvc.Rendering; -using Microsoft.AspNet.NodeServices; +using Microsoft.AspNetCore.NodeServices; using Microsoft.AspNetCore.Razor.TagHelpers; using Microsoft.Extensions.PlatformAbstractions; using Newtonsoft.Json; -namespace Microsoft.AspNet.SpaServices.Prerendering +namespace Microsoft.AspNetCore.SpaServices.Prerendering { [HtmlTargetElement(Attributes = PrerenderModuleAttributeName)] public class PrerenderTagHelper : TagHelper diff --git a/src/Microsoft.AspNetCore.SpaServices/Prerendering/Prerenderer.cs b/src/Microsoft.AspNetCore.SpaServices/Prerendering/Prerenderer.cs index 0e2f974a58..287d547575 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Prerendering/Prerenderer.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Prerendering/Prerenderer.cs @@ -1,9 +1,9 @@ using System; using System.Threading.Tasks; -using Microsoft.AspNet.NodeServices; +using Microsoft.AspNetCore.NodeServices; using Newtonsoft.Json.Linq; -namespace Microsoft.AspNet.SpaServices.Prerendering +namespace Microsoft.AspNetCore.SpaServices.Prerendering { public static class Prerenderer { diff --git a/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteConstraint.cs b/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteConstraint.cs index 4d4c6c3bf1..00243d6663 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteConstraint.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteConstraint.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; -namespace Microsoft.AspNet.SpaServices +namespace Microsoft.AspNetCore.SpaServices { internal class SpaRouteConstraint : IRouteConstraint { diff --git a/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteExtensions.cs b/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteExtensions.cs index ac7c02713c..192c8394e3 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteExtensions.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Routing/SpaRouteExtensions.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using Microsoft.AspNetCore.Routing; -using Microsoft.AspNet.SpaServices; +using Microsoft.AspNetCore.SpaServices; // Putting in this namespace so it's always available whenever MapRoute is namespace Microsoft.AspNetCore.Builder diff --git a/src/Microsoft.AspNetCore.SpaServices/Webpack/ConditionalProxyMiddleware.cs b/src/Microsoft.AspNetCore.SpaServices/Webpack/ConditionalProxyMiddleware.cs index 65754094a5..8c82a8f789 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Webpack/ConditionalProxyMiddleware.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Webpack/ConditionalProxyMiddleware.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -namespace Microsoft.AspNet.SpaServices.Webpack +namespace Microsoft.AspNetCore.SpaServices.Webpack { // Based on https://github.com/aspnet/Proxy/blob/dev/src/Microsoft.AspNetCore.Proxy/ProxyMiddleware.cs // Differs in that, if the proxied request returns a 404, we pass through to the next middleware in the chain diff --git a/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs b/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs index fe0b97c3d8..dd8a1887b8 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddleware.cs @@ -1,8 +1,8 @@ using System; using System.IO; using System.Threading.Tasks; -using Microsoft.AspNet.NodeServices; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.NodeServices; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.PlatformAbstractions; @@ -55,7 +55,7 @@ namespace Microsoft.AspNetCore.Builder appBuilder.UseMiddleware(devServerInfo.PublicPath, proxyOptions); // While it would be nice to proxy the /__webpack_hmr requests too, these return an EventStream, - // and the Microsoft.Aspnet.Proxy code doesn't handle that entirely - it throws an exception after + // and the Microsoft.AspNetCore.Proxy code doesn't handle that entirely - it throws an exception after // a while. So, just serve a 302 for those. appBuilder.Map(WebpackHotMiddlewareEndpoint, builder => { builder.Use(next => async ctx => { diff --git a/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddlewareOptions.cs b/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddlewareOptions.cs index b74f82d13e..020589a75b 100644 --- a/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddlewareOptions.cs +++ b/src/Microsoft.AspNetCore.SpaServices/Webpack/WebpackDevMiddlewareOptions.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNet.SpaServices.Webpack { +namespace Microsoft.AspNetCore.SpaServices.Webpack { public class WebpackDevMiddlewareOptions { public bool HotModuleReplacement { get; set; } public bool ReactHotModuleReplacement { get; set; } diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/README.md b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/README.md index e459de765e..30cdc0c29f 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/README.md +++ b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/README.md @@ -1,6 +1,6 @@ # Not for general use -This NPM package is an internal implementation detail of the `Microsoft.AspNet.SpaServices` NuGet package. +This NPM package is an internal implementation detail of the `Microsoft.AspNetCore.SpaServices` NuGet package. You should not use this package directly in your own applications, because it is not supported, and there are no guarantees about how its APIs will change in the future. diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/package.json b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/package.json index 7edc0b31f5..186f11ed99 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/package.json +++ b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/package.json @@ -1,7 +1,7 @@ { "name": "aspnet-prerendering", "version": "1.0.1", - "description": "Helpers for server-side rendering of JavaScript applications in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.", + "description": "Helpers for server-side rendering of JavaScript applications in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "main": "index.js", "scripts": { "prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'", diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/README.md b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/README.md index e459de765e..30cdc0c29f 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/README.md +++ b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/README.md @@ -1,6 +1,6 @@ # Not for general use -This NPM package is an internal implementation detail of the `Microsoft.AspNet.SpaServices` NuGet package. +This NPM package is an internal implementation detail of the `Microsoft.AspNetCore.SpaServices` NuGet package. You should not use this package directly in your own applications, because it is not supported, and there are no guarantees about how its APIs will change in the future. diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/package.json b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/package.json index 3c4c94ead7..419c058684 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/package.json +++ b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/package.json @@ -1,7 +1,7 @@ { "name": "aspnet-webpack-react", "version": "1.0.1", - "description": "Helpers for using Webpack with React in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.", + "description": "Helpers for using Webpack with React in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "main": "index.js", "scripts": { "prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'", diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/README.md b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/README.md index e459de765e..30cdc0c29f 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/README.md +++ b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/README.md @@ -1,6 +1,6 @@ # Not for general use -This NPM package is an internal implementation detail of the `Microsoft.AspNet.SpaServices` NuGet package. +This NPM package is an internal implementation detail of the `Microsoft.AspNetCore.SpaServices` NuGet package. You should not use this package directly in your own applications, because it is not supported, and there are no guarantees about how its APIs will change in the future. diff --git a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json index 6a8a527ae6..b919303b29 100644 --- a/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json +++ b/src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json @@ -1,7 +1,7 @@ { "name": "aspnet-webpack", "version": "1.0.3", - "description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.", + "description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "main": "index.js", "scripts": { "prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'", diff --git a/src/Microsoft.AspNetCore.SpaServices/project.json b/src/Microsoft.AspNetCore.SpaServices/project.json index 178d6cd141..1b46454a97 100644 --- a/src/Microsoft.AspNetCore.SpaServices/project.json +++ b/src/Microsoft.AspNetCore.SpaServices/project.json @@ -1,6 +1,6 @@ { "version": "1.0.0-*", - "description": "Microsoft.AspNet.SpaServices", + "description": "Helpers for building single-page applications on ASP.NET Core", "compilationOptions": { "keyFile": "../../tools/Key.snk" }, @@ -15,7 +15,7 @@ "dependencies": { "Microsoft.AspNetCore.Mvc": "1.0.0-*", "Microsoft.AspNetCore.Routing": "1.0.0-*", - "Microsoft.AspNet.NodeServices": "1.0.0-*" + "Microsoft.AspNetCore.NodeServices": "1.0.0-*" }, "frameworks": { "dnx451": {}, diff --git a/templates/Angular2Spa/Startup.cs b/templates/Angular2Spa/Startup.cs index ce8338c8d2..fa501625a3 100755 --- a/templates/Angular2Spa/Startup.cs +++ b/templates/Angular2Spa/Startup.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Serialization; diff --git a/templates/Angular2Spa/Views/_ViewImports.cshtml b/templates/Angular2Spa/Views/_ViewImports.cshtml index 5ece85f7d9..e7b4f83fd1 100755 --- a/templates/Angular2Spa/Views/_ViewImports.cshtml +++ b/templates/Angular2Spa/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ @using WebApplicationBasic @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/templates/Angular2Spa/project.json b/templates/Angular2Spa/project.json index cfa9aa8c0c..d6eb5a50ad 100755 --- a/templates/Angular2Spa/project.json +++ b/templates/Angular2Spa/project.json @@ -20,11 +20,11 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.AngularServices": "1.0.0-*" + "Microsoft.AspNetCore.AngularServices": "1.0.0-*" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { diff --git a/templates/KnockoutSpa/Startup.cs b/templates/KnockoutSpa/Startup.cs index ce8338c8d2..fa501625a3 100755 --- a/templates/KnockoutSpa/Startup.cs +++ b/templates/KnockoutSpa/Startup.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Serialization; diff --git a/templates/KnockoutSpa/Views/_ViewImports.cshtml b/templates/KnockoutSpa/Views/_ViewImports.cshtml index 5ece85f7d9..e7b4f83fd1 100755 --- a/templates/KnockoutSpa/Views/_ViewImports.cshtml +++ b/templates/KnockoutSpa/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ @using WebApplicationBasic @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/templates/KnockoutSpa/project.json b/templates/KnockoutSpa/project.json index b6e13ac629..552843b120 100755 --- a/templates/KnockoutSpa/project.json +++ b/templates/KnockoutSpa/project.json @@ -20,11 +20,11 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.SpaServices": "1.0.0-*" + "Microsoft.AspNetCore.SpaServices": "1.0.0-*" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { diff --git a/templates/ReactReduxSpa/Startup.cs b/templates/ReactReduxSpa/Startup.cs index 8cd0bfcfc9..77f13babfb 100755 --- a/templates/ReactReduxSpa/Startup.cs +++ b/templates/ReactReduxSpa/Startup.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Serialization; diff --git a/templates/ReactReduxSpa/Views/_ViewImports.cshtml b/templates/ReactReduxSpa/Views/_ViewImports.cshtml index 5ece85f7d9..e7b4f83fd1 100755 --- a/templates/ReactReduxSpa/Views/_ViewImports.cshtml +++ b/templates/ReactReduxSpa/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ @using WebApplicationBasic @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/templates/ReactReduxSpa/project.json b/templates/ReactReduxSpa/project.json index 1397e76462..90b88977bc 100755 --- a/templates/ReactReduxSpa/project.json +++ b/templates/ReactReduxSpa/project.json @@ -20,11 +20,11 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.ReactServices": "1.0.0-*" + "Microsoft.AspNetCore.ReactServices": "1.0.0-*" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { diff --git a/templates/ReactSpa/Startup.cs b/templates/ReactSpa/Startup.cs index 8cd0bfcfc9..77f13babfb 100755 --- a/templates/ReactSpa/Startup.cs +++ b/templates/ReactSpa/Startup.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNet.SpaServices.Webpack; +using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Serialization; diff --git a/templates/ReactSpa/Views/_ViewImports.cshtml b/templates/ReactSpa/Views/_ViewImports.cshtml index 5ece85f7d9..e7b4f83fd1 100755 --- a/templates/ReactSpa/Views/_ViewImports.cshtml +++ b/templates/ReactSpa/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ @using WebApplicationBasic @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" -@addTagHelper "*, Microsoft.AspNet.SpaServices" +@addTagHelper "*, Microsoft.AspNetCore.SpaServices" diff --git a/templates/ReactSpa/project.json b/templates/ReactSpa/project.json index 1397e76462..90b88977bc 100755 --- a/templates/ReactSpa/project.json +++ b/templates/ReactSpa/project.json @@ -20,11 +20,11 @@ "Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.NETCore.Platforms": "1.0.1-*", "Microsoft.Extensions.Logging.Debug": "1.0.0-*", - "Microsoft.AspNet.ReactServices": "1.0.0-*" + "Microsoft.AspNetCore.ReactServices": "1.0.0-*" }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": { diff --git a/templates/WebApplicationBasic/project.json b/templates/WebApplicationBasic/project.json index c3c9614982..793a0c0ed3 100755 --- a/templates/WebApplicationBasic/project.json +++ b/templates/WebApplicationBasic/project.json @@ -23,7 +23,7 @@ }, "commands": { - "web": "Microsoft.AspNet.Server.Kestrel" + "web": "Microsoft.AspNetCore.Server.Kestrel" }, "frameworks": {