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. Remove the placeholder openmayacs.dll from the project references. The placeholder openmayacs.dll will have a warning symbol next to it.
  4. Add openmayacs.dll to the project references.
    1. Right-click on Dependencies under the project, and select Add Project Reference
    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.
  5. Build the solution.

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