mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 12:30:49 +08:00 
			
		
		
		
	Fix issue #1088 (Ocelot Administration doesn't work with .NET Core 3.x)
This commit is contained in:
		@@ -1,13 +1,15 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk.Web">
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk.Web">
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>netcoreapp3.1</TargetFramework>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Folder Include="wwwroot\"/>
 | 
			
		||||
    <Folder Include="wwwroot\" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>    <PackageReference Include="Microsoft.AspNetCore.App" />
 | 
			
		||||
    <PackageReference Include="Ocelot" Version="14.0.3" />
 | 
			
		||||
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <PackageReference Include="Microsoft.AspNetCore.App"/>
 | 
			
		||||
    <PackageReference Include="Ocelot" Version="12.0.1"/>
 | 
			
		||||
    <PackageReference Include="Ocelot.Administration" Version="0.1.0"/>
 | 
			
		||||
    <ProjectReference Include="..\..\src\Ocelot.Administration\Ocelot.Administration.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
@@ -1,19 +1,14 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.IO;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using Microsoft.AspNetCore;
 | 
			
		||||
using Microsoft.AspNetCore.Hosting;
 | 
			
		||||
using Microsoft.AspNetCore.Hosting;
 | 
			
		||||
using Microsoft.Extensions.Configuration;
 | 
			
		||||
using Microsoft.Extensions.Logging;
 | 
			
		||||
using Ocelot.Administration;
 | 
			
		||||
using Ocelot.DependencyInjection;
 | 
			
		||||
using Ocelot.Middleware;
 | 
			
		||||
using Ocelot.Administration;
 | 
			
		||||
using System.IO;
 | 
			
		||||
 | 
			
		||||
namespace AdministrationApi
 | 
			
		||||
{
 | 
			
		||||
  public class Program
 | 
			
		||||
    public class Program
 | 
			
		||||
{
 | 
			
		||||
    public static void Main(string[] args)
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user