-nostdlib (Visual Basic)
Causes the compiler not to automatically reference the standard libraries.
Syntax
-nostdlib
Remarks
The -nostdlib
option removes the automatic reference to the System.dll assembly and prevents the compiler from reading the Vbc.rsp file. The Vbc.rsp file, which is located in the same directory as the Vbc.exe file, references the commonly used .NET Framework assemblies and imports the System
and Microsoft.VisualBasic
namespaces.
Note
The Mscorlib.dll and Microsoft.VisualBasic.dll assemblies are always referenced.
Note
The -nostdlib
option is not available from within the Visual Studio development environment; it is available only when compiling from the command line.
Example
The following code compiles T2.vb
without referencing the standard libraries. You must set the _MYTYPE
conditional-compilation constant to the string "Empty" to remove the My
object.
vbc -nostdlib -define:_MYTYPE=\"Empty\" T2.vb
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho