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.
This option tells the Visual Basic compiler to load the mscorlib.dll and microsoft.visualbasic.dll files from a non-default location. /sdkpath 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.
Note /sdkpath is not available from within the Visual Studio .NET integrated development environment (IDE); it is available only when compiling from the command line. It cannot be changed programmatically. /sdkpath is set when a Visual Basic .NET device project is loaded.
The following code compiles
myfile.vb 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:
vbc /sdkpath:"c:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE " myfile.vb