Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 12658bb

Browse files
committed
Flatten subnamespaces.
1 parent 4a2a525 commit 12658bb

File tree

10 files changed

+13
-58
lines changed

10 files changed

+13
-58
lines changed

StaticFiles.sln

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.30327.0
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.21628.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{40EE0889-960E-41B4-A3D3-9CE963EB0797}"
77
EndProject
@@ -22,6 +22,7 @@ Global
2222
EndGlobalSection
2323
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2424
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Debug|Any CPU.ActiveCfg = Debug|x86
25+
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Debug|Any CPU.Build.0 = Debug|x86
2526
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
2627
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Debug|Mixed Platforms.Build.0 = Debug|x86
2728
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Debug|x86.ActiveCfg = Debug|x86
@@ -32,6 +33,7 @@ Global
3233
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Release|x86.ActiveCfg = Release|x86
3334
{8D7BC5A4-F19C-4184-8338-A6B42997218C}.Release|x86.Build.0 = Release|x86
3435
{092141D9-305A-4FC5-AE74-CB23982CA8D4}.Debug|Any CPU.ActiveCfg = Debug|x86
36+
{092141D9-305A-4FC5-AE74-CB23982CA8D4}.Debug|Any CPU.Build.0 = Debug|x86
3537
{092141D9-305A-4FC5-AE74-CB23982CA8D4}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
3638
{092141D9-305A-4FC5-AE74-CB23982CA8D4}.Debug|x86.ActiveCfg = Debug|x86
3739
{092141D9-305A-4FC5-AE74-CB23982CA8D4}.Debug|x86.Build.0 = Debug|x86

samples/StaticFileSample/Startup.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@
1515
// See the Apache 2 License for the specific language governing
1616
// permissions and limitations under the License.
1717

18-
using System;
19-
using System.IO;
20-
using Microsoft.AspNet;
18+
using Microsoft.AspNet.Builder;
2119
using Microsoft.AspNet.FileSystems;
22-
using Microsoft.AspNet.Http;
2320
using Microsoft.AspNet.StaticFiles;
2421

2522
namespace StaticFilesSample

src/Microsoft.AspNet.StaticFiles/DirectoryBrowserOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// See the Apache 2 License for the specific language governing
1616
// permissions and limitations under the License.
1717

18-
using Microsoft.AspNet.StaticFiles.DirectoryFormatters;
1918
using Microsoft.AspNet.StaticFiles.Infrastructure;
2019

2120
namespace Microsoft.AspNet.StaticFiles

src/Microsoft.AspNet.StaticFiles/ContentTypes/FileExtensionContentTypeProvider.cs renamed to src/Microsoft.AspNet.StaticFiles/FileExtensionContentTypeProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
using System.Collections.Generic;
2020
using System.IO;
2121

22-
namespace Microsoft.AspNet.StaticFiles.ContentTypes
22+
namespace Microsoft.AspNet.StaticFiles
2323
{
2424
/// <summary>
2525
/// Provides a mapping between file extensions and MIME types.

src/Microsoft.AspNet.StaticFiles/DirectoryFormatters/HtmlDirectoryFormatter.cs renamed to src/Microsoft.AspNet.StaticFiles/HtmlDirectoryFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using Microsoft.AspNet.FileSystems;
2626
using Microsoft.AspNet.Http;
2727

28-
namespace Microsoft.AspNet.StaticFiles.DirectoryFormatters
28+
namespace Microsoft.AspNet.StaticFiles
2929
{
3030
/// <summary>
3131
/// Generates an HTML view for a directory.

src/Microsoft.AspNet.StaticFiles/ContentTypes/IContentTypeProvider.cs renamed to src/Microsoft.AspNet.StaticFiles/IContentTypeProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// See the Apache 2 License for the specific language governing
1616
// permissions and limitations under the License.
1717

18-
namespace Microsoft.AspNet.StaticFiles.ContentTypes
18+
namespace Microsoft.AspNet.StaticFiles
1919
{
2020
/// <summary>
2121
/// Used to look up MIME types given a file path

src/Microsoft.AspNet.StaticFiles/DirectoryFormatters/IDirectoryFormatter.cs renamed to src/Microsoft.AspNet.StaticFiles/IDirectoryFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using Microsoft.AspNet.FileSystems;
2121
using Microsoft.AspNet.Http;
2222

23-
namespace Microsoft.AspNet.StaticFiles.DirectoryFormatters
23+
namespace Microsoft.AspNet.StaticFiles
2424
{
2525
/// <summary>
2626
/// Generates the view for a directory

src/Microsoft.AspNet.StaticFiles/Microsoft.AspNet.StaticFiles.kproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,22 @@
2323
</ItemGroup>
2424
<ItemGroup>
2525
<Compile Include="Constants.cs" />
26-
<Compile Include="ContentTypes\FileExtensionContentTypeProvider.cs" />
27-
<Compile Include="ContentTypes\IContentTypeProvider.cs" />
2826
<Compile Include="DefaultFilesExtensions.cs" />
2927
<Compile Include="DefaultFilesMiddleware.cs" />
3028
<Compile Include="DefaultFilesOptions.cs" />
3129
<Compile Include="DirectoryBrowserExtensions.cs" />
3230
<Compile Include="DirectoryBrowserMiddleware.cs" />
3331
<Compile Include="DirectoryBrowserOptions.cs" />
34-
<Compile Include="DirectoryFormatters\HtmlDirectoryFormatter.cs" />
35-
<Compile Include="DirectoryFormatters\IDirectoryFormatter.cs" />
32+
<Compile Include="FileExtensionContentTypeProvider.cs" />
3633
<Compile Include="FileServerExtensions.cs" />
3734
<Compile Include="FileServerOptions.cs" />
3835
<Compile Include="Helpers.cs" />
36+
<Compile Include="HtmlDirectoryFormatter.cs" />
37+
<Compile Include="IContentTypeProvider.cs" />
38+
<Compile Include="IDirectoryFormatter.cs" />
3939
<Compile Include="Infrastructure\RangeHelpers.cs" />
4040
<Compile Include="Infrastructure\SharedOptions.cs" />
4141
<Compile Include="Infrastructure\SharedOptionsBase.cs" />
42-
<Compile Include="Properties\AssemblyInfo.cs" />
4342
<Compile Include="Resources.Designer.cs" />
4443
<Compile Include="SendFileExtensions.cs" />
4544
<Compile Include="SendFileMiddleware.cs" />

src/Microsoft.AspNet.StaticFiles/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/Microsoft.AspNet.StaticFiles/StaticFileOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
// permissions and limitations under the License.
1717

1818
using System;
19-
using Microsoft.AspNet.StaticFiles.ContentTypes;
2019
using Microsoft.AspNet.StaticFiles.Infrastructure;
2120

2221
namespace Microsoft.AspNet.StaticFiles

0 commit comments

Comments
 (0)