Compiler Warning (level 3) CS1700

程序集引用 Assembly Name 无效,无法解析

此警告指示未正确指定特性(如 InternalsVisibleToAttribute)。

有关更多信息,请参见友元程序集(C# 和 Visual Basic)

下面的示例生成 CS1700。

// CS1700.cs
// compile with: /target:library
using System.Runtime.CompilerServices;
[assembly:InternalsVisibleTo("app2, Retargetable=f")]   // CS1700
[assembly:InternalsVisibleTo("app2")]   // OK