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:
- 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.
- Open the example's Visual Studio solution file in Visual Studio.
- Remove the placeholder
openmayacs.dll
from the project references. The placeholderopenmayacs.dll
will have a warning symbol next to it. - Add
openmayacs.dll
to the project references.- Right-click on Dependencies under the project, and select Add Project Reference
- In the Reference Manager, click on Browse. Change directory to
%MAYA_LOCATION%\bin\
and addopenmayacs.dll
to the references. If you had previously addedopenmaycs.dll
to a project, it will be visible under your recent items. In this case, simply select the dll.
- Build the solution.
The built examples will be located in the assemblies
directory and will have the extension .nll.dll
.