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

Intergraph Smart Construction Administration and Configuration (2018)

Intergraph Smart Construction
Administration & Configuration
2018 (6.0)
2018 (7.0)

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 The command line to execute would be "C:\Program Files (x86)\Microsoft SDKs\Windows\V7.0A\Bin\ResGen.exe." SPC.ServerResources.Resx

  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 / / /culture:pt /version: /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