Registering Assemblies

XNA Game Studio 4.0

If you created additional assemblies that can be used to develop XNA Game Studio games, you may wish to make them available to other developers. To display these assemblies as choices in the Add Reference dialog box, you must add additional information to the Windows registry.

To register assemblies

  1. Register a new subkey in the Windows registry. The subkey must be a unique name and registered under the the key that applies to the target platform for which the assembly is built.

    The following keys are registered on a Windows 32-bit operating system.

    PlatformRegistry key
    Xbox 360HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\XNA\AssemblyFolders\v4.0\Xbox 360\AssemblyFoldersEx
    Windows PhoneHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\XNA\AssemblyFolders\v4.0\Windows Phone\AssemblyFoldersEx

    VersionMinimum is the earliest applicable .NET Framework version. For example, if VersionMinimum is v4.0, folders specified in AssemblyFoldersEx apply to projects that target .NET Framework 4.x.

    On a Windows 64-bit operating system, the following are the registry key paths.

    PlatformRegistry key
    Xbox 360HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\XNA\AssemblyFolders\v4.0\Xbox 360\AssemblyFoldersEx
    Windows PhoneHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\XNA\AssemblyFolders\v4.0\Windows Phone\AssemblyFoldersEx
  2. The "Default" setting of the new subkey must be set to the full path location where the assemblies are stored. For example, C:\MyAssemblies\ or C:\MyAssemblies\Xbox360\.

Community Additions