2012-08-14 31 views
0

當我嘗試編譯FreeImageNET C#wrapper時,我總是收到幾條錯誤消息(目前是35)。所有的消息都是相同的格式。C編譯錯誤FreeImage#

其實我發現這個問題之前已經問過了,答案是將「typeparamref」改爲「paramref」。但是,其他錯誤消息已包含「paramref」,因此我不知道要更改哪些內容才能糾正這些錯誤。

任何幫助,將不勝感激。是

的錯誤消息的兩個如下:

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 
+1

您可以禁用「將警告視爲錯誤」 – 2012-08-14 09:30:57

回答

2

正如錯誤說,有上描述了不存在的參數的方法的XML註釋。除了不將警告視爲錯誤之外,另一個解決方案是不讓Visual Studio創建XML文檔(可以在項目設置的「Build」選項卡中找到該文檔)。

+0

謝謝Thorsten,禁用XML文檔創建解決了問題 – 2012-08-14 13:35:05

+0

很高興聽到。那麼不要忘記將我的答案標記爲可接受的解決方案,也可以給它一個upvote :-) – 2012-08-14 14:03:25

+0

好吧,我將您的答案標記爲已接受的解決方案,但我不能投票贊成,因爲我的聲望點低於15: ( – 2012-08-15 13:09:47