Преглед на файлове

Add 2017 Version of the solution.

sevan преди 8 години
родител
ревизия
0c2c9f843c
променени са 4 файла, в които са добавени 98 реда и са изтрити 11 реда
  1. 28 0
      BabylonJS2017.sln
  2. 36 0
      Playground/Playground2017.csproj
  3. 7 11
      Playground/Program.cs
  4. 27 0
      src/Src2017.csproj

+ 28 - 0
BabylonJS2017.sln

@@ -0,0 +1,28 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.25920.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Playground2017", "Playground\Playground2017.csproj", "{3ED6C83F-C85A-4A11-85D7-E1ED8778862A}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Src2017", "src\Src2017.csproj", "{B01B4B8B-208B-4B33-B386-2C37F73DC32D}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{3ED6C83F-C85A-4A11-85D7-E1ED8778862A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{3ED6C83F-C85A-4A11-85D7-E1ED8778862A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{3ED6C83F-C85A-4A11-85D7-E1ED8778862A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{3ED6C83F-C85A-4A11-85D7-E1ED8778862A}.Release|Any CPU.Build.0 = Release|Any CPU
+		{B01B4B8B-208B-4B33-B386-2C37F73DC32D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{B01B4B8B-208B-4B33-B386-2C37F73DC32D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{B01B4B8B-208B-4B33-B386-2C37F73DC32D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{B01B4B8B-208B-4B33-B386-2C37F73DC32D}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

+ 36 - 0
Playground/Playground2017.csproj

@@ -0,0 +1,36 @@
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netcoreapp1.0</TargetFramework>
+    <PreserveCompilationContext>true</PreserveCompilationContext>
+  </PropertyGroup>
+  <ItemGroup>
+    <Compile Include="**\*.cs" Exclude="$(GlobalExclude)" />
+    <EmbeddedResource Include="**\*.resx" Exclude="$(GlobalExclude)" />
+  </ItemGroup>
+  <ItemGroup>
+    <PackageReference Include="Microsoft.AspNetCore.StaticFiles">
+      <Version>1.1.0</Version>
+    </PackageReference>
+    <PackageReference Include="Microsoft.NETCore.App">
+      <Version>1.0.1</Version>
+    </PackageReference>
+    <PackageReference Include="Microsoft.NET.Sdk.Web">
+      <Version>1.0.0-alpha-20161104-2-112</Version>
+    </PackageReference>
+    <PackageReference Include="Microsoft.AspNetCore.Diagnostics">
+      <Version>1.0.0</Version>
+    </PackageReference>
+    <PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration">
+      <Version>1.0.0</Version>
+    </PackageReference>
+    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel">
+      <Version>1.0.1</Version>
+    </PackageReference>
+    <PackageReference Include="Microsoft.Extensions.Logging.Console">
+      <Version>1.0.0</Version>
+    </PackageReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 7 - 11
Playground/Program.cs

@@ -1,11 +1,6 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
+using System.IO;
 using Microsoft.AspNetCore.Builder;
 using Microsoft.AspNetCore.Hosting;
-using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.StaticFiles;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.FileProviders;
@@ -43,11 +38,12 @@ namespace TestTestTest
             contentTypeProvider.Mappings[".fx"] = "text/plain";
             contentTypeProvider.Mappings[".map"] = "text/plain";
 
-            var options = new StaticFileOptions();
-            options.RequestPath = ""; 
-            options.FileProvider = provider;
-            options.ContentTypeProvider = contentTypeProvider;
-
+            var options = new StaticFileOptions()
+            {
+                RequestPath = "",
+                FileProvider = provider,
+                ContentTypeProvider = contentTypeProvider
+            };
             app.UseStaticFiles(options);
         }
     }

+ 27 - 0
src/Src2017.csproj

@@ -0,0 +1,27 @@
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
+  <PropertyGroup>
+    <TargetFramework>netstandard1.4</TargetFramework>
+  </PropertyGroup>
+  <ItemGroup>
+    <Compile Include="**\*.cs" />
+    <EmbeddedResource Include="**\*.resx" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="**\*.ts" />
+  </ItemGroup>
+  <ItemGroup>
+    <PackageReference Include="Microsoft.NET.Sdk">
+      <Version>1.0.0-alpha-20161104-2</Version>
+      <PrivateAssets>All</PrivateAssets>
+    </PackageReference>
+    <PackageReference Include="Microsoft.NET.Sdk.Web.ProjectSystem">
+      <Version>1.0.0-alpha-20161104-2-112</Version>
+    </PackageReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <ItemGroup>
+    <Content Remove="**\*.js" />
+    <Content Remove="**\*.js.map" />
+  </ItemGroup>
+</Project>