Skip to content

Commit 47bd5b9

Browse files
committed
Rename React.Sample.Mvc6 to React.Sample.CoreMvc
1 parent babdc3d commit 47bd5b9

File tree

15 files changed

+30
-32
lines changed

15 files changed

+30
-32
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ src/React.Sample.Webpack/build
1010
*.generated.js
1111
*.generated.js.map
1212
*.generated.min.js
13-
src/React.Sample.Mvc6/wwwroot/js/Sample.js
13+
src/React.Sample.CoreMvc/wwwroot/js/Sample.js
1414
*.lock.json
1515
.vs/
1616

src/React.Sample.ConsoleApp/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright (c) 2015, Facebook, Inc.
33
* All rights reserved.
44
*
@@ -35,7 +35,7 @@ private static void Initialize()
3535
Initializer.Initialize(registration => registration.AsSingleton());
3636
var container = React.AssemblyRegistration.Container;
3737
// Register some components that are normally provided by the integration library
38-
// (eg. React.AspNet or React.Web.Mvc6)
38+
// (eg. React.AspNet or React.Web.Mvc4)
3939
container.Register<ICache, NullCache>();
4040
container.Register<IFileSystem, SimpleFileSystem>();
4141
}

src/React.Sample.Mvc6/Controllers/HomeController.cs renamed to src/React.Sample.CoreMvc/Controllers/HomeController.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright (c) 2015, Facebook, Inc.
33
* All rights reserved.
44
*
@@ -13,12 +13,10 @@
1313
using System.Collections.Generic;
1414
using System.Linq;
1515
using Microsoft.AspNetCore.Mvc;
16-
using Newtonsoft.Json;
17-
using Newtonsoft.Json.Serialization;
18-
using React.Sample.Mvc6.Models;
19-
using React.Sample.Mvc6.ViewModels;
16+
using React.Sample.CoreMvc.Models;
17+
using React.Sample.CoreMvc.ViewModels;
2018

21-
namespace React.Sample.Mvc6.Models
19+
namespace React.Sample.CoreMvc.Models
2220
{
2321
public class AuthorModel
2422
{
@@ -33,7 +31,7 @@ public class CommentModel
3331
}
3432
}
3533

36-
namespace React.Sample.Mvc6.ViewModels
34+
namespace React.Sample.CoreMvc.ViewModels
3735
{
3836
public class IndexViewModel
3937
{
@@ -42,7 +40,7 @@ public class IndexViewModel
4240
}
4341
}
4442

45-
namespace React.Sample.Mvc6.Controllers
43+
namespace React.Sample.CoreMvc.Controllers
4644
{
4745
public class HomeController : Controller
4846
{

src/React.Sample.Mvc6/Program.cs renamed to src/React.Sample.CoreMvc/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
using Microsoft.AspNetCore;
1111
using Microsoft.AspNetCore.Hosting;
1212

13-
14-
namespace React.Sample.Mvc6
13+
namespace React.Sample.CoreMvc
1514
{
1615
public class Program
1716
{

src/React.Sample.Mvc6/Properties/launchSettings.json renamed to src/React.Sample.CoreMvc/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"ASPNETCORE_ENVIRONMENT": "Development"
1616
}
1717
},
18-
"React.Sample.Mvc6": {
18+
"React.Sample.CoreMvc": {
1919
"commandName": "Project",
2020
"launchBrowser": true,
2121
"launchUrl": "http://localhost:5000",
@@ -24,4 +24,4 @@
2424
}
2525
}
2626
}
27-
}
27+
}

src/React.Sample.Mvc6/React.Sample.Mvc6.csproj renamed to src/React.Sample.CoreMvc/React.Sample.CoreMvc.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
55
<PreserveCompilationContext>true</PreserveCompilationContext>
6-
<AssemblyName>React.Sample.Mvc6</AssemblyName>
6+
<AssemblyName>React.Sample.CoreMvc</AssemblyName>
77
<OutputType>Exe</OutputType>
8-
<PackageId>React.Sample.Mvc6</PackageId>
8+
<PackageId>React.Sample.CoreMvc</PackageId>
99
<NoWarn>1701</NoWarn>
1010
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">2.0</RuntimeFrameworkVersion>
1111
</PropertyGroup>

src/React.Sample.Mvc6/Startup.cs renamed to src/React.Sample.CoreMvc/Startup.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
using System;
1011
using Microsoft.AspNetCore.Builder;
1112
using Microsoft.AspNetCore.Hosting;
1213
using Microsoft.AspNetCore.Http;
1314
using Microsoft.Extensions.Configuration;
1415
using Microsoft.Extensions.DependencyInjection;
1516
using Microsoft.Extensions.Logging;
16-
using Newtonsoft.Json;
17-
using Newtonsoft.Json.Serialization;
1817
using React.AspNet;
19-
using System;
2018

21-
namespace React.Sample.Mvc6
19+
namespace React.Sample.CoreMvc
2220
{
2321
public class Startup
2422
{

src/React.Sample.Mvc6/Views/Home/Index.cshtml renamed to src/React.Sample.CoreMvc/Views/Home/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@using React.AspNet
2-
@model React.Sample.Mvc6.ViewModels.IndexViewModel
1+
@using React.AspNet
2+
@model React.Sample.CoreMvc.ViewModels.IndexViewModel
33
<!DOCTYPE html>
44
<html>
55
<head>

0 commit comments

Comments
 (0)