Browse Source

平台版本修复

yuxi-lee 2 years ago
parent
commit
9f37942583
4 changed files with 4 additions and 28 deletions
  1. 1 3
      LJProxy.csproj
  2. 0 13
      LJProxy.csproj.user
  3. 0 10
      Properties/PublishProfiles/FolderProfile.pubxml.user
  4. 3 2
      Startup.cs

+ 1 - 3
LJProxy.csproj

@@ -1,9 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk.Web">
 
   <PropertyGroup>
-    <TargetFramework>net6.0</TargetFramework>
-    <StartupObject></StartupObject>
-    <PlatformTarget>AnyCPU</PlatformTarget>
+    <TargetFramework>netcoreapp3.1</TargetFramework>
   </PropertyGroup>
 
   <ItemGroup>

+ 0 - 13
LJProxy.csproj.user

@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
-    <Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
-    <ShowAllFiles>false</ShowAllFiles>
-    <NameOfLastUsedPublishProfile>C:\myfiles\longjoe\projects\LJProxy\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
-    <ActiveDebugProfile>LJProxy</ActiveDebugProfile>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
-    <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
-  </PropertyGroup>
-</Project>

File diff suppressed because it is too large
+ 0 - 10
Properties/PublishProfiles/FolderProfile.pubxml.user


+ 3 - 2
Startup.cs

@@ -69,8 +69,9 @@ namespace LJProxy
             app.UseDefaultFiles();
             var provider = new FileExtensionContentTypeProvider();
             provider.Mappings[".apk"] = "application/vnd.android.package-archive";
-            app.UseStaticFiles(new StaticFileOptions { 
-                FileProvider = new L1SvrFileProvider(env.ContentRootPath,app.ApplicationServices.GetService<LJClientPoolService>(),app.ApplicationServices.GetService<IHttpContextAccessor>()),
+            app.UseStaticFiles(new StaticFileOptions
+            {
+                FileProvider = new L1SvrFileProvider(env.ContentRootPath, app.ApplicationServices.GetService<LJClientPoolService>(), app.ApplicationServices.GetService<IHttpContextAccessor>()),
                 ContentTypeProvider = provider
             });
         }