How to get rid of Naming rule violation messages in Visual Studio?

后端 未结 9 609
我在风中等你
我在风中等你 2020-12-14 05:10

I just installed Visual Studio 2017. When I open an existing website, I get all sorts of warning messages such as this one:

IDE1006 Naming rule violat

9条回答
  •  离开以前
    2020-12-14 06:00

    You could rename the method and add the name to the attribute with the EntryPoint property.

    [System.Runtime.InteropServices.DllImport("swedll32.dll", EntryPoint = "swe_calc")]
    public static extern Int32 SweCalc(double tjd, int ipl, Int32 iflag, IntPtr xx, IntPtr serr);
    

提交回复
热议问题