简体   繁体   中英

MsBuild reset Library Path

I'm trying to build distributed delphi project on a non-host dependant environment. As library path depends on the global GUI options, each host could vary from each other.

I'd like to make sure every single host has the same library path, is there any way to reset/overwrite the library path from command line?

Thanks in advance.

In Delphi IDE -> Options -> Environment Options -> Environment Variables -> create "User overrides". For example variable COMP1 with value D:\\Src\\Components\\ComponentNo1\\ For example variable COMP2 with value D:\\Src\\Components\\ComponentNo2\\

Into Environment Options -> Delphi Options -> Library -> Library path replace full path to component into $(COMP1) for Component #1 and $(COMP2) for Component #2.

As result Library path will be independable on end-developer-PC.

The library path is stored in the registry:

Key: HKCU\SOFTWARE\Embarcadero\BDS\<ver>\Library\Win32
Name: Search Path
Value Type: REG_SZ

Different targets, eg Win64, OSX32, Android32 etc. have different key names, as can be observed in the registry.

I would regard the setting of the library path as a task to be performed at the time you install Delphi onto the build machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM