From 21f25fc42df3d93cdd6d43dd5a71656b8cc663e5 Mon Sep 17 00:00:00 2001 From: sesamefly Date: Thu, 13 May 2021 10:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C=E5=8D=95?= =?UTF-8?q?=E4=B8=AA=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=8E=B7=E5=8F=96OpenAuth.WebApi=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.Repository/Test/TestBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenAuth.Repository/Test/TestBase.cs b/OpenAuth.Repository/Test/TestBase.cs index dfd369e8..c9f89c5d 100644 --- a/OpenAuth.Repository/Test/TestBase.cs +++ b/OpenAuth.Repository/Test/TestBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Linq; using System.Reflection; @@ -39,7 +39,7 @@ namespace OpenAuth.Repository.Test //模拟配置文件 //读取OpenAuth.WebApi的配置文件用于单元测试 var path = AppContext.BaseDirectory; - int pos = path.IndexOf("OpenAuth.Repository"); + int pos = path.LastIndexOf("OpenAuth."); var basepath = Path.Combine(path.Substring(0,pos) ,"OpenAuth.WebApi"); IConfiguration config = new ConfigurationBuilder() .SetBasePath(basepath)