diff --git a/apihost/Tnb.API.Entry/Handlers/JwtHandler.cs b/apihost/Tnb.API.Entry/Handlers/JwtHandler.cs index ac713bd2..f0e9de90 100644 --- a/apihost/Tnb.API.Entry/Handlers/JwtHandler.cs +++ b/apihost/Tnb.API.Entry/Handlers/JwtHandler.cs @@ -59,6 +59,7 @@ public class JwtHandler : AppAuthorizeHandler return true; // 路由名称 + if (httpContext.Request.Path.Value == null) return false; var routeName = httpContext.Request.Path.Value[1..].Replace("/", ":"); if (httpContext.Request.Path.StartsWithSegments("/api")) routeName = httpContext.Request.Path.Value[5..].Replace("/", ":"); @@ -76,6 +77,7 @@ public class JwtHandler : AppAuthorizeHandler // 检查授权 //return permissionList.Contains(routeName); + await Task.CompletedTask; return true; } } diff --git a/apihost/Tnb.API.Entry/Startup.cs b/apihost/Tnb.API.Entry/Startup.cs index e73e43ed..611eb99d 100644 --- a/apihost/Tnb.API.Entry/Startup.cs +++ b/apihost/Tnb.API.Entry/Startup.cs @@ -98,7 +98,7 @@ public class Startup : AppStartup app.UseInject(string.Empty); //app.MapWebSocketManager("/api/message/websocket", serviceProvider.GetService()); - app.MapWebSocketManager("/websocket", serviceProvider.GetService()); + app.MapWebSocketManager("/websocket", serviceProvider.GetRequiredService()); app.UseEndpoints(endpoints => { diff --git a/app/Tnb.Apps.Entitys/Tnb.Apps.Entitys.csproj b/app/Tnb.Apps.Entitys/Tnb.Apps.Entitys.csproj index 1e177c15..76aef262 100644 --- a/app/Tnb.Apps.Entitys/Tnb.Apps.Entitys.csproj +++ b/app/Tnb.Apps.Entitys/Tnb.Apps.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8618; diff --git a/app/Tnb.Apps/Tnb.Apps.csproj b/app/Tnb.Apps/Tnb.Apps.csproj index ff1045f7..b596a93b 100644 --- a/app/Tnb.Apps/Tnb.Apps.csproj +++ b/app/Tnb.Apps/Tnb.Apps.csproj @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8625;CS1572;CS1573; diff --git a/common.props b/common.props index eb6672a5..6734521c 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - $(NoWarn);CS1591;CA1307;CS8625;CS8600;CS8601;CS8604;CS8618; + $(NoWarn);CS1591; diff --git a/common/Tnb.CollectiveOAuth/Enums/EnumHelper/EnumExtensions.cs b/common/Tnb.CollectiveOAuth/Enums/EnumHelper/EnumExtensions.cs index 0fee4d6c..ec0ecded 100644 --- a/common/Tnb.CollectiveOAuth/Enums/EnumHelper/EnumExtensions.cs +++ b/common/Tnb.CollectiveOAuth/Enums/EnumHelper/EnumExtensions.cs @@ -112,7 +112,7 @@ public static class EnumExtensions { if (field.FieldType.IsEnum) { - strValue = ((int)enumType.InvokeMember(field.Name, BindingFlags.GetField, null, null, null)).ToString(); + strValue = ((int?)enumType.InvokeMember(field.Name, BindingFlags.GetField, null, null, null)).ToString(); object[] arr = field.GetCustomAttributes(typeDescription, true); if (arr.Length > 0) { diff --git a/common/Tnb.CollectiveOAuth/Request/AuthRequests/ElemeAuthRequest.cs b/common/Tnb.CollectiveOAuth/Request/AuthRequests/ElemeAuthRequest.cs index 6d0c1e8e..cf0ad9a1 100644 --- a/common/Tnb.CollectiveOAuth/Request/AuthRequests/ElemeAuthRequest.cs +++ b/common/Tnb.CollectiveOAuth/Request/AuthRequests/ElemeAuthRequest.cs @@ -253,7 +253,9 @@ public class ElemeAuthRequest : DefaultAuthRequest { //就是比string往后一直加要好的优化容器 StringBuilder sb = new StringBuilder(); +#pragma warning disable SYSLIB0021 //MD5CryptoServiceProvider已过时 using (MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider()) +#pragma warning disable SYSLIB0021 //MD5CryptoServiceProvider已过时 { //将输入字符串转换为字节数组并计算哈希。 byte[] data = md5.ComputeHash(Encoding.UTF8.GetBytes(willMd5Str)); diff --git a/common/Tnb.CollectiveOAuth/Tnb.CollectiveOAuth.csproj b/common/Tnb.CollectiveOAuth/Tnb.CollectiveOAuth.csproj index 34af77a4..015ae7e0 100644 --- a/common/Tnb.CollectiveOAuth/Tnb.CollectiveOAuth.csproj +++ b/common/Tnb.CollectiveOAuth/Tnb.CollectiveOAuth.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8618;CS8625;CS1572;CS1573;CS0168; diff --git a/common/Tnb.CollectiveOAuth/Utils/HttpUtils.cs b/common/Tnb.CollectiveOAuth/Utils/HttpUtils.cs index 14ce2199..a908e1df 100644 --- a/common/Tnb.CollectiveOAuth/Utils/HttpUtils.cs +++ b/common/Tnb.CollectiveOAuth/Utils/HttpUtils.cs @@ -4,6 +4,7 @@ using System.Text; namespace JNPF.Extras.CollectiveOAuth.Utils; +#pragma warning disable SYSLIB0014 //WebRequest.Create已过时 public class HttpUtils { /// @@ -269,4 +270,5 @@ public class HttpUtils return result; } -} \ No newline at end of file +} +#pragma warning restore SYSLIB0014 //WebRequest.Create已过时 diff --git a/common/Tnb.CollectiveOAuth/Utils/TwitterBase.cs b/common/Tnb.CollectiveOAuth/Utils/TwitterBase.cs index 007ffa64..5ed2160e 100644 --- a/common/Tnb.CollectiveOAuth/Utils/TwitterBase.cs +++ b/common/Tnb.CollectiveOAuth/Utils/TwitterBase.cs @@ -52,7 +52,7 @@ public class TwitterBase #region IComparer Members - public int Compare(QueryParameter x, QueryParameter y) + public int Compare(QueryParameter? x, QueryParameter? y) { if (x.Name == y.Name) { diff --git a/common/Tnb.Common.Core/Tnb.Common.Core.csproj b/common/Tnb.Common.Core/Tnb.Common.Core.csproj index 2c81754d..f7e011f8 100644 --- a/common/Tnb.Common.Core/Tnb.Common.Core.csproj +++ b/common/Tnb.Common.Core/Tnb.Common.Core.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8618;CS1572;CS1573;CS0168;CS1998; diff --git a/common/Tnb.Common/Extension/Extensions.cs b/common/Tnb.Common/Extension/Extensions.cs index 05718f61..a46b4e1d 100644 --- a/common/Tnb.Common/Extension/Extensions.cs +++ b/common/Tnb.Common/Extension/Extensions.cs @@ -608,7 +608,7 @@ public static partial class Extensions /// 是否为空. /// /// 值. - public static bool IsEmpty(this string value) + public static bool IsEmpty(this string? value) { return string.IsNullOrWhiteSpace(value); } diff --git a/common/Tnb.Common/Security/CodeGenExportDataHelper.cs b/common/Tnb.Common/Security/CodeGenExportDataHelper.cs index 61b8e36a..11141240 100644 --- a/common/Tnb.Common/Security/CodeGenExportDataHelper.cs +++ b/common/Tnb.Common/Security/CodeGenExportDataHelper.cs @@ -54,7 +54,7 @@ public static class CodeGenExportDataHelper var len = rowChildDatas.Select(x => x.Value.Count()).OrderByDescending(x => x).FirstOrDefault(); - if (len != null && len > 0) + if (len > 0) { for (int i = 0; i < len; i++) { diff --git a/common/Tnb.Common/Security/ExcelExportHelper.cs b/common/Tnb.Common/Security/ExcelExportHelper.cs index 6ffcab01..0a34dfe4 100644 --- a/common/Tnb.Common/Security/ExcelExportHelper.cs +++ b/common/Tnb.Common/Security/ExcelExportHelper.cs @@ -1,6 +1,7 @@ using System.Drawing; using System.Reflection; using System.Text; +using JNPF.Common.Helper; using JNPF.Common.Models.NPOI; using JNPF.DependencyInjection; using NPOI.HPSF; @@ -8,10 +9,13 @@ using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.SS.Util; using NPOI.XSSF.UserModel; +using Spire.Doc; +using static Microsoft.AspNetCore.Razor.Language.TagHelperMetadata; namespace JNPF.Common.Security; -#pragma warning disable CS8602, CS0618, CA2200 +#pragma warning disable CS0618, CA2200 //再次引发捕获到的异常会更改堆栈信息 + /// /// Excel导出操作类 /// 版 本:V3.2.0 @@ -1170,4 +1174,4 @@ public class ExcelExportHelper #endregion } -#pragma warning restore CS8602, CS0618, CA2200 +#pragma warning restore CS0618, CA2200 //再次引发捕获到的异常会更改堆栈信息 diff --git a/common/Tnb.Common/Security/FileHelper.cs b/common/Tnb.Common/Security/FileHelper.cs index 519fa06c..55d4b8d8 100644 --- a/common/Tnb.Common/Security/FileHelper.cs +++ b/common/Tnb.Common/Security/FileHelper.cs @@ -494,7 +494,9 @@ public class FileHelper } catch (Exception ex) { +#pragma warning disable CA2200 //再次引发捕获到的异常会更改堆栈信息 throw ex; +#pragma warning disable CA2200 //再次引发捕获到的异常会更改堆栈信息 } finally { diff --git a/common/Tnb.Common/Tnb.Common.csproj b/common/Tnb.Common/Tnb.Common.csproj index 4d8a9838..b5e6e13b 100644 --- a/common/Tnb.Common/Tnb.Common.csproj +++ b/common/Tnb.Common/Tnb.Common.csproj @@ -7,6 +7,7 @@ enable False False + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8605;CS8618;CS8619;CS8625;CS1572;CS1573; diff --git a/common/Tnb.Thirdparty/Tnb.Thirdparty.csproj b/common/Tnb.Thirdparty/Tnb.Thirdparty.csproj index ab91d29c..42576ee7 100644 --- a/common/Tnb.Thirdparty/Tnb.Thirdparty.csproj +++ b/common/Tnb.Thirdparty/Tnb.Thirdparty.csproj @@ -7,6 +7,7 @@ enable enable False + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8618;CS8625;CS1572;CS1573;CS0168;CS0618; diff --git a/common/Tnb.WebSockets/Tnb.WebSockets.csproj b/common/Tnb.WebSockets/Tnb.WebSockets.csproj index 39088182..081b83d5 100644 --- a/common/Tnb.WebSockets/Tnb.WebSockets.csproj +++ b/common/Tnb.WebSockets/Tnb.WebSockets.csproj @@ -7,6 +7,7 @@ enable enable False + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS1572;CS1573;CS1998; diff --git a/extend/Tnb.Extend.Entitys/Tnb.Extend.Entitys.csproj b/extend/Tnb.Extend.Entitys/Tnb.Extend.Entitys.csproj index 1e177c15..76aef262 100644 --- a/extend/Tnb.Extend.Entitys/Tnb.Extend.Entitys.csproj +++ b/extend/Tnb.Extend.Entitys/Tnb.Extend.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8618; diff --git a/extend/Tnb.Extend/OrderService.cs b/extend/Tnb.Extend/OrderService.cs index 39923c73..25117549 100644 --- a/extend/Tnb.Extend/OrderService.cs +++ b/extend/Tnb.Extend/OrderService.cs @@ -44,12 +44,14 @@ public class OrderService : IDynamicApiController, ITransient ISqlSugarRepository repository, IUserManager userManager, IUsersService usersService, - ICacheManager cacheManager) + ICacheManager cacheManager, + IFileManager fileManager) { _repository = repository; _userManager = userManager; _usersService = usersService; _cacheManager = cacheManager; + _fileManager = fileManager; } #region GET diff --git a/extend/Tnb.Extend/Tnb.Extend.csproj b/extend/Tnb.Extend/Tnb.Extend.csproj index d7a0cd78..e5c49e58 100644 --- a/extend/Tnb.Extend/Tnb.Extend.csproj +++ b/extend/Tnb.Extend/Tnb.Extend.csproj @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8625;CS1572;CS1573;CS0168;CS4014; diff --git a/message/Tnb.Message.Entitys/Tnb.Message.Entitys.csproj b/message/Tnb.Message.Entitys/Tnb.Message.Entitys.csproj index 1e177c15..76aef262 100644 --- a/message/Tnb.Message.Entitys/Tnb.Message.Entitys.csproj +++ b/message/Tnb.Message.Entitys/Tnb.Message.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8618; diff --git a/message/Tnb.Message/Tnb.Message.csproj b/message/Tnb.Message/Tnb.Message.csproj index 0567e028..1894305e 100644 --- a/message/Tnb.Message/Tnb.Message.csproj +++ b/message/Tnb.Message/Tnb.Message.csproj @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8625;CS1572;CS1573;CS0168; diff --git a/system/Tnb.OAuth/Tnb.OAuth.csproj b/system/Tnb.OAuth/Tnb.OAuth.csproj index 927c3a91..1640baae 100644 --- a/system/Tnb.OAuth/Tnb.OAuth.csproj +++ b/system/Tnb.OAuth/Tnb.OAuth.csproj @@ -1,4 +1,4 @@ - + @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8618;CS8625;CS1572;CS1573; diff --git a/system/Tnb.Systems.Entitys/Entity/Permission/AuthorizeEntity.cs b/system/Tnb.Systems.Entitys/Entity/Permission/AuthorizeEntity.cs index 2aa025f7..e3d66bdf 100644 --- a/system/Tnb.Systems.Entitys/Entity/Permission/AuthorizeEntity.cs +++ b/system/Tnb.Systems.Entitys/Entity/Permission/AuthorizeEntity.cs @@ -44,11 +44,11 @@ public class AuthorizeEntity : CEntityBase /// /// /// - public override bool Equals(object obj) + public override bool Equals(object? obj) { - if (obj is AuthorizeEntity) + if (obj is AuthorizeEntity authorizeEntity) { - AuthorizeEntity authorizeEntity = obj as AuthorizeEntity; + //AuthorizeEntity authorizeEntity = obj as AuthorizeEntity; return ItemType == authorizeEntity.ItemType && ItemId == authorizeEntity.ItemId && ObjectId == authorizeEntity.ObjectId && ObjectType == authorizeEntity.ObjectType; } diff --git a/system/Tnb.Systems.Entitys/Tnb.Systems.Entitys.csproj b/system/Tnb.Systems.Entitys/Tnb.Systems.Entitys.csproj index 43253c86..3c84db98 100644 --- a/system/Tnb.Systems.Entitys/Tnb.Systems.Entitys.csproj +++ b/system/Tnb.Systems.Entitys/Tnb.Systems.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8618; diff --git a/system/Tnb.Systems.Interfaces/Tnb.Systems.Interfaces.csproj b/system/Tnb.Systems.Interfaces/Tnb.Systems.Interfaces.csproj index 2d9293a0..42ab777d 100644 --- a/system/Tnb.Systems.Interfaces/Tnb.Systems.Interfaces.csproj +++ b/system/Tnb.Systems.Interfaces/Tnb.Systems.Interfaces.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8625; diff --git a/system/Tnb.Systems/System/ModuleDataAuthorizeSchemeService.cs b/system/Tnb.Systems/System/ModuleDataAuthorizeSchemeService.cs index 2ff51eba..b38d1292 100644 --- a/system/Tnb.Systems/System/ModuleDataAuthorizeSchemeService.cs +++ b/system/Tnb.Systems/System/ModuleDataAuthorizeSchemeService.cs @@ -143,7 +143,7 @@ public class ModuleDataAuthorizeSchemeService : IModuleDataAuthorizeSchemeServic /// 功能主键. /// [NonAction] - public async Task> GetList(string moduleId) + public async Task> GetList(string? moduleId) { return await _repository.AsQueryable().Where(x => x.DeleteMark == null && x.ModuleId == moduleId).OrderBy(a => a.SortCode).OrderBy(a => a.CreatorTime, OrderByType.Desc).OrderBy(a => a.LastModifyTime, OrderByType.Desc).ToListAsync(); } diff --git a/system/Tnb.Systems/Tnb.Systems.csproj b/system/Tnb.Systems/Tnb.Systems.csproj index 328587e7..35ba2198 100644 --- a/system/Tnb.Systems/Tnb.Systems.csproj +++ b/system/Tnb.Systems/Tnb.Systems.csproj @@ -1,4 +1,4 @@ - + @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8619;CS8625;CS8629;CS1572;CS1573;CS0168;CS4014;CS1998; diff --git a/taskschedule/Tnb.TaskScheduler.Entitys/Tnb.TaskScheduler.Entitys.csproj b/taskschedule/Tnb.TaskScheduler.Entitys/Tnb.TaskScheduler.Entitys.csproj index f0f0d51f..4abeef78 100644 --- a/taskschedule/Tnb.TaskScheduler.Entitys/Tnb.TaskScheduler.Entitys.csproj +++ b/taskschedule/Tnb.TaskScheduler.Entitys/Tnb.TaskScheduler.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn)CS8604; diff --git a/taskschedule/Tnb.TaskScheduler/Tnb.TaskScheduler.csproj b/taskschedule/Tnb.TaskScheduler/Tnb.TaskScheduler.csproj index f2dfa7fb..966534a1 100644 --- a/taskschedule/Tnb.TaskScheduler/Tnb.TaskScheduler.csproj +++ b/taskschedule/Tnb.TaskScheduler/Tnb.TaskScheduler.csproj @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8625;CS1572;CS1573; diff --git a/visualdev/Tnb.VisualDev.Engine/Tnb.VisualDev.Engine.csproj b/visualdev/Tnb.VisualDev.Engine/Tnb.VisualDev.Engine.csproj index 50f2e5c3..1d9eedd5 100644 --- a/visualdev/Tnb.VisualDev.Engine/Tnb.VisualDev.Engine.csproj +++ b/visualdev/Tnb.VisualDev.Engine/Tnb.VisualDev.Engine.csproj @@ -1,4 +1,4 @@ - + @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8618;CS8625;CS8629;CS1572;CS1573;CS0168; diff --git a/visualdev/Tnb.VisualDev.Entitys/Dto/VisualDevModelData/VisualDevModelListQueryInput.cs b/visualdev/Tnb.VisualDev.Entitys/Dto/VisualDevModelData/VisualDevModelListQueryInput.cs index f05956df..5a5f52d8 100644 --- a/visualdev/Tnb.VisualDev.Entitys/Dto/VisualDevModelData/VisualDevModelListQueryInput.cs +++ b/visualdev/Tnb.VisualDev.Entitys/Dto/VisualDevModelData/VisualDevModelListQueryInput.cs @@ -8,10 +8,11 @@ namespace JNPF.VisualDev.Entitys.Dto.VisualDevModelData; /// public class VisualDevModelListQueryInput : PageInputBase { - /// - /// 菜单ID. - /// - public string menuId { get; set; } + //modified by PhilPan + ///// + ///// 菜单ID. + ///// + //public string menuId { get; set; } /// /// 选择导出数据key. diff --git a/visualdev/Tnb.VisualDev.Entitys/Tnb.VisualDev.Entitys.csproj b/visualdev/Tnb.VisualDev.Entitys/Tnb.VisualDev.Entitys.csproj index 1e177c15..76aef262 100644 --- a/visualdev/Tnb.VisualDev.Entitys/Tnb.VisualDev.Entitys.csproj +++ b/visualdev/Tnb.VisualDev.Entitys/Tnb.VisualDev.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8618; diff --git a/visualdev/Tnb.VisualDev/RunService.cs b/visualdev/Tnb.VisualDev/RunService.cs index fd1b9b98..498e1ba3 100644 --- a/visualdev/Tnb.VisualDev/RunService.cs +++ b/visualdev/Tnb.VisualDev/RunService.cs @@ -57,10 +57,10 @@ public class RunService : IRunService, ITransient /// private readonly IBillRullService _billRuleService; - /// - /// 缓存管理. - /// - private readonly ICacheManager _cacheManager; + ///// + ///// 缓存管理. + ///// + //private readonly ICacheManager _cacheManager; /// /// 用户管理. diff --git a/visualdev/Tnb.VisualDev/Tnb.VisualDev.csproj b/visualdev/Tnb.VisualDev/Tnb.VisualDev.csproj index 10a3c287..e6e5b41b 100644 --- a/visualdev/Tnb.VisualDev/Tnb.VisualDev.csproj +++ b/visualdev/Tnb.VisualDev/Tnb.VisualDev.csproj @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8625;CS8629;CS1572;CS1573;CS0168; diff --git a/visualdev/Tnb.VisualDev/VisualDevModelDataService.cs b/visualdev/Tnb.VisualDev/VisualDevModelDataService.cs index 13a2b694..64407b37 100644 --- a/visualdev/Tnb.VisualDev/VisualDevModelDataService.cs +++ b/visualdev/Tnb.VisualDev/VisualDevModelDataService.cs @@ -872,7 +872,7 @@ namespace JNPF.VisualDev var len = rowChildDatas.Select(x => x.Value.Count()).OrderByDescending(x => x).FirstOrDefault(); - if (len != null && len > 0) + if (len > 0) { for (int i = 0; i < len; i++) { diff --git a/visualdev/Tnb.VisualDev/VisualDevService.cs b/visualdev/Tnb.VisualDev/VisualDevService.cs index 94151705..7bf72960 100644 --- a/visualdev/Tnb.VisualDev/VisualDevService.cs +++ b/visualdev/Tnb.VisualDev/VisualDevService.cs @@ -1281,7 +1281,7 @@ public class VisualDevService : IVisualDevService, IDynamicApiController, ITrans foreach (DbTableAndFieldModel? item in addTableList) { bool res = await _changeDataBase.Create(link, item, item.FieldList); - if (!res) throw null; + if (!res) Oops.Oh(ErrorCode.COM1008); // throw null; } if (await _visualDevRepository.IsAnyAsync(x => x.Id.Equals(vEntity.Id))) diff --git a/visualdev/Tnb.VisualDev/VisualdevModelAppService.cs b/visualdev/Tnb.VisualDev/VisualdevModelAppService.cs index 1a1d04d7..04233a29 100644 --- a/visualdev/Tnb.VisualDev/VisualdevModelAppService.cs +++ b/visualdev/Tnb.VisualDev/VisualdevModelAppService.cs @@ -409,7 +409,7 @@ public class VisualdevModelAppService : IDynamicApiController, ITransient var len = rowChildDatas.Select(x => x.Value.Count()).OrderByDescending(x => x).FirstOrDefault(); - if (len != null && len > 0) + if (len > 0) { for (int i = 0; i < len; i++) { diff --git a/workflow/Tnb.WorkFlow.Entitys/Tnb.WorkFlow.Entitys.csproj b/workflow/Tnb.WorkFlow.Entitys/Tnb.WorkFlow.Entitys.csproj index 358cdc7b..938c5f8a 100644 --- a/workflow/Tnb.WorkFlow.Entitys/Tnb.WorkFlow.Entitys.csproj +++ b/workflow/Tnb.WorkFlow.Entitys/Tnb.WorkFlow.Entitys.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8618; diff --git a/workflow/Tnb.WorkFlow.Interfaces/Tnb.WorkFlow.Interfaces.csproj b/workflow/Tnb.WorkFlow.Interfaces/Tnb.WorkFlow.Interfaces.csproj index 23d1885c..04a146bb 100644 --- a/workflow/Tnb.WorkFlow.Interfaces/Tnb.WorkFlow.Interfaces.csproj +++ b/workflow/Tnb.WorkFlow.Interfaces/Tnb.WorkFlow.Interfaces.csproj @@ -6,6 +6,7 @@ enable enable False + $(NoWarn);CS8625; diff --git a/workflow/Tnb.WorkFlow/Tnb.WorkFlow.csproj b/workflow/Tnb.WorkFlow/Tnb.WorkFlow.csproj index 3f246622..261223a1 100644 --- a/workflow/Tnb.WorkFlow/Tnb.WorkFlow.csproj +++ b/workflow/Tnb.WorkFlow/Tnb.WorkFlow.csproj @@ -6,6 +6,7 @@ enable enable True + $(NoWarn);CS8600;CS8601;CS8602;CS8603;CS8604;CS8619;CS8620;CS8625;CS8629;CS1572;CS1573;CS0168;CS4014;CS1998;