ŁukaszDe 38 Posted June 11, 2019 Hi, 2 days ago I updated Windows to new May 2019 Update. After that, msbuild has stopped compiling the program. I had error: Project.dpr(121) Fatal: F2039 Could not create output file 'Project.drf' C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Bin\CodeGear.Delphi.Targets(157,5): error MSB6006: "dcc" exited with code 1. Done Building Project "Z:\Project1\Project.dproj" (Build target(s)) -- FAILED. Build FAILED. "Z:\Project1\Project.dproj" (Build target) (1) -> (_PasCoreCompile target) -> C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Bin\CodeGear.Delphi.Targets(157,5): error MSB6006: "dcc" exited wit h code 1. 0 Warning(s) 1 Error(s) Maybe you know some help for this error? Share this post Link to post
ŁukaszDe 38 Posted June 11, 2019 After Windows May 2019 Update was update KB4495620 which increase version Microsoft .NET Framework from 2.0.50727.9136 to 2.0.50727.9145. On early version (9136) msbuild is working (checked on other computer). Share this post Link to post
Stefan Glienke 2019 Posted June 11, 2019 (edited) I don't see an msbuild error - the error is from the delphi commandline compiler (dcc) and you see the error it raised: F2039 I guess drf is your custom file extension for the project being compiled? Make sure the file is not write protected or accessed by any other program if already existing. Edited June 11, 2019 by Stefan Glienke Share this post Link to post
ŁukaszDe 38 Posted June 11, 2019 No, I've never seen a drf file... I have not any problems with build project using msbuild before last Windows update. Share this post Link to post
Stefan Glienke 2019 Posted June 11, 2019 Googling for this error and drf yields this: Quote Question: I just ran in a problem rebuilding the latest version of the TMultiLang package. This is done by a batch file which invokes the commandline compiler DCC32.EXE I got this error message: E:\Projects\MultiLang\mle>dcc32 multilang.dpk Delphi for Win32 Version 10.0 Copyright (c) 1983,97 Borland International MultiLang.dpk(40) Fatal: Could not create output file 'MultiLang.drf' What is this DRF file? Why did I get this message? Answer: When you compile with packages, you can specify which packages should be considered for linkage. The package requirements of the project get stored into a temporary Windows resource file with a .DRF extension. In my case I got this error message from DCC32 because my environment variable %TEMP% pointed to an not existing directory after I had cleaned up too much Source Share this post Link to post
ŁukaszDe 38 Posted June 11, 2019 I saw it. My env %TEMP% exist: TEMP=C:\Users\Łukasz\AppData\Local\Temp TMP=C:\Users\Łukasz\AppData\Local\Temp I think Microsoft .NET Framework in version 2.0.50727.9145 corrupts... Share this post Link to post
Uwe Raabe 2064 Posted June 11, 2019 DRF is also described here (File Type 3): Delphi Resource File Share this post Link to post
Stefan Glienke 2019 Posted June 12, 2019 I think I once saw there was an issue with non ascii characters in the path causing trouble. Share this post Link to post
Uwe Raabe 2064 Posted June 12, 2019 Could it be that Z: is a network drive causing that trouble? Share this post Link to post
ŁukaszDe 38 Posted June 12, 2019 No, drive Z is not a problem. It is a VeraCrypt drive. Share this post Link to post
Stefan Glienke 2019 Posted June 12, 2019 (edited) If you think that it's related to .NET then call dcc yourself and see if that works - as I said already the error comes from the dcc. So it can only be that msbuild is passing down different values than before causing it to behave differently. To rule that out, eliminate the suspected factor from the equation, troubleshooting 101 Edited June 12, 2019 by Stefan Glienke 1 Share this post Link to post
ŁukaszDe 38 Posted June 13, 2019 I check it on Delphi 10.3.1 and same command is working but on XE2 is not (using MSBuild). Share this post Link to post
David Hoyle 68 Posted June 13, 2019 If I remember those 2 versions of the IDE use different version of .NET. I think 10.3 changed to a higher version then was previously used (Can't remember the exact version but I think that 10.3 use .NET 3 or 3.5). Share this post Link to post
David Hoyle 68 Posted June 13, 2019 Still can't find the article which I think was written by David Millington but my new Windows 10 system suggests that RAD Studio 10.3.1 is using .NET 4 (looking in the about dialogue's list of DLL version numbers). Share this post Link to post
ŁukaszDe 38 Posted June 13, 2019 Delphi 10.3: Microsoft (R) Build Engine w wersji 4.8.3752.0 [Microsoft .NET Framework w wersji 4.0.30319.42000] Delphi XE2: Microsoft (R) Build Engine w wersji 3.5.30729.9135 [Microsoft .NET Framework w wersji 2.0.50727.9145] Share this post Link to post