Compiler Error C2262
'attribute_specifiers' : InternalsVisibleTo declarations cannot have a version, culture, or processor architecture specified
The InternalsVisibleToAttribute attribute was not specified correctly.
Example
The following sample generates C2262.
// C2262.cpp
// compile with: /clr /c
using namespace System::Runtime::CompilerServices;
[assembly: InternalsVisibleTo("assembly_name, version=1.2.3.7")]; // C2262
[assembly: InternalsVisibleTo("assembly_name ")]; // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for