.NET可移植性分析器与.NET API浏览器结果不匹配 [英] .NET Portability Analyzer doesn't match .NET API Browser results

查看:116
本文介绍了.NET可移植性分析器与.NET API浏览器结果不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET可移植性分析器(VS扩展)与官方.NET API浏览器之间的结果有冲突:



这表明该类型仅在即将发布的.NET Core 3.0版中可用。但是,在使用上述API浏览器时,它明确指出该类型在.NET Core 2.0版中已经可用。



我更喜欢API浏览器,但是我只是想知道是否有人对可移植性分析器给出的输出有不同的解释。

解决方案

这有点棘手。该类型将是.NET Core 3.0的一部分,不会作为.NET Core 2.0或2.1的一部分提供,但可以通过其他NuGet包( System.Security.Permissions )。



这些工具和文档可能有不同的看法有关特定版本的.NET Core的一部分以及特定版本中的可用的内容。



您可以检查的其他来源是apisof.net: https://apisof.net/catalog/System.Security.Permissions。 FileIOPermissionAccess
正确地将类型列出为.NET Core 3.0和 .NET Core + Platform Extensions 2.0和2.1


I have a conflicting results between the .NET Portability Analyzer (VS extension) and the official .NET API Browser: https://docs.microsoft.com/en-us/dotnet/api

When analyzing a .NET Framework assembly with the portability analyzer, I have the following result for the type System.Security.Permissions.FileIOPermissionAccess:

This would suggest that the type is only available in the upcoming 3.0 release of .NET Core. However when using the aforementioned API browser, it clearly states that the type is already available in version .NET Core version 2.0.

I prefer to trust the API browser, but I just wondered if anyone had a different interpretation of the output given by the portability analyzer.

解决方案

This is a bit tricky. The type will be part of .NET Core 3.0, it does not ship as part of .NET Core 2.0 or 2.1, but is available via an additional NuGet package (System.Security.Permissions).

The tools and documentation may have a different view on what is "part of" a particular version of .NET Core and what is "usable" in some way on a particular version.

An additional source you can check is apisof.net: https://apisof.net/catalog/System.Security.Permissions.FileIOPermissionAccess which correctly lists the type as .NET Core 3.0 and ".NET Core + Platform Extensions" 2.0 and 2.1

这篇关于.NET可移植性分析器与.NET API浏览器结果不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆