WeiXinMPSDK icon indicating copy to clipboard operation
WeiXinMPSDK copied to clipboard

Senparc.Weixin.MP.Middleware 出现warning AD0001

Open wangliezhou opened this issue 3 years ago • 13 comments

微信截图_20210713101049 只要引用了Senparc.Weixin.MP.Middleware就会出现找个警告

wangliezhou avatar Jul 13 '21 02:07 wangliezhou

我本地编译Sample没有看到这个异常,这个模块本身没有这个风险,是按照标准的中间件做的。

是否能提供一个能重现这个提示的最小化的Demo?

JeffreySu avatar Jul 16 '21 16:07 JeffreySu

整个项目只引用Senparc.Weixin.MP.Middleware,去掉就没有我截图的那个警告

------------------ 原始邮件 ------------------ 发件人: "JeffreySu/WeiXinMPSDK" @.>; 发送时间: 2021年7月17日(星期六) 凌晨0:38 @.>; @.@.>; 主题: Re: [JeffreySu/WeiXinMPSDK] Senparc.Weixin.MP.Middleware 出现warning AD0001 (#2393)

我本地编译Sample没有看到这个异常,这个模块本身没有这个风险,是按照标准的中间件做的。

是否能提供一个能重现这个提示的最小化的Demo?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

从QQ邮箱发来的超大附件

YC.InitialCore.7z (55.80M, 2021年08月18日 17:28 到期)进入下载页面:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=20363430ff10bacaeb60127e16320b195004060306005d024b575107551f0d060753195209010e1b0303575609075d045e5202033023396f25187d5e594650570a755b42551c0e4c660b&code=f6400296

wangliezhou avatar Jul 19 '21 09:07 wangliezhou

初步判断是 ..NET 5.0+ 的Web项目 对应的分析器的问题,我尝试了几种不同的组合: 1、.NET 5.0 的命令行程序,正常: image

2、.NET Core 3.1 的 Web 项目,正常: image

3、.NET 6.0 的 Web 项目,正常: image

关于 .NET 6.0,我在 SDK 的 Sample 中也看到了相同的警告。

目前所有测试来看,这个警告不会影响系统实际运行,我会继续关注。如果您有其他测试结果欢迎讨论。

JeffreySu avatar Jul 19 '21 15:07 JeffreySu

image

遇到相同的问题,项目当前框架 .NET 5 , VS2019 16.11.0 , 初步分析好像跟 AspNetCore 2.2 有关

91270 avatar Aug 16 '21 16:08 91270

image

遇到相同的问题,项目当前框架 .NET 5 , VS2019 16.11.0 , 初步分析好像跟 AspNetCore 2.2 有关

好像是和特定版本有关,但是我这里没有影响编译结果或者运行,你们那边有实际影响吗?

JeffreySu avatar Aug 17 '21 07:08 JeffreySu

这个其实是兼顾2.2MVC老版本引用了Microsoft.AspNetCore.MVC 2.2.0导致的,并不影响编译,不过引起强迫症的不适。 .net core 2.1将于August 21, 2021停止支持,可以考虑在新版本中移除或改用新的写法 微信截图_20210817152448

lishewen avatar Aug 17 '21 07:08 lishewen

image 遇到相同的问题,项目当前框架 .NET 5 , VS2019 16.11.0 , 初步分析好像跟 AspNetCore 2.2 有关

好像是和特定版本有关,但是我这里没有影响编译结果或者运行,你们那边有实际影响吗?

没有影响编译结果,但是刷屏警告有点闹心,我这的项目一般编译都是 0 warning

91270 avatar Aug 17 '21 10:08 91270

没有实际影响,只是因为看着太烦了

------------------ 原始邮件 ------------------ 发件人: "JeffreySu/WeiXinMPSDK" @.>; 发送时间: 2021年8月17日(星期二) 下午3:15 @.>; @.@.>; 主题: Re: [JeffreySu/WeiXinMPSDK] Senparc.Weixin.MP.Middleware 出现warning AD0001 (#2393)

遇到相同的问题,项目当前框架 .NET 5 , VS2019 16.11.0 , 初步分析好像跟 AspNetCore 2.2 有关

好像是和特定版本有关,但是我这里没有影响编译结果或者运行,你们那边有实际影响吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wangliezhou avatar Aug 18 '21 00:08 wangliezhou

没影响,只是因为看着太难受了

------------------ 原始邮件 ------------------ 发件人: "JeffreySu/WeiXinMPSDK" @.>; 发送时间: 2021年8月17日(星期二) 晚上6:10 @.>; @.@.>; 主题: Re: [JeffreySu/WeiXinMPSDK] Senparc.Weixin.MP.Middleware 出现warning AD0001 (#2393)

遇到相同的问题,项目当前框架 .NET 5 , VS2019 16.11.0 , 初步分析好像跟 AspNetCore 2.2 有关

好像是和特定版本有关,但是我这里没有影响编译结果或者运行,你们那边有实际影响吗?

没有影响编译结果,但是刷屏警告有点闹心,我这的项目一般编译都是 0 warning

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wangliezhou avatar Aug 18 '21 00:08 wangliezhou

大概也是知道问题出在哪,只是不知道要怎么改

------------------ 原始邮件 ------------------ 发件人: "JeffreySu/WeiXinMPSDK" @.>; 发送时间: 2021年8月17日(星期二) 下午3:25 @.>; @.@.>; 主题: Re: [JeffreySu/WeiXinMPSDK] Senparc.Weixin.MP.Middleware 出现warning AD0001 (#2393)

这个其实是兼顾2.2MVC老版本引用了Microsoft.AspNetCore.MVC 2.2.0导致的,并不影响编译,不过引起强迫症的不适。 .net core 2.1将于August 21, 2021停止支持,可以考虑在新版本中移除或改用新的写法

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wangliezhou avatar Aug 18 '21 00:08 wangliezhou

用的就是vs2019

------------------ 原始邮件 ------------------ 发件人: "JeffreySu/WeiXinMPSDK" @.>; 发送时间: 2021年8月17日(星期二) 凌晨0:53 @.>; @.@.>; 主题: Re: [JeffreySu/WeiXinMPSDK] Senparc.Weixin.MP.Middleware 出现warning AD0001 (#2393)

遇到相同的问题,当前框架 .NET 5 , 是不是你使用是 2022 预览版。 我们使用的 VS2019

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wangliezhou avatar Aug 18 '21 00:08 wangliezhou

image 遇到相同的问题,项目当前框架 .NET 5 , VS2019 16.11.0 , 初步分析好像跟 AspNetCore 2.2 有关

好像是和特定版本有关,但是我这里没有影响编译结果或者运行,你们那边有实际影响吗?

有计划进行调整么?

91270 avatar Aug 18 '21 06:08 91270

@91270 先观察一下VS新版本跟新是否能解决这个问题。目前这个提示应该不会影响执行吧?

JeffreySu avatar Sep 03 '21 07:09 JeffreySu