将项目升级到.net core 3.0

This commit is contained in:
2019-10-30 17:14:02 +08:00
parent 4552e40bfa
commit 9fc5162230
19 changed files with 112 additions and 106 deletions
+2 -2
View File
@@ -22,11 +22,11 @@ namespace COMCMS.Common
/// <summary>
/// 程序绝对目录
/// </summary>
private static string _ContentRootPath = DI.ServiceProvider.GetService<IHostingEnvironment>().ContentRootPath;
private static string _ContentRootPath = DI.ServiceProvider.GetService<IWebHostEnvironment>().ContentRootPath;
/// <summary>
/// 静态文件
/// </summary>
private static string _WebRootPath = DI.ServiceProvider.GetService<IHostingEnvironment>().WebRootPath;
private static string _WebRootPath = DI.ServiceProvider.GetService<IWebHostEnvironment>().WebRootPath;
#region 方式
public enum CutMode