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.dllfrom the project references. The placeholderopenmayacs.dllwill have a warning symbol next to it. - Add
openmayacs.dllto 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.dllto the references. If you had previously addedopenmaycs.dllto 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.
