简体   繁体   English

在C#上编译错误FreeImage

[英]Compile errors FreeImage on C#

I keep receiving several error messages (currently 35) when I try to compile FreeImageNET C# wrapper. 当我尝试编译FreeImageNET C#wrapper时,我不断收到几条错误消息(目前为35)。 All the messages are in the same format. 所有消息都采用相同的格式。

Actually I've found that this question has been asked before, and the answer was to change "typeparamref" to "paramref". 实际上我发现之前已经问过这个问题,答案是将“typeparamref”改为“paramref”。 However, the rest of the error messages includes "paramref" already, so I do not know what to change to correct these errors. 但是,其余的错误消息已经包含“paramref”,所以我不知道要更改什么来纠正这些错误。

Any help would be appreciated. 任何帮助,将不胜感激。

Two of the error messages are as follows: 其中两条错误消息如下:

Error   1   Warning as Error: XML comment on 'FreeImageAPI.Palette.Palette(FreeImageAPI.Metadata.MetadataTag)' has a paramref tag for 'dib', but there is no parameter by that name D:\[kur]\[csharp]\image_tools\FreeImage\Wrapper\FreeImage.NET\cs\Library\Classes\Palette.cs 70  63  Library


Error   2   Warning as Error: XML comment on 'FreeImageAPI.Metadata.GifInformation.CreateGlobalPalette(int)' has a paramref tag for 'palette', but there is no parameter by that name   D:\[kur]\[csharp]\image_tools\FreeImage\Wrapper\FreeImage.NET\cs\Library\Classes\GifInformation.cs  76  23  Library

As the error says, there's an XML comment on a method that describes parameters which do not exist. 正如错误所述,对描述不存在的参数的方法有XML注释。 Besides not treating warnings as errors, another solution would be to not have Visual Studio create the XML documentation (this can be found on the "Build" tab of the project's settings). 除了不将警告视为错误之外,另一种解决方案是不让Visual Studio创建XML文档(这可以在项目设置的“Build”选项卡中找到)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM