description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|---|
Learn more about: '<name>' is not a member of '<classname>' |
'<name>' is not a member of '<classname>' |
10/10/2018 |
|
|
029f9742-858a-40c5-b771-7cdfb2c777cc |
The member you have provided is not a member of the class.
Error ID: BC30456
-
Check the name of the member to ensure it is accurate.
-
Use an actual member of the class.
-
If you are attempting to compile an SDK-style project (a project with a *.vbproj file that begins with the line
<Project Sdk="Microsoft.NET.Sdk">
), and the error message refers to a type or member in the Microsoft.VisualBasic.dll assembly, configure your application to compile with a reference to the Visual Basic Runtime Library. By default, a subset of the library is embedded in your assembly in an SDK-style project.For example, the following example fails to compile because the xref:Microsoft.VisualBasic.Devices.ComputerInfo.InstalledUICulture%2A?displayProperty=fullName property cannot be found. It is not embedded in the subset of the Visual Basic Runtime included with your application.
[!code-vbBC30456]
To address this error, add the
<VBRuntime>Default</VBRuntime>
element to the projects<PropertyGroup>
section, as the following Visual Basic project file shows.[!code-vbBC30456]