Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Specifies the location of Mscorlib.dll and Microsoft.VisualBasic.dll.
The directory containing the versions of Mscorlib.dll and Microsoft.VisualBasic.dll to use for compilation. This path is not verified until it is loaded. Enclose the directory name in quotation marks (" ") if it contains a space.
This option tells the Visual Basic compiler to load the Mscorlib.dll and Microsoft.VisualBasic.dll files from a non-default location. The
/sdkpath option was designed to be used with /netcf. The .NET Compact Framework uses different versions of these support libraries to avoid the use of types and language features not found on the devices.
You can specify that the compiler should compile without a reference to the Visual Basic Runtime Library by using the
/vbruntime compiler option. For more information, see /vbruntime.
The following code compiles
Myfile.vb with the .NET Compact Framework, using the versions of Mscorlib.dll and Microsoft.VisualBasic.dll found in the default installation directory of the .NET Compact Framework on the C drive. Typically, you would use the most recent version of the .NET Compact Framework.
vbc /netcf /sdkpath:"c:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE " myfile.vb