Delphi 2009 using MSBuild at the command line of RAD Studio F1026 File not found

I struggled to get MSBuild to successfully create my .dproj file over the past few days on the build machine.

Firstly, I need the EnvOptions.proj file from the development machine, which saved me the missing system.pas file, but now I get a compilation error for the missing .dcu

C: \ Program Files \ CodeGear \ RAD Studio \ 6.0 \ Bin \ CodeGear.Delphi.Targets (123.3): error: myproject.dpr (17) Fatal: F1026 File not found: 'mymissing.dcu'

Now the path to "mymissing.dcu" is included in the Win32BrowsingPath of the EnvOptions.proj file, and I tried to add the path to the PATH command line , which also does not work.

If I copy the .dcu file directly to the working directory, it can be found - but this is not a very long solution, as there are many other .dcu files that I will need to copy to the working directory.

Any ideas?

+3
source share
2 answers

Try <DCC_UnitSearchPath>in your .dproj file.

+3
source

Ensure that all environment variables referenced by the library search paths, such as $ (BDS), are actually present in the command line environment.

+1
source

Source: https://habr.com/ru/post/1729100/


All Articles