我在 Windows 8.1(64 位)VS 2013 中工作。我正在构建一个显示这样警告的项目。 我的项目工作正常,但无论如何我需要删除此警告。请帮忙
warning MSB3305: Processing COM reference "NETCONLib" from path "C:\Windows\system32\hnetcfg.dll". At least one of the arguments for 'INetConnection.GetProperties' cannot be marshaled by the runtime marshaler.Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate
请帮助解决这个警告.. 提前致谢
最佳答案
IanG found a solution这对我也有用:
I've added this in the PropertyGroup at the top of my .csproj file:
<ResolveComReferenceSilent>True</ResolveComReferenceSilent>
请记住,这会消除所有警告。如果您碰巧使用了不打算从托管代码中使用的功能,则不要使用此“解决方案”。
关于c++ - 警告 MSB3305 : Processing COM reference - At least one of the arguments cannot be marshaled by the runtime marshaler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22325870/