首先,最大的问题是我似乎必须使用“使用.NET Native工具链编译”选项。没有它我无法通过以下错误验证
◦API OpenSemaphore in api-ms-win-core-synch-l1-1-0.dll is not supported for this application type. System.Threading.dll calls this API.
◦API CreateSemaphore in api-ms-win-core-kernel32-legacy-l1-1-0.dll is not supported for this application type. System.Threading.dll calls this API.
◦API ExecuteAssembly in uwphost.dll is not supported for this application type. FileDownloader.exe calls this API.
◦API DllGetActivationFactory in uwphost.dll is not supported for this application type. FileDownloader.exe has an export that forwards to this API.
我在其他论坛上发现这个错误通常会发生,因为应用程序是在没有“使用.NET Native工具链编译”选项的情况下构建的。 不幸的是,由于以下错误,我无法使用该选项构建
C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(936,5): error : Internal compiler error: Unable to cast object of type 'Microsoft.Cci.Immutable.Vector' to type 'Microsoft.Cci.IGenericTypeInstance'.
有人知道如何修复它吗? 谢谢
亚历