Compile the resource files - Intergraph Smart Construction - 2018 (6.0) - Administration - Hexagon PPM

Intergraph Smart Construction Administration and Configuration (2018)

PPMProduct
Intergraph Smart Construction
PPMCategory_custom
Administration & Configuration
SPCVersion_custom
2018 (6.0)
SPFVersion_custom
2018 (7.0)
Version_SPMat_custom
8.2

In order to compile the resource files into a binary DLL, you must use the proper .NET Framework Resource Generator (ResGen.exe) and Assembly Linker (al.exe) to create the localized resource DLL to use with Smart Construction. Both of these programs are typically located in the BIN directory under [Drive]:\Program Files\Windows SDKs\V7.0A installation path.

Run the Resource Generator executable

  1. Open a Command Prompt window.

  2. Change the active path to the folder that contains the SPCServerResources.resx file that needs to be compiled.

  3. Run the Resource Generator executable file and specify the name of the resource file and the name of the output file.

    For example, if you are translating the file into Portuguese, the file name is SPCServerResources.pt.Resources. The command line to execute would be "C:\Program Files (x86)\Microsoft SDKs\Windows\V7.0A\Bin\ResGen.exe." SPC.ServerResources.Resx SPCServerResources.pt.Resources.

  4. Repeat steps 1-3 for the SPCResources.resx file.

Run the Assembly Linker executable

Use the Assembly Linker executable to compile the SPCResources.[culture code].Resources and the SPCServerResources.[culture code].Resources files into a single SPC.SharedResources.dll.

The command line parameters for the Assembly Linker program are:

/t: lib - compiles the file into a library.

/embed: SPCClientResources.[culture code].Resources - embeds the Resources file generated by the Resource Generator program into a DLL.

/culture:[culture code] - identifies the culture for which the DLL is being compiled.

/version[version number] - a version number to apply to the DLL.

/out.SPC.Client.Infrastructure.Resources.dll - name of the output file to write.

For example, if you are translating the file into Portuguese, the command line to execute would be "C:\Program Files (x86)\Microsoft SDKs\Windows\V7.0A\Bin\al.exe." /t:lib /embed:SPCResources.pt.Resources /embed:SPCServerResources.pt.Resources /culture:pt /version:1.0.0.1 /out:SPC.Shared.Resources.dll.

After you run the Assembly Linker program, five files can be found in the folder:

  • SPC.SharedResources.dll

  • SPCResources.[culture code].Resources

  • SPCResources.Resx

  • SPCServerResources.[culture code].Resources

  • SPCServerResources.resx