Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
how to remove warning in.Net 2010
"Consider changing the 'Embed Interop Typess' property on either assembly."
通常您不需要禁用构建警告。最佳做法是发出高级别警告。如果碰巧您的项目有一些细节,您可以导航到build properties您的csproj并添加部分(您正在寻找的警告代码是 1762)warning code。Suppress warnings:
build properties
csproj
warning code
Suppress warnings:
要修复您的警告,您应该:转到引用中的 Dll,右键单击并转到属性并在那里更改“嵌入互操作类型”属性。
要完全禁用项目中的警告,请将警告级别设置为 0。不推荐!