Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning MSB3305: Processing COM reference - At least one of the arguments cannot be marshaled by the runtime marshaler

I am working in Windows 8.1(64bit), VS 2013. I am building a project which is showing a warning like this. My project is working fine but anyway i need to remove this warning. Please help

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

Please help in solving this warning.. Thanks in advance

like image 884
yemans Avatar asked Mar 11 '14 12:03

yemans


1 Answers

IanG found a solution which did work for me, too:

I've added this in the PropertyGroup at the top of my .csproj file:

<ResolveComReferenceSilent>True</ResolveComReferenceSilent>

Keep in mind, that this will silence any warnings. If you happen to use features which are not meant to be used from managed code, then don't use this "solution".

like image 105
MHolzmayr Avatar answered Oct 16 '22 23:10

MHolzmayr