Browse Source

修复FileServer无法启动的bug,原因是没有带asp.net core的库

tanghai 7 năm trước cách đây
mục cha
commit
f7c3e92712
26 tập tin đã thay đổi với 83 bổ sung23 xóa
  1. 1 0
      Client-Server.sln.DotSettings.user
  2. 3 14
      FileServer/FileServer.deps.json
  3. BIN
      FileServer/FileServer.dll
  4. BIN
      FileServer/FileServer.pdb
  5. 0 9
      FileServer/FileServer.runtimeconfig.dev.json
  6. BIN
      FileServer/Microsoft.AspNetCore.Hosting.Abstractions.dll
  7. BIN
      FileServer/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
  8. BIN
      FileServer/Microsoft.AspNetCore.Http.Abstractions.dll
  9. BIN
      FileServer/Microsoft.AspNetCore.Http.Extensions.dll
  10. BIN
      FileServer/Microsoft.AspNetCore.Http.Features.dll
  11. BIN
      FileServer/Microsoft.AspNetCore.StaticFiles.dll
  12. BIN
      FileServer/Microsoft.Extensions.Configuration.Abstractions.dll
  13. BIN
      FileServer/Microsoft.Extensions.Configuration.dll
  14. BIN
      FileServer/Microsoft.Extensions.DependencyInjection.Abstractions.dll
  15. BIN
      FileServer/Microsoft.Extensions.FileProviders.Abstractions.dll
  16. BIN
      FileServer/Microsoft.Extensions.Hosting.Abstractions.dll
  17. BIN
      FileServer/Microsoft.Extensions.Logging.Abstractions.dll
  18. BIN
      FileServer/Microsoft.Extensions.Options.dll
  19. BIN
      FileServer/Microsoft.Extensions.Primitives.dll
  20. BIN
      FileServer/Microsoft.Extensions.WebEncoders.dll
  21. BIN
      FileServer/Microsoft.Net.Http.Headers.dll
  22. 12 0
      FileServer/web.config
  23. 7 0
      Tools/FileServer/FileServer.csproj.user
  24. 22 0
      Tools/FileServer/Properties/PublishProfiles/FolderProfile.pubxml
  25. 11 0
      Tools/FileServer/Properties/PublishProfiles/FolderProfile.pubxml.user
  26. 27 0
      Tools/FileServer/Properties/launchSettings.json

+ 1 - 0
Client-Server.sln.DotSettings.user

@@ -43,6 +43,7 @@
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=EE38E3D2_002D3D2A_002D4061_002DBD50_002DAE8568126C7D_002Fd_003AModule_002Fd_003AMessage_002Ff_003AAMRpcHandler_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=EE38E3D2_002D3D2A_002D4061_002DBD50_002DAE8568126C7D_002Fd_003AModule_002Fd_003AMessage_002Ff_003ANetInnerComponent_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
 	<s:String x:Key="/Default/CodeInspection/Highlighting/AnalysisEnabled/@EntryValue">VISIBLE_FILES</s:String>
+	
 	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EnforceForeachStatementBraces/@EntryIndexedValue">HINT</s:String>
 	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EnforceIfStatementBraces/@EntryIndexedValue">HINT</s:String>
 	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EnforceWhileStatementBraces/@EntryIndexedValue">HINT</s:String>

+ 3 - 14
FileServer/FileServer.deps.json

@@ -1,12 +1,12 @@
 {
   "runtimeTarget": {
     "name": ".NETCoreApp,Version=v2.1",
-    "signature": "8d74a95046236c3098907da75a779339f58ec64f"
+    "signature": "1362f7daa146aa00964ba63fcd3e38bce2d4ff92"
   },
   "compilationOptions": {
     "defines": [
       "TRACE",
-      "DEBUG",
+      "RELEASE",
       "NETCOREAPP",
       "NETCOREAPP2_1"
     ],
@@ -14,7 +14,7 @@
     "platform": "",
     "allowUnsafe": false,
     "warningsAsErrors": false,
-    "optimize": false,
+    "optimize": true,
     "keyFile": "",
     "emitEntryPoint": true,
     "xmlDoc": false,
@@ -25,7 +25,6 @@
       "FileServer/1.0.0": {
         "dependencies": {
           "Microsoft.AspNetCore.App": "2.1.1",
-          "Microsoft.AspNetCore.Razor.Design": "2.1.2",
           "Microsoft.AspNetCore.StaticFiles": "2.2.0-preview3-35497",
           "Microsoft.Extensions.Configuration": "2.2.0-preview3-35497",
           "Microsoft.NETCore.App": "2.1.0"
@@ -114,7 +113,6 @@
           "lib/netstandard2.0/Microsoft.AspNetCore.Http.Features.dll": {}
         }
       },
-      "Microsoft.AspNetCore.Razor.Design/2.1.2": {},
       "Microsoft.AspNetCore.StaticFiles/2.2.0-preview3-35497": {
         "dependencies": {
           "Microsoft.AspNetCore.Hosting.Abstractions": "2.2.0-preview3-35497",
@@ -563,7 +561,6 @@
           "Microsoft.AspNetCore.NodeServices": "2.1.1",
           "Microsoft.AspNetCore.Owin": "2.1.1",
           "Microsoft.AspNetCore.Razor": "2.1.1",
-          "Microsoft.AspNetCore.Razor.Design": "2.1.2",
           "Microsoft.AspNetCore.Razor.Language": "2.1.1",
           "Microsoft.AspNetCore.Razor.Runtime": "2.1.1",
           "Microsoft.AspNetCore.ResponseCaching": "2.1.1",
@@ -1097,7 +1094,6 @@
           "Microsoft.AspNetCore.Mvc.RazorPages": "2.1.1",
           "Microsoft.AspNetCore.Mvc.TagHelpers": "2.1.1",
           "Microsoft.AspNetCore.Mvc.ViewFeatures": "2.1.1",
-          "Microsoft.AspNetCore.Razor.Design": "2.1.2",
           "Microsoft.Extensions.Caching.Memory": "2.1.1",
           "Microsoft.Extensions.DependencyInjection": "2.1.1"
         },
@@ -3273,13 +3269,6 @@
       "path": "microsoft.aspnetcore.http.features/2.2.0-preview3-35497",
       "hashPath": "microsoft.aspnetcore.http.features.2.2.0-preview3-35497.nupkg.sha512"
     },
-    "Microsoft.AspNetCore.Razor.Design/2.1.2": {
-      "type": "package",
-      "serviceable": true,
-      "sha512": "sha512-ab4+TZw3Sxqrr5TwrwVyABeQkhSxYMJXgG6yZw7T+r6Vz+hcOt+pK79o15ESG7kZvWAK9wRG7emnTIia5O6R1Q==",
-      "path": "microsoft.aspnetcore.razor.design/2.1.2",
-      "hashPath": "microsoft.aspnetcore.razor.design.2.1.2.nupkg.sha512"
-    },
     "Microsoft.AspNetCore.StaticFiles/2.2.0-preview3-35497": {
       "type": "package",
       "serviceable": true,

BIN
FileServer/FileServer.dll


BIN
FileServer/FileServer.pdb


+ 0 - 9
FileServer/FileServer.runtimeconfig.dev.json

@@ -1,9 +0,0 @@
-{
-  "runtimeOptions": {
-    "additionalProbingPaths": [
-      "C:\\Users\\USER-PC\\.dotnet\\store\\|arch|\\|tfm|",
-      "C:\\Users\\USER-PC\\.nuget\\packages",
-      "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
-    ]
-  }
-}

BIN
FileServer/Microsoft.AspNetCore.Hosting.Abstractions.dll


BIN
FileServer/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll


BIN
FileServer/Microsoft.AspNetCore.Http.Abstractions.dll


BIN
FileServer/Microsoft.AspNetCore.Http.Extensions.dll


BIN
FileServer/Microsoft.AspNetCore.Http.Features.dll


BIN
FileServer/Microsoft.AspNetCore.StaticFiles.dll


BIN
FileServer/Microsoft.Extensions.Configuration.Abstractions.dll


BIN
FileServer/Microsoft.Extensions.Configuration.dll


BIN
FileServer/Microsoft.Extensions.DependencyInjection.Abstractions.dll


BIN
FileServer/Microsoft.Extensions.FileProviders.Abstractions.dll


BIN
FileServer/Microsoft.Extensions.Hosting.Abstractions.dll


BIN
FileServer/Microsoft.Extensions.Logging.Abstractions.dll


BIN
FileServer/Microsoft.Extensions.Options.dll


BIN
FileServer/Microsoft.Extensions.Primitives.dll


BIN
FileServer/Microsoft.Extensions.WebEncoders.dll


BIN
FileServer/Microsoft.Net.Http.Headers.dll


+ 12 - 0
FileServer/web.config

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <location path="." inheritInChildApplications="false">
+    <system.webServer>
+      <handlers>
+        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
+      </handlers>
+      <aspNetCore processPath="dotnet" arguments=".\FileServer.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
+    </system.webServer>
+  </location>
+</configuration>
+<!--ProjectGuid: 1c2827bf-aa19-402a-bfd1-1c92e6b8fd84-->

+ 7 - 0
Tools/FileServer/FileServer.csproj.user

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <ActiveDebugProfile>IIS Express</ActiveDebugProfile>
+    <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
+  </PropertyGroup>
+</Project>

+ 22 - 0
Tools/FileServer/Properties/PublishProfiles/FolderProfile.pubxml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件
+自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。 
+-->
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <WebPublishMethod>FileSystem</WebPublishMethod>
+    <PublishProvider>FileSystem</PublishProvider>
+    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
+    <LastUsedPlatform>Any CPU</LastUsedPlatform>
+    <SiteUrlToLaunchAfterPublish />
+    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
+    <ExcludeApp_Data>False</ExcludeApp_Data>
+    <ProjectGuid>1c2827bf-aa19-402a-bfd1-1c92e6b8fd84</ProjectGuid>
+    <publishUrl>../../FileServer/</publishUrl>
+    <DeleteExistingFiles>True</DeleteExistingFiles>
+    <TargetFramework>netcoreapp2.1</TargetFramework>
+    <SelfContained>false</SelfContained>
+    <_IsPortable>true</_IsPortable>
+  </PropertyGroup>
+</Project>

+ 11 - 0
Tools/FileServer/Properties/PublishProfiles/FolderProfile.pubxml.user

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件
+自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。 
+-->
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <TimeStampOfAssociatedLegacyPublishXmlFile />
+    <_PublishTargetUrl>D:\Source\ET\Tools\FileServer\../../FileServer/</_PublishTargetUrl>
+  </PropertyGroup>
+</Project>

+ 27 - 0
Tools/FileServer/Properties/launchSettings.json

@@ -0,0 +1,27 @@
+{
+  "iisSettings": {
+    "windowsAuthentication": false,
+    "anonymousAuthentication": true,
+    "iisExpress": {
+      "applicationUrl": "http://localhost:56073/",
+      "sslPort": 0
+    }
+  },
+  "profiles": {
+    "IIS Express": {
+      "commandName": "IISExpress",
+      "launchBrowser": true,
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      }
+    },
+    "FileServer": {
+      "commandName": "Project",
+      "launchBrowser": true,
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      },
+      "applicationUrl": "http://localhost:56076/"
+    }
+  }
+}