Skip to content

Commit fbdbe7a

Browse files
author
Jimmy Sorting
committed
Using the new IsDevelopment extension method in Startup.cs. Also made a git checkout "aa6c6666~1" .\React.Sample.Mvc6.xproj due to an irrelevant file change in commit aa6c666.
1 parent aa6c666 commit fbdbe7a

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
5-
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6-
</PropertyGroup>
7-
<PropertyGroup Label="Globals">
8-
<ProjectGuid>022dc77e-5e48-4cf4-ad8b-dc4b9b52e02e</ProjectGuid>
9-
<RootNamespace>React.Sample.Mvc6</RootNamespace>
10-
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
11-
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
12-
</PropertyGroup>
13-
<PropertyGroup>
14-
<SchemaVersion>2.0</SchemaVersion>
15-
<DevelopmentServerPort>3044</DevelopmentServerPort>
16-
</PropertyGroup>
17-
<ProjectExtensions>
18-
<VisualStudio>
19-
<UserProperties />
20-
</VisualStudio>
21-
</ProjectExtensions>
22-
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" />
23-
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" />
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
<PropertyGroup Label="Globals">
8+
<ProjectGuid>022dc77e-5e48-4cf4-ad8b-dc4b9b52e02e</ProjectGuid>
9+
<RootNamespace>React.Sample.Mvc6</RootNamespace>
10+
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
11+
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
12+
</PropertyGroup>
13+
<PropertyGroup>
14+
<SchemaVersion>2.0</SchemaVersion>
15+
<DevelopmentServerPort>3044</DevelopmentServerPort>
16+
</PropertyGroup>
17+
<ProjectExtensions>
18+
<VisualStudio>
19+
<UserProperties bower_1json__JSONSchema="http://json.schemastore.org/bower" package_1json__JSONSchema="http://json.schemastore.org/package" />
20+
</VisualStudio>
21+
</ProjectExtensions>
22+
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" />
23+
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" />
2424
</Project>

src/React.Sample.Mvc6/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
5050
loggerfactory.AddConsole();
5151

5252
// Add the following to the request pipeline only in development environment.
53-
if (string.Equals(env.EnvironmentName, "Development", StringComparison.OrdinalIgnoreCase))
53+
if (env.IsDevelopment())
5454
{
5555
//app.UseBrowserLink();
5656
app.UseErrorPage();

0 commit comments

Comments
 (0)