123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662 |
- <?xml version="1.0" encoding="utf-8"?>
- <?xml-stylesheet type="text/xsl" href="c:\program files (x86)\microsoft visual studio\2019\community\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.xsl"?>
- <FxCopReport Version="16.0">
- <Targets>
- <Target Name="E:\图形处理\最新版程序\winform210526\SystemLayer\bin\Release\PaintDotNet.SystemLayer.dll">
- <Modules>
- <Module Name="paintdotnet.systemlayer.dll">
- <Messages>
- <Message TypeName="MarkAssembliesWithNeutralResourcesLanguage" Category="Microsoft.Performance" CheckId="CA1824" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="95" Level="Warning">由于程序集 'PaintDotNet.SystemLayer.dll' 包含基于 ResX 的资源文件,因此请使用 NeutralResourcesLanguage 特性来标记它,并指定该程序集内的资源所采用的语言。这会改进首次检索资源时的查找性能。</Issue>
- </Message>
- </Messages>
- <Namespaces>
- <Namespace Name="PaintDotNet.SystemLayer">
- <Types>
- <Type Name="FileSystem" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#WriteToStream(System.IO.FileStream,System.Void*,System.UInt32)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle" TypeName="AvoidCallingProblematicMethods" Category="Microsoft.Reliability" CheckId="CA2001" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="FileSystem.cs" Line="150">从 'FileSystem.WriteToStream(FileStream, void*, uint)' 中移除对 SafeHandle.DangerousGetHandle 的调用。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#WriteToStreamingFileGather(System.IO.FileStream,System.Void*[],System.UInt32[])" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle" TypeName="AvoidCallingProblematicMethods" Category="Microsoft.Reliability" CheckId="CA2001" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="FileSystem.cs" Line="368">从 'FileSystem.WriteToStreamingFileGather(FileStream, void*[], uint[])' 中移除对 SafeHandle.DangerousGetHandle 的调用。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="FormEx" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#HandleParentWndProc(System.Windows.Forms.Message&)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="m" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="MemberParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="FormEx.cs" Line="124">在方法 'FormEx.HandleParentWndProc(ref Message)' 中,考虑将参数名称 'm' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="NativeConstants" Kind="Class" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#BHID_Stream" Kind="Property" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Accessors>
- <Accessor Name="#get_BHID_Stream()" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="NativeConstants.cs" Line="100">'NativeConstants.BHID_Stream.get()' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Accessor>
- </Accessors>
- </Member>
- </Members>
- </Type>
- <Type Name="NativeMethods" Kind="Class" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#CloseClipboard()" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.CloseClipboard()' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#EnumWindows(PaintDotNet.SystemLayer.NativeDelegates+EnumWindowsProc,System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.EnumWindows(NativeDelegates.EnumWindowsProc, IntPtr)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#GetClipboardData(System.UInt32)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.GetClipboardData(uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#IsClipboardFormatAvailable(System.UInt32)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.IsClipboardFormatAvailable(uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#OpenClipboard(System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.OpenClipboard(IntPtr)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SHCreateItemFromParsingName(System.String,System.IntPtr,System.Guid&,System.IntPtr&)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.SHCreateItemFromParsingName(string, IntPtr, ref Guid, out IntPtr)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SUCCEEDED(System.Int32)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="NativeMethods.cs" Line="12">'NativeMethods.SUCCEEDED(int)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#WaitForInputIdle(System.IntPtr,System.UInt32)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.WaitForInputIdle(IntPtr, uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="PdnGraphics" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#DrawPolyLine(System.Drawing.Graphics,System.Drawing.Color,System.Drawing.Point[])" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="g" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="MemberParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="PdnGraphics.cs" Line="308">在方法 'PdnGraphics.DrawPolyLine(Graphics, Color, Point[])' 中,考虑将参数名称 'g' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#FillRectangles(System.Drawing.Graphics,System.Drawing.Color,System.Drawing.Rectangle[])" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="g" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="MemberParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="PdnGraphics.cs" Line="400">在方法 'PdnGraphics.FillRectangles(Graphics, Color, Rectangle[])' 中,考虑将参数名称 'g' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="PropertyItem2" Kind="Class" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#GetProperty(System.String,System.String)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message Id="System.String.IndexOf(System.String)" TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="95" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="PropertyItem2.cs" Line="115">由于 'string.IndexOf(string)' 的行为可能会因当前用户的区域设置不同而不同,请将 'PropertyItem2.GetProperty(string, string)' 中的此调用替换为对 'string.IndexOf(string, StringComparison)' 的调用。如果要向用户显示 'string.IndexOf(string, StringComparison)' 的结果(例如,在对一个项列表进行排序以便在列表框中显示时),请指定“StringComparison.CurrentCulture”或“StringComparison.CurrentCultureIgnoreCase”作为“StringComparison”参数。如果比较不区分大小写的标识符(例如,文件路径、环境变量或注册表项和值),则指定“StringComparison.OrdinalIgnoreCase”。或者,如果比较区分大小写的标识符,则指定“StringComparison.Ordinal”。</Issue>
- </Message>
- <Message Id="System.String.IndexOf(System.String,System.Int32)" TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="95" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="PropertyItem2.cs" Line="116">由于 'string.IndexOf(string, int)' 的行为可能会因当前用户的区域设置不同而不同,请将 'PropertyItem2.GetProperty(string, string)' 中的此调用替换为对 'string.IndexOf(string, int, StringComparison)' 的调用。如果要向用户显示 'string.IndexOf(string, int, StringComparison)' 的结果(例如,在对一个项列表进行排序以便在列表框中显示时),请指定“StringComparison.CurrentCulture”或“StringComparison.CurrentCultureIgnoreCase”作为“StringComparison”参数。如果比较不区分大小写的标识符(例如,文件路径、环境变量或注册表项和值),则指定“StringComparison.OrdinalIgnoreCase”。或者,如果比较区分大小写的标识符,则指定“StringComparison.Ordinal”。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="RealParentWndProcDelegate" Kind="Delegate" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="m" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="DelegateParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning">在委托 'RealParentWndProcDelegate' 中,考虑将参数名称 'm' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Type>
- <Type Name="SafeNativeMethods" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#BitBlt(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,System.Int32,System.Int32,System.Int32)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.BitBlt(IntPtr, int, int, int, int, IntPtr, int, int, int)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#CreateCompatibleBitmap(System.IntPtr,System.Int32,System.Int32)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.CreateCompatibleBitmap(IntPtr, int, int)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#CreateCompatibleDC(System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.CreateCompatibleDC(IntPtr)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#CreateFontW(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.String)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.CreateFontW(int, int, int, int, int, uint, uint, uint, uint, uint, uint, uint, uint, string)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#DeleteDC(System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.DeleteDC(IntPtr)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#DeleteObject(System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.DeleteObject(IntPtr)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#DrawTextW(System.IntPtr,System.String,System.Int32,PaintDotNet.SystemLayer.NativeStructs+RECT&,System.UInt32)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.DrawTextW(IntPtr, string, int, ref NativeStructs.RECT, uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#GetCurrentThread()" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.GetCurrentThread()' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#GetDesktopWindow()" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.GetDesktopWindow()' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#GetWindowDC(System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.GetWindowDC(IntPtr)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#GetWindowRect(System.IntPtr,PaintDotNet.SystemLayer.SafeNativeMethods+RECT&)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="return" TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="Return" Certainty="95" Level="Error">如代码中所声明的,P/Invoke 'SafeNativeMethods.GetWindowRect(IntPtr, ref SafeNativeMethods.RECT)' 的返回类型在 64 位 平台上的字节宽度将为 8。这是不正确的,因为此 API 的实际本机声明表明该返回类型在 64 位 平台上的字节宽度应为 4。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 'IntPtr'。</Issue>
- </Message>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.GetWindowRect(IntPtr, ref SafeNativeMethods.RECT)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#GlobalFree(System.IntPtr)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.GlobalFree(IntPtr)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#ReleaseDC(System.IntPtr,System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="return" TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="Return" Certainty="95" Level="Error">如代码中所声明的,P/Invoke 'SafeNativeMethods.ReleaseDC(IntPtr, IntPtr)' 的返回类型在 64 位 平台上的字节宽度将为 8。这是不正确的,因为此 API 的实际本机声明表明该返回类型在 64 位 平台上的字节宽度应为 4。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 'IntPtr'。</Issue>
- </Message>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.ReleaseDC(IntPtr, IntPtr)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SelectObject(System.IntPtr,System.IntPtr)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Certainty="50" Level="CriticalError">更改 P/Invoke 'SafeNativeMethods.SelectObject(IntPtr, IntPtr)' 的可访问性,使它在自己的程序集外部不再是可见的。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SendMessage(System.IntPtr,System.Int32,System.Int32,System.String)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message Id="2" TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="Parameter" Certainty="95" Level="Error">如代码中所声明的,P/Invoke 'SafeNativeMethods.SendMessage(IntPtr, int, int, string)' 的参数 'wParam' 在 64 位 平台上的字节宽度将为 4。这是不正确的,因为此 API 的实际本机声明表明该参数在 64 位 平台上的字节宽度应为 8。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 'int'。</Issue>
- </Message>
- <Message Id="return" TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="Return" Certainty="95" Level="Error">如代码中所声明的,P/Invoke 'SafeNativeMethods.SendMessage(IntPtr, int, int, string)' 的返回类型在 64 位 平台上的字节宽度将为 4。这是不正确的,因为此 API 的实际本机声明表明该返回类型在 64 位 平台上的字节宽度应为 8。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 'int'。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SendMessage(System.IntPtr,System.Int32,System.Int32,System.Text.StringBuilder)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message Id="2" TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="Parameter" Certainty="95" Level="Error">如代码中所声明的,P/Invoke 'SafeNativeMethods.SendMessage(IntPtr, int, int, StringBuilder)' 的参数 'wParam' 在 64 位 平台上的字节宽度将为 4。这是不正确的,因为此 API 的实际本机声明表明该参数在 64 位 平台上的字节宽度应为 8。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 'int'。</Issue>
- </Message>
- <Message Id="return" TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="Return" Certainty="95" Level="Error">如代码中所声明的,P/Invoke 'SafeNativeMethods.SendMessage(IntPtr, int, int, StringBuilder)' 的返回类型在 64 位 平台上的字节宽度将为 4。这是不正确的,因为此 API 的实际本机声明表明该返回类型在 64 位 平台上的字节宽度应为 8。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 'bool'。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SetThreadPriority(System.IntPtr,System.Int32)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.SetThreadPriority(IntPtr, int)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#StretchBlt(System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.StretchBlt(IntPtr, int, int, int, int, IntPtr, int, int, int, int, uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#WinHttpGetIEProxyConfigForCurrentUser(PaintDotNet.SystemLayer.NativeStructs+WINHTTP_CURRENT_USER_IE_PROXY_CONFIG&)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'SafeNativeMethods.WinHttpGetIEProxyConfigForCurrentUser(ref NativeStructs.WINHTTP_CURRENT_USER_IE_PROXY_CONFIG)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="SingleInstanceManager" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#FilterMessage(System.Windows.Forms.Message&)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="m" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="MemberParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="SingleInstaceManager.cs" Line="193">在方法 'SingleInstanceManager.FilterMessage(ref Message)' 中,考虑将参数名称 'm' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="ToolStripEx" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#TextBox_Leave(System.Object,System.EventArgs)" Kind="Method" Static="False" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="ToolStripEx.cs" Line="167">'ToolStripEx.TextBox_Leave(object, EventArgs)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="Tracing" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#WriteLine(System.String)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="Tracing.cs" Line="21">'Tracing.WriteLine(string)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="UI" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#DetermineVisualStyleClassImpl()" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message Id="System.String.Compare(System.String,System.String,System.StringComparison)" TypeName="UseOrdinalStringComparison" Category="Microsoft.Globalization" CheckId="CA1309" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="539">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="539">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="544">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="544">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="547">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="547">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- <Issue Name="StringComparison" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="547">'UI.DetermineVisualStyleClassImpl()' 将“StringComparison.InvariantCulture”作为“StringComparison”参数传递给 'string.Compare(string, string, StringComparison)'。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#DrawCommandButton(System.Drawing.Graphics,System.Windows.Forms.VisualStyles.PushButtonState,System.Drawing.Rectangle,System.Drawing.Color,System.Windows.Forms.Control)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="g" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="MemberParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="164">在方法 'UI.DrawCommandButton(Graphics, PushButtonState, Rectangle, Color, Control)' 中,考虑将参数名称 'g' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#InitScaling(System.Windows.Forms.Control)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="c" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="Breaking">
- <Issue Name="MemberParameterMoreMeaningfulName" Certainty="75" Level="CriticalWarning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="UI.cs" Line="99">在方法 'UI.InitScaling(Control)' 中,考虑将参数名称 'c' 改为一个更能体现其意义的名称。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="WaitHandleArray" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#Item[System.Int32]" Kind="Property" Static="False" Accessibility="Public" ExternallyVisible="True">
- <Accessors>
- <Accessor Name="#set_Item(System.Int32,System.Threading.WaitHandle)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message Id="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle" TypeName="AvoidCallingProblematicMethods" Category="Microsoft.Reliability" CheckId="CA2001" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle" Certainty="75" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer" File="WaitHandleArray.cs" Line="43">从 'WaitHandleArray.this.set(int, WaitHandle)' 中移除对 SafeHandle.DangerousGetHandle 的调用。</Issue>
- </Message>
- </Messages>
- </Accessor>
- </Accessors>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- <Namespace Name="PaintDotNet.SystemLayer.FileDlgExtenders.FileDialogExtenders">
- <Types>
- <Type Name="FileDialogControlBase+WholeDialogWrapper" Kind="Class" Accessibility="Private" ExternallyVisible="False">
- <Members>
- <Member Name="#FileDialogEnumWindowCallBack(System.IntPtr,System.Int32)" Kind="Method" Static="False" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message Id="System.String.StartsWith(System.String)" TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="95" Level="Error" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="HelperTypes.cs" Line="302">由于 'string.StartsWith(string)' 的行为可能会因当前用户的区域设置不同而不同,请将 'FileDialogControlBase.WholeDialogWrapper.FileDialogEnumWindowCallBack(IntPtr, int)' 中的此调用替换为对 'string.StartsWith(string, StringComparison)' 的调用。如果要向用户显示 'string.StartsWith(string, StringComparison)' 的结果(例如,在对一个项列表进行排序以便在列表框中显示时),请指定“StringComparison.CurrentCulture”或“StringComparison.CurrentCultureIgnoreCase”作为“StringComparison”参数。如果比较不区分大小写的标识符(例如,文件路径、环境变量或注册表项和值),则指定“StringComparison.OrdinalIgnoreCase”。或者,如果比较区分大小写的标识符,则指定“StringComparison.Ordinal”。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="FileDialogPlaces" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#m_places" Kind="Field" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message TypeName="ReviewMisleadingFieldNames" Category="Microsoft.Maintainability" CheckId="CA1504" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Name="Static" Certainty="95" Level="Warning">从字段名 'FileDialogPlaces.m_places' 可看出该字段是实例数据,但它被声明为 Static (在 Visual Basic 中为 Shared)。请检查此成员,验证它是否应为静态数据,或者考虑更改字段名。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- <Namespace Name="PaintDotNet.SystemLayer.FileDlgExtenders.Win32Types">
- <Types>
- <Type Name="NativeMethods" Kind="Class" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#SetDlgItemText(System.IntPtr,System.Int32,System.String)" Kind="Method" Static="True" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning">'NativeMethods.SetDlgItemText(IntPtr, int, string)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="POINT" Kind="Struct" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#.ctor(System.Drawing.Point)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="structs.cs" Line="46">'POINT.POINT(Point)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#.ctor(System.Int32,System.Int32)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="structs.cs" Line="40">'POINT.POINT(int, int)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="RECT" Kind="Struct" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#Height" Kind="Property" Static="False" Accessibility="Assembly" ExternallyVisible="False">
- <Accessors>
- <Accessor Name="#set_Height(System.UInt32)" Kind="Method" Static="False" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="structs.cs" Line="86">'RECT.Height.set(uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Accessor>
- </Accessors>
- </Member>
- <Member Name="#Location" Kind="Property" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Accessors>
- <Accessor Name="#get_Location()" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="structs.cs" Line="67">'RECT.Location.get()' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Accessor>
- <Accessor Name="#set_Location(PaintDotNet.SystemLayer.FileDlgExtenders.Win32Types.POINT)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="structs.cs" Line="70">'RECT.Location.set(POINT)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Accessor>
- </Accessors>
- </Member>
- <Member Name="#Width" Kind="Property" Static="False" Accessibility="Assembly" ExternallyVisible="False">
- <Accessors>
- <Accessor Name="#set_Width(System.UInt32)" Kind="Method" Static="False" Accessibility="Assembly" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\FileDlgExtenders" File="structs.cs" Line="80">'RECT.Width.set(uint)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Accessor>
- </Accessors>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- <Namespace Name="PaintDotNet.SystemLayer.GpcWrapper">
- <Types>
- <Type Name="Polygon" Kind="Class" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#Clip(System.Drawing.Drawing2D.CombineMode,PaintDotNet.SystemLayer.GpcWrapper.Polygon)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\GpcWrapper" File="Polygon.cs" Line="84">'Polygon.Clip(CombineMode, Polygon)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="VertexList" Kind="Class" Accessibility="Assembly" ExternallyVisible="False">
- <Members>
- <Member Name="#.ctor(PaintDotNet.SystemLayer.GpcWrapper.Vertex[])" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\GpcWrapper" File="VertexList.cs" Line="16">'VertexList.VertexList(Vertex[])' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#.ctor(PaintDotNet.SystemLayer.GpcWrapper.Vertex[],System.Boolean)" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\GpcWrapper" File="VertexList.cs" Line="20">'VertexList.VertexList(Vertex[], bool)' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#ToGraphicsPath()" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\GpcWrapper" File="VertexList.cs" Line="44">'VertexList.ToGraphicsPath()' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#TristripToGraphicsPath()" Kind="Method" Static="False" Accessibility="Public" ExternallyVisible="False">
- <Messages>
- <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Active" Created="2021-07-14 08:57:21Z" FixCategory="NonBreaking">
- <Issue Certainty="75" Level="Warning" Path="E:\图形处理\最新版程序\winform210526\SystemLayer\GpcWrapper" File="VertexList.cs" Line="61">'VertexList.TristripToGraphicsPath()' 似乎没有上游 public 或 protected 调用方。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- </Namespaces>
- </Module>
- </Modules>
- </Target>
- </Targets>
- <Rules>
- <Rule TypeName="AvoidCallingProblematicMethods" Category="Microsoft.Reliability" CheckId="CA2001">
- <Name>避免调用有问题的方法</Name>
- <Description>避免进行不必要和具有潜在危险的方法调用。</Description>
- <Resolution Name="System.Runtime.InteropServices.SafeHandle.DangerousGetHandle">从 {0} 中移除对 SafeHandle.DangerousGetHandle 的调用。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/bb385973.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="75">Error</MessageLevel>
- <File Name="reliabilityrules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811">
- <Name>避免使用未调用的私有代码</Name>
- <Description>存在对外部不可见的未调用代码,该代码不是已知的运行时入口点。如果错误地引发此冲突,请向 Visual Studio Code Analysis 团队发送问题报告。</Description>
- <Resolution Name="Default">{0} 似乎没有上游 public 或 protected 调用方。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/ms182264.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="75">Warning</MessageLevel>
- <File Name="performancerules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704">
- <Name>标识符应正确拼写</Name>
- <Description>组成标识符的各单词不应缩写,并且应正确拼写。如果此规则对应识别的词条产生了误报,请将该词添加到 FxCop 自定义字典中。</Description>
- <Resolution Name="DelegateParameterMoreMeaningfulName">在委托 {0} 中,考虑将参数名称 {1} 改为一个更能体现其意义的名称。</Resolution>
- <Resolution Name="MemberParameterMoreMeaningfulName">在方法 {0} 中,考虑将参数名称 {1} 改为一个更能体现其意义的名称。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/bb264492.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="75">CriticalWarning</MessageLevel>
- <File Name="namingrules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="MarkAssembliesWithNeutralResourcesLanguage" Category="Microsoft.Performance" CheckId="CA1824">
- <Name>用 NeutralResourcesLanguageAttribute 标记程序集</Name>
- <Description>NeutralResourcesLanguage 特性将用来呈现非特定区域性的程序集资源的语言通知给 ResourceManager。在查找与非特定区域性语言具有相同区域性的资源时,ResourceManager 会自动使用位于主程序集内的资源,而不是搜索具有当前线程的当前用户界面区域性的附属程序集。这会改进所加载的第一个资源的查找性能,并缩小工作集。</Description>
- <Resolution Name="Default">由于程序集 {0} 包含基于 ResX 的资源文件,因此请使用 NeutralResourcesLanguage 特性来标记它,并指定该程序集内的资源所采用的语言。这会改进首次检索资源时的查找性能。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/bb385967.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="95">Warning</MessageLevel>
- <File Name="performancerules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="PInvokeDeclarationsShouldBePortable" Category="Microsoft.Portability" CheckId="CA1901">
- <Name>P/Invoke 声明应为可移植声明</Name>
- <Description>.</Description>
- <Resolution Name="Parameter">如代码中所声明的,P/Invoke {1} 的参数 {0} 在 {3} 平台上的字节宽度将为 {2}。这是不正确的,因为此 API 的实际本机声明表明该参数在 {3} 平台上的字节宽度应为 {4}。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 {5}。</Resolution>
- <Resolution Name="Return">如代码中所声明的,P/Invoke {0} 的返回类型在 {2} 平台上的字节宽度将为 {1}。这是不正确的,因为此 API 的实际本机声明表明该返回类型在 {2} 平台上的字节宽度应为 {3}。请参考 MSDN Platform SDK 文档来获取帮助,确定应使用哪种数据类型来代替 {4}。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/ms182284(VS.100).aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="95">Error</MessageLevel>
- <File Name="portabilityrules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="PInvokesShouldNotBeVisible" Category="Microsoft.Interoperability" CheckId="CA1401">
- <Name>P/Invokes 应该是不可见的</Name>
- <Description>互操作层不应该是公共的。DllImport 特性不应该应用于可公开访问的成员(公共成员或受保护的成员)。</Description>
- <Resolution Name="Default">更改 P/Invoke {0} 的可访问性,使它在自己的程序集外部不再是可见的。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/ms182209.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="50">CriticalError</MessageLevel>
- <File Name="interoperabilityrules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="ReviewMisleadingFieldNames" Category="Microsoft.Maintainability" CheckId="CA1504">
- <Name>检查令人误解的字段名</Name>
- <Description>检查字段名,按照惯例,字段名会指示字段是实例字段还是静态字段,但实际上并非如此。此规则会对前缀为“s”的实例字段以及前缀为“m_”的静态字段引发。</Description>
- <Resolution Name="Static">从字段名 {0} 可看出该字段是实例数据,但它被声明为 Static (在 Visual Basic 中为 Shared)。请检查此成员,验证它是否应为静态数据,或者考虑更改字段名。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/bb164506.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="95">Warning</MessageLevel>
- <File Name="maintainabilityrules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307">
- <Name>指定 StringComparison</Name>
- <Description>如果存在采用 StringComparison 参数的重载,则始终先调用此重载,而不是那些不接受该参数的重载。</Description>
- <Resolution Name="Default">由于 {0} 的行为可能会因当前用户的区域设置不同而不同,请将 {1} 中的此调用替换为对 {2} 的调用。如果要向用户显示 {2} 的结果(例如,在对一个项列表进行排序以便在列表框中显示时),请指定“StringComparison.CurrentCulture”或“StringComparison.CurrentCultureIgnoreCase”作为“StringComparison”参数。如果比较不区分大小写的标识符(例如,文件路径、环境变量或注册表项和值),则指定“StringComparison.OrdinalIgnoreCase”。或者,如果比较区分大小写的标识符,则指定“StringComparison.Ordinal”。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/bb386080.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="95">Error</MessageLevel>
- <File Name="globalizationrules.dll" Version="16.0.0.0" />
- </Rule>
- <Rule TypeName="UseOrdinalStringComparison" Category="Microsoft.Globalization" CheckId="CA1309">
- <Name>使用按顺序的 StringComparison</Name>
- <Description>对于非语义比较,应使用 StringComparison.Ordinal 或 StringComparison.OrdinalIgnoreCase,而不使用区分语义的 StringComparison.InvariantCulture。</Description>
- <Resolution Name="StringComparison">{0} 将“{1}”作为“StringComparison”参数传递给 {2}。若要执行非语义比较,请改为指定“StringComparison.Ordinal”或“StringComparison.OrdinalIgnoreCase”。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/bb385972.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="75">Error</MessageLevel>
- <File Name="globalizationrules.dll" Version="16.0.0.0" />
- </Rule>
- </Rules>
- <Localized>
- <String Key="Category">类别</String>
- <String Key="Certainty">确定性</String>
- <String Key="CollapseAll">全部折叠</String>
- <String Key="CheckId">检查 ID</String>
- <String Key="Error">错误</String>
- <String Key="Errors">错误</String>
- <String Key="ExpandAll">全部展开</String>
- <String Key="Help">帮助</String>
- <String Key="Line">行</String>
- <String Key="Messages">消息</String>
- <String Key="LocationNotStoredInPdb">[位置未存储在 Pdb 中]</String>
- <String Key="Project">项目</String>
- <String Key="Resolution">解析</String>
- <String Key="Rule">规则</String>
- <String Key="RuleFile">规则文件</String>
- <String Key="RuleDescription">规则说明</String>
- <String Key="Source">源</String>
- <String Key="Status">状态</String>
- <String Key="Target">目标</String>
- <String Key="Warning">警告</String>
- <String Key="Warnings">警告</String>
- <String Key="ReportTitle">代码分析报告</String>
- </Localized>
- </FxCopReport>
|