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
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".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With