Compiling the .NET examples

The Maya devkit includes several C# plug-in examples. The examples are located in the %DEVKIT_LOCATION%\devkit\dotnet\examples and %DEVKIT_LOCATION%\devkit\dotnet\wpfexamples directories. A Visual Studio solution file is included in each directory.

To build the examples:

  1. Copy the example directories to a location outside of the devkit. This is not required, but it guarantees that a clean copy of the examples is kept within the devkit.
  2. Open the example's Visual Studio solution file in Visual Studio.
  3. Add openmayacs.dll to the project references.
    1. Right-click on References under the project, and select Add reference alt text
    2. In the Reference Manager, click on Browse. Change directory to %MAYA_LOCATION%\bin\ and add openmayacs.dll to the references. If you had previously added openmaycs.dll to a project, it will be visible under your recent items. In this case, simply select the dll.
  4. Build the solution as usual.

The built examples will be located in the assemblies directory and will have the extension .nll.dll.