问题描述
Win8.1StoreApp发布到WindowsAppStore时失败。失败的错误报告如下:SupportedAPItestFAILEDSupportedAPIsErrorFound:ThesupportedAPIstestdetectedthefollowingerrors:APISystem.ICloneableinMSCORLIB,PUBLICKEYTOKEN=B77A5C561934E089isnotsupportedforthisapplicationtype.itextsharp.dllcallsthisAPI....APISystem.Collections.ArrayList.ClearinMSCORLIB,PUBLICKEYTOKEN=B77A5C561934E089isnotsupportedforthisapplicationtype.itextsharp.dllcallsthisAPI.Impactifnotfixed:UsinganAPIthatisnotpartoftheWindowsSDKforWindowsStoreappsviolatestheWindowsStorecertificationrequirements.Howtofix:ReviewtheerrormessagestoidentifytheAPIthatisnotpartoftheWindowsSDKforWindowsStoreapps.Pleasenote,appsthatarebuiltinadebugconfigurationorwithout.NETNativeenabled(whereapplicable)canfailthistestastheseenvironmentsmaypullinunsupportedAPIs.Retestyourappinareleaseconfiguration,andwith.NETNativeenabledifapplicable.Seethelinkbelowformoreinformation:AlternativestoWindowsAPIsinWindowsStoreapps.程序使用了iTextSharp,iTextSharp是从Nuget取的并且是最新版本。开发和调试过程中也没出现过问题。但是看错误报告,好像出现问题就是因为使用了iTextSharp。有谁遇到过类似的问题吗?另外我想问下,Nuget和WindowsSDKforWindowsStoreapps是什么关系?难道WindowsStoreApp并不能任意使用Nuget中的包吗?
解决方案
解决方案二:
自顶一下。。。没知道的就算了。。。