gpt4 book ai didi

c++ - 警告 MSB3305 : Processing COM reference - At least one of the arguments cannot be marshaled by the runtime marshaler

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:29:35 24 4
gpt4 key购买 nike

我在 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 runtimemarshaler.Such arguments will therefore be passed as a pointer and mayrequire 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com