🐛fix: #ICL05Q 代码生成命名空间设置无效

This commit is contained in:
yubaolee
2025-07-10 21:24:26 +08:00
parent d83a40e07e
commit f980fc5afc
8 changed files with 39 additions and 18 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenAuth.App.Test
//模拟路径
var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
.Replace("\\OpenAuth.App\\bin\\Debug\\netcoreapp3.1","");
.Replace("\\OpenAuth.App\\bin\\Debug\\net9.0","");
var mockPathProvider = new Mock<IPathProvider>();
mockPathProvider.Setup(x => x.MapPath("",false)).Returns(path);
services.AddScoped(x => mockHttpFac.Object);