नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'string' : assembly reference is invalid and cannot be resolved
Remarks
A value was not valid.
InternalsVisibleToAttribute is used to specify a friend assembly. For example, if a.dll wants to specify b.dll as a friend assembly, you would specify (in a.dll): InternalsVisibleTo("b"). The runtime then allows b.dll to access everything in a.dll (except private types).
For more on the correct syntax when specifying friend assemblies, see Friend Assemblies (C++).
Example
The following example generates C2261.
// C2261.cpp
// compile with: /clr /c
using namespace System::Runtime::CompilerServices;
[assembly: InternalsVisibleTo("a,a,a")]; // C2261
[assembly: InternalsVisibleTo("a.a")]; // OK
[assembly: InternalsVisibleTo("a")]; // OK