MSBuild -m fails on project import RemObjects.Elements.Echoes.targets

Hello,
we are facing this problem while trying to move projects from RemObjects.Elements.Echoes.Legacy.targets to RemObjects.Elements.Echoes.targets
Project building fails on clean while building via msbuild with -m (parallel) switch:

Try this command on a vs solution attached :
msbuild “TCElements.sln” -m -p:Configuration=Debug -t:clean;build
Throws
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\RemObjects Software\Elements\RemObjects
.Elements.Echoes.targets(53,3): EBuild error : Project Reference ‘…\ClassLibrary1\ClassLibrary1.csproj’ could
not be resolved for target ‘Echoes’ (Echoes .NET anycpu). [D:\TescoTools\OtherProjects\TCElements\TCElements\Cla
ssLibrary2\ClassLibrary2.elements]

Works correctly with …Legacy.targets or without -m switch. Thank you for investigation.

TCElements.zip (896.1 KB)

What does -m do?

Ah, multi-threaded build. What I guess is happening is that MSBuild will/might try tho build the .elements project before the .csproj is done, and the .dll does not exist at the hint path yet. Apparently MSBuild does not auto-infer the dependency, as I does when. using legacy (actual MSBuild). We’ll need to see if/how we can fix that — in the mean time, work around should be to set an explicit dependency between the two projects in the Solution file.

Thanks, logged as bugs://83650

Using your project, fixed the references to the TescoSW*.dll in ClassLibrary4.elements and using the msbuild command line above works fine. What step am I missing?

Don’ know - there is nothing to miss :smiley:
There is a sln with tescosw refrences removed but it is irrelevant.
Which version of msbuild are you using ? Mine is:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise>msbuild -version
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

16.4.0.56107

And EBuild version:
C:\Users\TumaL>ebuild
RemObjects EBuild. An open source build engine for Elements and beyond.
Copyright RemObjects Software 2016-2019. All Rights Reserved. Created by marc hoffman.
Version 10.0.0.2461 (develop) built on bajor, 20191206-133428. Commit d517ada.

TCElements.zip (166.0 KB)

Not sure if it is relevant but for me it looks like a target resolution problem. When specifying tragets=clean;build. Projects built at tree leaves level are reporting processig of clean;build targets that is correct, but nested projects are reporting processing of default target.
Would be stupid, BUT Isnt posiible that nested projects are jusit being build instead of cleaned as others on leaves ? Makes sense the absence of output libraries then.

From output:

“D:\TescoTools\OtherProjects\TCElements\TCElements\TCElements.sln” (clean;build target) (1) →
“D:\TescoTools\OtherProjects\TCElements\TCElements\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements” (Clean target) (4) →
“D:\TescoTools\OtherProjects\TCElements\TCElements\ClassLibrary2Legacy\ClassLibrary2Legacy.elements” (default target) (5:2) →

If so, that’d be MSBuild’s issue :frowning:

"TCElements.sln" -m -p:Configuration=Debug -t:clean;build
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/20/2019 8:20:31 AM.
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" on node 1 (clean;build target(s)).
     1>ValidateSolutionConfiguration:
         Building solution configuration "Debug|Any CPU".
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary5\ClassLibrary5.elements" (2) on node 1 (Clean target(s)).
     2>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary5\Bin\Debug\ClassLibrary5.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary5\Bin\Debug\ClassLibrary5.dll.mdb'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary5\Bin\Debug\ClassLibrary5.pdb'
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\ClassLibrary5.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\ClassLibrary5.dll.mdb
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\ClassLibrary5.pdb
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\ClassLibrary5.publichash
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\Cleanup.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\Caches\CoreCompile.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\Caches\EchoesResources.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\Caches\ResolveReferences.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary5-D23F3E59E709A74B68E843
         6FF8775013F2D37C16\Debug\Echoes\res\Properties-Resources.resources
     2>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary5\ClassLibrary5.elements" (Clean target(s)).
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary3\ClassLibrary3.csproj" (7) on node 5 (Clean target(s)).
     7>CoreClean:
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary3.dll".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary3.pdb".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary2.dll".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary1.dll".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary2.pdb".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary1.pdb".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\obj\Debug\ClassLibrary3.dll".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\obj\Debug\ClassLibrary3.pdb".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\obj\Debug\ClassLibrary3.csprojResolveAssemblyRef
         erence.cache".
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary4\ClassLibrary4.elements" (3) on node 2 (Clean target(s)).
     3>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\bin\Debug\ClassLibrary4.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\bin\Debug\ClassLibrary4.pdb'
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\ClassLibrary4.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\ClassLibrary4.pdb
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\ClassLibrary4.publichash
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\Cleanup.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\Caches\CoreCompile.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\Caches\CoreCompile.messages.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary4-0B85C5E1AFA0BAAEB4199F
         3A56DFA57D7470BF65\Debug\Echoes\Caches\ResolveReferences.cache
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary1\ClassLibrary1.csproj" (8) on node 7 (Clean target(s)).
     8>CoreClean:
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\bin\Debug\ClassLibrary1.dll".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\bin\Debug\ClassLibrary1.pdb".
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\obj\Debug\ClassLibrary1.dll".
     3>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements" (Clean target(s)).
     8>CoreClean:
         Deleting file "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\obj\Debug\ClassLibrary1.pdb".
     8>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\ClassLibrary1.csproj" (Clean target(s)).
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary2\ClassLibrary2.elements" (6) on node 6 (Clean target(s)).
     6>Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements" (6) is building "C:\Users\carlok
       ok\Downloads\tewa\ClassLibrary1\ClassLibrary1.csproj" (8:2) on node 7 (default targets).
     8>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect t
       o the input files.
       CoreCompile:
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /no
         warn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:"C:\Progr
         am Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\Microsoft.CSharp.dll" /reference:"C
         :\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll" /reference:"C:
         \Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Core.dll" /reference:"
         C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Data.DataSetExtensio
         ns.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.
         Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\Syste
         m.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.N
         et.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\Sy
         stem.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\S
         ystem.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\ClassLibrary1.dll /ruleset:"C
         :\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Static Analysis Tools\\Rule Sets\Minim
         umRecommendedRules.ruleset" /subsystemversion:6.00 /target:library /utf8output /deterministic+ /langversion:7.
         3 Class1.cs Properties\AssemblyInfo.cs "C:\Users\carlokok\AppData\Local\Temp\.NETFramework,Version=v4.8.Assemb
         lyAttributes.cs"
         Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Com
         munity\MSBuild\Current\Bin\Roslyn
       CopyFilesToOutputDirectory:
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\obj\Debug\ClassLibrary1.dll" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary1\bin\Debug\ClassLibrary1.dll".
         ClassLibrary1 -> C:\Users\carlokok\Downloads\tewa\ClassLibrary1\bin\Debug\ClassLibrary1.dll
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\obj\Debug\ClassLibrary1.pdb" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary1\bin\Debug\ClassLibrary1.pdb".
     8>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary1\ClassLibrary1.csproj" (default targets).
     6>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary1.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary1.pdb'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary2.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary2.pdb'
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary2Legacy\ClassLibrary2Legacy.elements" (5) on node 4 (Clean target(s)).
     5>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\bin\Debug\ClassLibrary1.dll'
     6>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\ClassLibrary1.dll
     5>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\bin\Debug\ClassLibrary1.pdb'
     6>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\ClassLibrary2.dll
     5>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\bin\Debug\ClassLibrary2Legacy.dll'
     6>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\ClassLibrary2.pdb
     5>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\bin\Debug\ClassLibrary2Legacy.pdb'
     6>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\ClassLibrary2.publichash
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\Cleanup.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\Caches\CoreCompile.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\Caches\CoreCompile.messages.cache
     5>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\ClassLibrary1.dll
     6>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2-8889108145D1BA1D5B758D
         7EEFAB788E0DFE35B7\Debug\Echoes\Caches\ResolveReferences.cache
     5>Clean:
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\ClassLibrary2Legacy.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\ClassLibrary2Legacy.pdb
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\ClassLibrary2Legacy.publichash
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\Cleanup.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\Caches\CoreCompile.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\Caches\CoreCompile.messages.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29
         CBFFE3C0CE8E232235AA7715\Debug\Echoes\Caches\ResolveReferences.cache
     6>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements" (Clean target(s)).
     7>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\ClassLibrary3.csproj" (Clean target(s)).
     5>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.elements" (Clean
        target(s)).
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (4) on node 3 (Clean target(s)).
     4>Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (4) is buildin
       g "C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.elements" (5:2) on node 4 (default t
       argets).
     5>Build:
            Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' was resolved to 'C:\Users\carlokok\Downloads\tewa
         \ClassLibrary1\bin\Debug\ClassLibrary1.dll' via 'HintPath' for target 'Echoes'.
            Reference 'mscorlib' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
         ramework\v4.8\mscorlib.dll' for target 'Echoes'.
            Reference 'System' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFra
         mework\v4.8\System.dll' for target 'Echoes'.
            Reference 'System.Data' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Data.dll' for target 'Echoes'.
            Reference 'System.Xml' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NE
         TFramework\v4.8\System.Xml.dll' for target 'Echoes'.
            Reference 'system.messaging' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewo
         rk\.NETFramework\v4.8\system.messaging.dll' for target 'Echoes'.
            Reference 'System.Transactions' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Fram
         ework\.NETFramework\v4.8\System.Transactions.dll' for target 'Echoes'.
            Reference 'System.Configuration' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
         mework\.NETFramework\v4.8\System.Configuration.dll' for target 'Echoes'.
            Reference 'System.Core' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Core.dll' for target 'Echoes'.
            Reference 'System.Drawing' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework
         \.NETFramework\v4.8\System.Drawing.dll' for target 'Echoes'.
            Reference '..\ClassLibrary1\ClassLibrary1.csproj' already was resolved to 'C:\Users\carlokok\Downloads\tewa
         \ClassLibrary1\bin\Debug\ClassLibrary1.dll' for target 'Echoes'.
            RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
            Version 10.0.0.2464 (develop) built on talax, 20191218-193532. Commit ed42055.
            Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
     5>C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\Class1.pas(21,6,21,17): EBuild  warning H11: Local variable
        "str" is assigned to but never read [C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.e
       lements]
     5>C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\Class1.pas(22,6,22,16): EBuild  warning H10: Local variable
        "x" is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.elements]
     5>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.elements" (defau
       lt targets).
     4>Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (4) is buildin
       g "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements" (6:4) on node 6 (default targets).
     6>Build:
            Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' was resolved to 'C:\Users\carlokok\Downloads\tewa
         \ClassLibrary1\bin\Debug\ClassLibrary1.dll' via 'HintPath' for target 'Echoes'.
            Reference 'mscorlib' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
         ramework\v4.8\mscorlib.dll' for target 'Echoes'.
            Reference 'System' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFra
         mework\v4.8\System.dll' for target 'Echoes'.
            Reference 'System.Data' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Data.dll' for target 'Echoes'.
            Reference 'System.Xml' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NE
         TFramework\v4.8\System.Xml.dll' for target 'Echoes'.
            Reference 'system.messaging' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewo
         rk\.NETFramework\v4.8\system.messaging.dll' for target 'Echoes'.
            Reference '..\ClassLibrary1\ClassLibrary1.csproj' already was resolved to 'C:\Users\carlokok\Downloads\tewa
         \ClassLibrary1\bin\Debug\ClassLibrary1.dll' for target 'Echoes'.
            Reference 'System.Core' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Core.dll' for target 'Echoes'.
            RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
            Version 10.0.0.2464 (develop) built on talax, 20191218-193532. Commit ed42055.
            Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
     6>C:\Users\carlokok\Downloads\tewa\ClassLibrary2\Class1.pas(21,6,21,17): EBuild  warning H11: Local variable "str"
        is assigned to but never read [C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements]
     6>C:\Users\carlokok\Downloads\tewa\ClassLibrary2\Class1.pas(22,6,22,16): EBuild  warning H10: Local variable "x" i
       s not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements]
     6>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements" (default targets).
     4>Clean:
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary1.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary1.pdb'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary2.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary2.pdb'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary2Legacy.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary2Legacy.pdb'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary2LegacyDep.dll'
            Deleted 'C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\bin\Debug\ClassLibrary2LegacyDep.pdb'
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\ClassLibrary1.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\ClassLibrary2.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\ClassLibrary2Legacy.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\ClassLibrary2LegacyDep.dll
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\ClassLibrary2LegacyDep.pdb
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\ClassLibrary2LegacyDep.publichash
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\Cleanup.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\Caches\CoreCompile.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\Caches\CoreCompile.messages.cache
            Deleted C:\Users\carlokok\AppData\Local\RemObjects Software\EBuild\Obj\ClassLibrary2LegacyDep-B460045916FA2
         4F32B59FE3D0EA09728FBDD8CCF\Debug\Echoes\Caches\ResolveReferences.cache
     4>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements"
       (Clean target(s)).
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (4:2) on node 3 (default targets).
     4>Build:
            Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' was resolved to 'C:\Users\carlokok\Downloads\tewa
         \ClassLibrary1\bin\Debug\ClassLibrary1.dll' via 'HintPath' for target 'Echoes'.
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary3\ClassLibrary3.csproj" (7:2) on node 5 (default targets).
     7>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect t
       o the input files.
     4>Build:
            Project Reference 'ClassLibrary2Legacy' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary1\bin
         \Debug\ClassLibrary1.dll' via target 'Echoes'.
            Project Reference 'ClassLibrary2Legacy' was resolved to 'C:\Users\carlokok\AppData\Local\RemObjects Softwar
         e\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29CBFFE3C0CE8E232235AA7715\Debug\Echoes\ClassLibrary2Legacy.dll
         ' via target 'Echoes'.
            Project Reference 'ClassLibrary2' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary1\bin\Debug
         \ClassLibrary1.dll' via target 'Echoes' (but is already referenced).
            Project Reference 'ClassLibrary2' was resolved to 'C:\Users\carlokok\AppData\Local\RemObjects Software\EBui
         ld\Obj\ClassLibrary2-8889108145D1BA1D5B758D7EEFAB788E0DFE35B7\Debug\Echoes\ClassLibrary2.dll' via target 'Echo
         es'.
     7>CoreCompile:
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /no
         warn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:C:\Users\
         carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary2.dll /reference:"C:\Program Files (x86)\Reference
          Assemblies\Microsoft\Framework\.NETFramework\v4.8\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Re
         ference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll" /reference:"C:\Program Files (x86)\Ref
         erence Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Core.dll" /reference:"C:\Program Files (x86)\R
         eference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Data.DataSetExtensions.dll" /reference:"C:\P
         rogram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Data.dll" /reference:"C:
         \Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll" /reference:"C:\Pr
         ogram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Net.Http.dll" /reference:
         "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Xml.dll" /reference
         :"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Xml.Linq.dll" /deb
         ug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\ClassLibrary3.dll /ruleset:"C:\Program Files (x86)\Mi
         crosoft Visual Studio\2019\Community\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.rules
         et" /subsystemversion:6.00 /target:library /utf8output /deterministic+ /langversion:7.3 Class1.cs Properties\A
         ssemblyInfo.cs "C:\Users\carlokok\AppData\Local\Temp\.NETFramework,Version=v4.8.AssemblyAttributes.cs"
         Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Com
         munity\MSBuild\Current\Bin\Roslyn
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary4\ClassLibrary4.elements" (3:2) on node 2 (default targets).
     3>Build:
            Reference 'mscorlib' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
         ramework\v4.8\mscorlib.dll' for target 'Echoes'.
            Reference 'System' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFra
         mework\v4.8\System.dll' for target 'Echoes'.
            Reference 'System.Data' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Data.dll' for target 'Echoes'.
     4>Build:
            Reference 'mscorlib' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
         ramework\v4.8\mscorlib.dll' for target 'Echoes'.
     3>Build:
            Reference 'System.Xml' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NE
         TFramework\v4.8\System.Xml.dll' for target 'Echoes'.
     4>Build:
            Reference 'System' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFra
         mework\v4.8\System.dll' for target 'Echoes'.
     3>Build:
            Reference 'system.messaging' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewo
         rk\.NETFramework\v4.8\system.messaging.dll' for target 'Echoes'.
            Reference 'TescoSW.OW' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.OW.dll' via
         'HintPath' for target 'Echoes'.
            Reference 'TescoSW.Web' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.Web.dll' vi
         a 'HintPath' for target 'Echoes'.
            Reference 'TescoSW.Web.Reports' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.Web
         .Reports.dll' via 'HintPath' for target 'Echoes'.
            Reference 'Tools' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\Tools.dll' via 'HintPath'
          for target 'Echoes'.
            Reference 'TescoSW.Global' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.Global.d
         ll' via 'HintPath' for target 'Echoes'.
            Reference 'TescoSW.OW.Delphi' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.OW.De
         lphi.dll' via 'HintPath' for target 'Echoes'.
     4>Build:
            Reference 'System.Data' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Data.dll' for target 'Echoes'.
     3>Build:
            Reference 'System.Transactions' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Fram
         ework\.NETFramework\v4.8\System.Transactions.dll' for target 'Echoes'.
            Reference 'System.Configuration' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
         mework\.NETFramework\v4.8\System.Configuration.dll' for target 'Echoes'.
     4>Build:
            Reference 'System.Xml' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NE
         TFramework\v4.8\System.Xml.dll' for target 'Echoes'.
     3>Build:
            Reference 'System.Core' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Core.dll' for target 'Echoes'.
     4>Build:
            Reference 'system.messaging' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewo
         rk\.NETFramework\v4.8\system.messaging.dll' for target 'Echoes'.
     3>Build:
            Reference 'System.Drawing' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework
         \.NETFramework\v4.8\System.Drawing.dll' for target 'Echoes'.
            Reference 'TescoSW.Web.Reports' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.Web
         .Reports.dll' via 'HintPath' for target 'Echoes'.
            Reference 'TescoSW.Logging' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW.Logging
         .dll' via 'HintPath' for target 'Echoes'.
            Reference 'TescoSW.OW.Abstractions' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\TescoSW
         .OW.Abstractions.dll' via 'HintPath' for target 'Echoes'.
            Reference 'TescoSW.Global.DataTypeUtils' was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary4\Te
         scoSW.Global.DataTypeUtils.dll' via 'HintPath' for target 'Echoes'.
     4>Build:
            Reference 'System.Transactions' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Fram
         ework\.NETFramework\v4.8\System.Transactions.dll' for target 'Echoes'.
            Reference 'System.Configuration' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra
         mework\.NETFramework\v4.8\System.Configuration.dll' for target 'Echoes'.
            Reference 'System.Core' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Core.dll' for target 'Echoes'.
     1>Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (1) is building "C:\Users\carlokok\Downloads\tewa\Clas
       sLibrary5\ClassLibrary5.elements" (2:2) on node 1 (default targets).
     2>Build:
            Reference 'mscorlib' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETF
         ramework\v4.8\mscorlib.dll' for target 'Echoes'.
     4>Build:
            Reference 'System.Drawing' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework
         \.NETFramework\v4.8\System.Drawing.dll' for target 'Echoes'.
            Reference '..\ClassLibrary1\ClassLibrary1.csproj' already was resolved to 'C:\Users\carlokok\Downloads\tewa
         \ClassLibrary1\bin\Debug\ClassLibrary1.dll' for target 'Echoes'.
            Reference 'ClassLibrary1' already was resolved to 'C:\Users\carlokok\Downloads\tewa\ClassLibrary1\bin\Debug
         \ClassLibrary1.dll' for target 'Echoes'.
            Reference 'ClassLibrary2Legacy' already was resolved to 'C:\Users\carlokok\AppData\Local\RemObjects Softwar
         e\EBuild\Obj\ClassLibrary2Legacy-59797700C0CDDB29CBFFE3C0CE8E232235AA7715\Debug\Echoes\ClassLibrary2Legacy.dll
         ' for target 'Echoes'.
            Reference 'ClassLibrary2' already was resolved to 'C:\Users\carlokok\AppData\Local\RemObjects Software\EBui
         ld\Obj\ClassLibrary2-8889108145D1BA1D5B758D7EEFAB788E0DFE35B7\Debug\Echoes\ClassLibrary2.dll' for target 'Echo
         es'.
     2>Build:
            Reference 'System' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFra
         mework\v4.8\System.dll' for target 'Echoes'.
            Reference 'System.Data' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Data.dll' for target 'Echoes'.
            Reference 'System.Xml' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NE
         TFramework\v4.8\System.Xml.dll' for target 'Echoes'.
            Reference 'System.Core' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
         ETFramework\v4.8\System.Core.dll' for target 'Echoes'.
     7>_CopyFilesMarkedCopyLocal:
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary1.pdb" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary1.pdb".
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary2.dll" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary2.dll".
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary1.dll" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary1.dll".
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\bin\Debug\ClassLibrary2.pdb" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary2.pdb".
     2>Build:
            Reference 'System.Xml.Linq' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewor
         k\.NETFramework\v4.8\System.Xml.Linq.dll' for target 'Echoes'.
     7>_CopyFilesMarkedCopyLocal:
         Creating "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\obj\Debug\ClassLibrary3.csproj.CopyComplete" because
         "AlwaysCreate" was specified.
     2>Build:
            Reference 'System.Data.DataSetExtensions' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Micr
         osoft\Framework\.NETFramework\v4.8\System.Data.DataSetExtensions.dll' for target 'Echoes'.
     7>CopyFilesToOutputDirectory:
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\obj\Debug\ClassLibrary3.dll" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary3.dll".
         ClassLibrary3 -> C:\Users\carlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary3.dll
         Copying file from "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\obj\Debug\ClassLibrary3.pdb" to "C:\Users\ca
         rlokok\Downloads\tewa\ClassLibrary3\bin\Debug\ClassLibrary3.pdb".
     7>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary3\ClassLibrary3.csproj" (default targets).
     3>Build:
            RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
            Version 10.0.0.2464 (develop) built on talax, 20191218-193532. Commit ed42055.
            Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
     2>Build:
            RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
            Version 10.0.0.2464 (develop) built on talax, 20191218-193532. Commit ed42055.
            Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
     4>Build:
            RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
            Version 10.0.0.2464 (develop) built on talax, 20191218-193532. Commit ed42055.
            Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
     3>C:\Users\carlokok\Downloads\tewa\ClassLibrary4\Class1.pas(19,6,19,17): EBuild  warning H10: Local variable "str"
        is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements]
     3>C:\Users\carlokok\Downloads\tewa\ClassLibrary4\Class1.pas(20,6,20,16): EBuild  warning H10: Local variable "x" i
       s not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements]
     2>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary5\ClassLibrary5.elements" (default targets).
     4>C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\Class1.pas(21,6,21,17): EBuild  warning H11: Local varia
       ble "str" is assigned to but never read [C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2Le
       gacyDep.elements]
     4>C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\Class1.pas(22,6,22,16): EBuild  warning H10: Local varia
       ble "x" is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements]
     3>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements" (default targets).
     4>Done Building Project "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements"
       (default targets).
     1>Done Building Project "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (clean;build target(s)).

Build succeeded.

       "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (clean;build target) (1) ->
       "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (Clean target) (4) ->
       "C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.elements" (default target) (5:2) ->
       (Build target) ->
         C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\Class1.pas(21,6,21,17): EBuild  warning H11: Local variab
       le "str" is assigned to but never read [C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy
       .elements]
         C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\Class1.pas(22,6,22,16): EBuild  warning H10: Local variab
       le "x" is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary2Legacy\ClassLibrary2Legacy.elements]


       "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (clean;build target) (1) ->
       "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (Clean target) (4) ->
       "C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements" (default target) (6:4) ->
         C:\Users\carlokok\Downloads\tewa\ClassLibrary2\Class1.pas(21,6,21,17): EBuild  warning H11: Local variable "st
       r" is assigned to but never read [C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements]
         C:\Users\carlokok\Downloads\tewa\ClassLibrary2\Class1.pas(22,6,22,16): EBuild  warning H10: Local variable "x"
        is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary2\ClassLibrary2.elements]


       "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (clean;build target) (1) ->
       "C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements" (default target) (3:2) ->
         C:\Users\carlokok\Downloads\tewa\ClassLibrary4\Class1.pas(19,6,19,17): EBuild  warning H10: Local variable "st
       r" is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements]
         C:\Users\carlokok\Downloads\tewa\ClassLibrary4\Class1.pas(20,6,20,16): EBuild  warning H10: Local variable "x"
        is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary4\ClassLibrary4.elements]


       "C:\Users\carlokok\Downloads\tewa\TCElements.sln" (clean;build target) (1) ->
       "C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements" (default target) (4:2)
        ->
         C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\Class1.pas(21,6,21,17): EBuild  warning H11: Local var
       iable "str" is assigned to but never read [C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2
       LegacyDep.elements]
         C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\Class1.pas(22,6,22,16): EBuild  warning H10: Local var
       iable "x" is not used [C:\Users\carlokok\Downloads\tewa\ClassLibrary2LegacyDep\ClassLibrary2LegacyDep.elements]

    8 Warning(s)
    0 Error(s)

Time Elapsed 00:00:07.14

C:\Users\carlokok\Downloads\tewa>

bugs://83650 got closed with status cannotrepro.

Ok, looking at this again. could you do me a few favors:

(a) does the issue persist with JUST ClassLibrary1 and ClassLibrary2 in the solution, as well (wince those are the only two projects involved in the bug), or only if there’s others

(b) the project ref looks like this:

    <ProjectReference Include="..\ClassLibrary1\ClassLibrary1.csproj">
      <Name>ClassLibrary1</Name>
      <Project>{7526b200-53c7-469f-afb1-34706587dd68}</Project>
      <Private>True</Private>
      <HintPath>..\ClassLibrary1\bin\Debug\ClassLibrary1.dll</HintPath>
    </ProjectReference>

which seems fine does ..\ClassLibrary1\bin\Debug\ClassLibrary1.dll exist before the build starts/ does it exist afterwards?

(c ) can you delete ./bin and ./obj, add <Debug>True</Debug> as setting to then Elements project (this forces the most detailed logging output from the MSBuild-hosted EBuild) and then to a build with -m and the highest level of MSBuild log verbosity and send me that log file? (assuming the error hits during that build).

thanx!

I’m tracing thru what happens for the resolve for me now, here, and all goes as it should:

  • the project builds on its own, not part of a full SLN (as far as ebuild knows)
  • the reference to ClassLibrary1 holds an “UnsupportedProject”; expected
  • that project was not het build (expected)
  • EBuild looks for a FinalOutput.xml in a few places finds none (expected, since this isn’t build with EBuild)
  • EBuild emits these two messages (expected:
   Project 'ClassLibrary1' referenced from 'ClassLibrary2' is not enabled and has no cached final output. Falling back to hint path.
D: Cache file '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary1-2AD756A0DC82282EBE1AD3667AB0F0F05A975755/Unknown/FinalOutput.xml' does not exist.
  • EBuild looks at the HintPath for the reference, as seen above, and expands it to /Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Debug/ClassLibrary1.dll on my local system.

if the file exists, the reference resolves ok. if I delete the file and build again, it fails with the same error you report (expected, of course).

IOW, EBuild is doing everything exactly as it should, given these inputs. The only explanation inhale for the error is that the .dll actually does not exist at the hunt path, at that time (which is out of my control of course, coz MSBuild/VC# are generating that file.

So that brings me back to one of two assumptions, either

(a) MSBuild doesn’t correctly know to build the VC# project first (and hold build of the Elements one until that is done), as woudl be needed since the project depends on the result of the other

or

(b) MSBuild is doing something else wrong.

Hopefully a full log will shed light…

From: Support for conditional compilation symbols - #19 by tescosw

Ah, that one. It’s very odd, yeah. Neither me or Carlo could reproduce this; my gut feeling, from the log I saw, is seems me that somehow MSBuild doesn’t detect the dependencies between EBuild project references, and it somehow is building project B that depends on A, before A has finished (or started), IIRC.

Isn that’s the case, that bug should be hidden/worked around if you explicitly set dependencies inside the Solution file (BS has a dialog for that). you’d get sections like this in the .sln:

	ProjectSection(ProjectDependencies) = postProject
		{F8A2E4F6-C122-4A06-A27B-D77591E674CD} = {F8A2E4F6-C122-4A06-A27B-D77591E674CD}
		{4D283143-C13F-478F-A328-485E98D22CF1} = {4D283143-C13F-478F-A328-485E98D22CF1}
	EndProjectSection

Does that fix/hide the problem? If not, then the issue seems to be something else. I’ll review the other thread again as well.

  1. VS Dialog doesnt work for that, because references are already decalred in projects - the dialog and solution based references work only for references not decalred in projects. (Checks are already checked)

the cleaner/simpler a tests you could create where this fails for you (and a corresponding log), the better the chance that I can narrow this down w/o a local repro…

See the deatiled a diagnostic log files attachedmsbuildDiag.txt (403.4 KB) msbuildetailed.txt (168.6 KB)
The best i have.

an I get now with JUST the two projects? this log files are already next to incomprehensibly verbose, and it doesn’t help tom have 4 extra projects, one of which, to add insult to injury" shared part of the “classlibrary2” name, making it hard to search or filter. It also doesn’t seem like the <Debug> setting was on for these logs.

Solution composition is the key. Ive simplified the solution - removed ClassLibrary3 and 4 problem persists. But if you remove any of the rest projects then the problem is GONE.
Im sending he simplified solution and log files to compare process with -m:1 and -m:4 switches. Which could make difference at your side as well. With just -m msbuild decides the number of threads itself and that could differ on our systems.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise>msbuild "D:\TescoTools\OtherProjects\TCElements\TCElements\TCElements2.sln" -m:4 /t:Clean -p:configuration=Debug -v:d > D:\msbuildM4det.txt

Could you send me same logs from your working process ?

TCElements.zip (70.1 KB)
msbuildM4det.txt (125.3 KB) msbuildM4diag.txt (325.9 KB) msbuildM1diag.txt (496.9 KB) msbuildM1det.txt (122.3 KB)

The EWBuild aside of the long I get is this: (I’m not in a position to test MSBuild right now):

~> Process Builder started
RemObjects EBuild. An open source build engine for Elements and beyond.
Copyright RemObjects Software 2016-. All Rights Reserved. Created by marc hoffman.
Local build.

   Missing project '..\ClassLibrary1\ClassLibrary1.csproj' referenced from 'ClassLibrary2', but project path '/Users/mh/Downloads/TCElements 2/ClassLibrary1/ClassLibrary1.csproj' is valid.
   -> Task RemObjects.EBuild.BuildSolution started.
      -> Project ClassLibrary2 started.
         -- Task RemObjects.EBuild.Elements.ElementsProjectPreBuildTask skipped for ClassLibrary2, condition not met.
         -> Task RemObjects.EBuild.Elements.ElementsBuildProject started for ClassLibrary2.
            -> Task RemObjects.EBuild.Elements.ElementsExpandCopyToOutputDirectoryPaths started for ClassLibrary2.
            <- Task RemObjects.EBuild.Elements.ElementsExpandCopyToOutputDirectoryPaths finished for ClassLibrary2, took 0.0134s (0.0159s).
            -> Task RemObjects.EBuild.Elements.ElementsApplyLegacySettings started for ClassLibrary2, Echoes.
               Mapping UseXmlDoc=False to XmlDoc in Target Echoes
               Mapping DefineConstants=AGGREGATION; to ConditionalDefines in Target Echoes
               Mapping AssemblyName=ClassLibrary2 to BinaryName in Target Echoes
               Mapping CpuType=anycpu to Architecture in Target Echoes
            <- Task RemObjects.EBuild.Elements.ElementsApplyLegacySettings finished for ClassLibrary2, Echoes, took 0.0295s (0.0368s).
            -> Task RemObjects.EBuild.Elements.ElementsSanityCheck started for ClassLibrary2, Echoes.
            <- Task RemObjects.EBuild.Elements.ElementsSanityCheck finished for ClassLibrary2, Echoes, took 0.0009s (0.0023s).
            -> Task RemObjects.EBuild.Elements.ElementsPreparePlatforms started for ClassLibrary2.
               Preparing target 'Echoes' (platform 'Echoes').
D:             Target-specific Settings, before prepare
D:               - <Architecture = anycpu [Target: Echoes]>
D:               - <BinaryName = ClassLibrary2 [Target: Echoes]>
D:               - <ConditionalDefines = AGGREGATION; [Target: Echoes]>
D:               - <Mode = Echoes [Target: Echoes]>
D:               - <SubMode = .NET [Target: Echoes]>
D:               - <XmlDoc = False [Target: Echoes]>
               -> Task RemObjects.EBuild.Elements.ElementsPreflightEchoes started for ClassLibrary2.
               <- Task RemObjects.EBuild.Elements.ElementsPreflightEchoes finished for ClassLibrary2, took 0.0006s (0.0016s).
               -> Task RemObjects.EBuild.Elements.ElementsPrepareEchoesPlatform started for ClassLibrary2, Echoes.
               <- Task RemObjects.EBuild.Elements.ElementsPrepareEchoesPlatform finished for ClassLibrary2, Echoes, took 0.0573s (0.0650s).
D:             Target-specific Settings, after prepare
D:               - <Architecture = anycpu [Target: Echoes]>
D:               - <BinaryName = ClassLibrary2 [Target: Echoes]>
D:               - <ConditionalDefines = AGGREGATION; [Target: Echoes]>
D:               - <GeneratePDB = False [Target: Echoes]>
D:               - <IDE:TargetInfo = .NETFramework4.8 (compatible with netstandard2.0) [Target: Echoes]>
D:               - <ImpliedConditionalDefines = NET;NET48 [Target: Echoes]>
D:               - <Mode = Echoes [Target: Echoes]>
D:               - <NETStandardVersion = 2.0 [Target: Echoes]>
D:               - <NuGetPlatformName = net [Target: Echoes]>
D:               - <NuGetPlatformVersion = 4.8 [Target: Echoes]>
D:               - <SubMode = .NET [Target: Echoes]>
D:               - <TargetFrameworkName = .NETFramework [Target: Echoes]>
D:               - <TargetFrameworkNameLong = .NETFramework,Version=v4.8 [Target: Echoes]>
D:               - <TargetFrameworkVersion = 4.8 [Target: Echoes]>
D:               - <XmlDoc = False [Target: Echoes]>
            <- Task RemObjects.EBuild.Elements.ElementsPreparePlatforms finished for ClassLibrary2, took 0.1399s (0.1446s).
            -> Task RemObjects.EBuild.Elements.ElementsResolveSourceFiles started for ClassLibrary2, Echoes.
            <- Task RemObjects.EBuild.Elements.ElementsResolveSourceFiles finished for ClassLibrary2, Echoes, took 0.0067s (0.0089s).
            -- Task RemObjects.EBuild.Elements.ElementsResolveHeaderImportFiles skipped for ClassLibrary2, Echoes, condition not met.
            -> Task RemObjects.EBuild.Elements.ElementsPreCompile started for ClassLibrary2, Echoes.
               -> Task RemObjects.EBuild.Elements.ElementsPreCompileEchoes started for ClassLibrary2, Echoes.
                  -> Task RemObjects.EBuild.Elements.ElementsResolveContent started for ClassLibrary2, Echoes.
                  <- Task RemObjects.EBuild.Elements.ElementsResolveContent finished for ClassLibrary2, Echoes, took 0.0003s (0.0013s).
                  -- Task RemObjects.EBuild.Elements.ElementsEchoesProcessResources skipped for ClassLibrary2, Echoes, condition not met.
                  -> Task RemObjects.EBuild.Elements.ElementsEchoesResolveXamlFiles started for ClassLibrary2, Echoes.
                  <- Task RemObjects.EBuild.Elements.ElementsEchoesResolveXamlFiles finished for ClassLibrary2, Echoes, took 0.0003s (0.0018s).
               <- Task RemObjects.EBuild.Elements.ElementsPreCompileEchoes finished for ClassLibrary2, Echoes, took 0.0001s (0.0212s).
               -- Task RemObjects.EBuild.Elements.ElementsPreCompileToffee skipped for ClassLibrary2, Echoes, condition not met.
               -- Task RemObjects.EBuild.Elements.ElementsPreCompileCooper skipped for ClassLibrary2, Echoes, condition not met.
               -- Task RemObjects.EBuild.Elements.ElementsPreCompileIsland skipped for ClassLibrary2, Echoes, condition not met.
            <- Task RemObjects.EBuild.Elements.ElementsPreCompile finished for ClassLibrary2, Echoes, took 0.0000s (0.2276s).
            -- Task RemObjects.EBuild.Elements.ElementsApplyLegacySettings skipped for ClassLibrary2, Echoes, already ran.
            -- Task RemObjects.EBuild.Elements.ElementsPreparePlatforms skipped for ClassLibrary2, already ran.
            -> Task RemObjects.EBuild.Elements.ElementsCheckForTargetlessReferences started for ClassLibrary2.
            <- Task RemObjects.EBuild.Elements.ElementsCheckForTargetlessReferences finished for ClassLibrary2, took 0.0014s (0.0036s).
            -> Task RemObjects.EBuild.Elements.ElementsResolveReferences started for ClassLibrary2.
               -> Target Echoes started.
                  -> Task RemObjects.EBuild.Elements.ElementsResolveEchoesReferencesForTarget started for ClassLibrary2, Echoes.
                     Project 'ClassLibrary1' referenced from 'ClassLibrary2' is not enabled and has no cached final output. Falling back to hint path.
D:                   Cache file '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary1-2AD756A0DC82282EBE1AD3667AB0F0F05A975755/Unknown/FinalOutput.xml' does not exist.
D:                   Adjusting Hint Path of project reference from configuration 'Debug' to 'Release'.
                     Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' was resolved to '/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll' via 'HintPath' for target 'Echoes'.
                     -> Task RemObjects.EBuild.Elements.ElementsProcessNuGetReferences started for ClassLibrary2, Echoes.
                     <- Task RemObjects.EBuild.Elements.ElementsProcessNuGetReferences finished for ClassLibrary2, Echoes, took 0.0027s (0.0046s).
                     -- Task RemObjects.EBuild.Elements.ElementsProcessComReferences skipped for ClassLibrary2, Echoes, condition not met.
                     -- Task RemObjects.EBuild.Elements.ElementsProcessSdkReferences skipped for ClassLibrary2, Echoes, condition not met.
                     Reference 'mscorlib' was resolved to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/mscorlib.dll' for target 'Echoes'.
                     Reference 'System' was resolved to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/System.dll' for target 'Echoes'.
                     Reference 'System.Data' was resolved to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Data.dll' for target 'Echoes'.
                     Reference 'System.Xml' was resolved to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Xml.dll' for target 'Echoes'.
                     Reference 'system.messaging' was resolved to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/system.messaging.dll' for target 'Echoes'.
                     Reference '..\ClassLibrary1\ClassLibrary1.csproj' already was resolved to '/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll' for target 'Echoes'.
                     Reference 'System.Core' was resolved to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Core.dll' for target 'Echoes'.
                     Added implicit reference to '/Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Core.dll'
                  <- Task RemObjects.EBuild.Elements.ElementsResolveEchoesReferencesForTarget finished for ClassLibrary2, Echoes, took 3.8785s (3.9121s).
               <- Target Echoes finished.
            <- Task RemObjects.EBuild.Elements.ElementsResolveReferences finished for ClassLibrary2, took 4.0362s (4.0448s).
            -> Task RemObjects.EBuild.Elements.ElementsPreCompile2 started for ClassLibrary2, Echoes.
               -> Task RemObjects.EBuild.Elements.ElementsPreCompile2Echoes started for ClassLibrary2, Echoes.
                  -- Task RemObjects.EBuild.Elements.ElementsEchoesGenerateVBMyClass skipped for ClassLibrary2, Echoes, condition not met.
                  -- Task ProcessRazorFiles skipped for ClassLibrary2, condition not met.
               <- Task RemObjects.EBuild.Elements.ElementsPreCompile2Echoes finished for ClassLibrary2, Echoes, took 0.0000s (0.0068s).
               -- Task RemObjects.EBuild.Elements.ElementsPreCompile2Cooper skipped for ClassLibrary2, Echoes, condition not met.
            <- Task RemObjects.EBuild.Elements.ElementsPreCompile2 finished for ClassLibrary2, Echoes, took 0.0000s (0.0100s).
            -> Task RemObjects.EBuild.Elements.ElementsCompile started for ClassLibrary2.
D:             Loading compiler from '/Users/mh/Code/Elements/Bin/RemObjects.Elements.dll'
               Compiling target 'Echoes'
               -> Target Echoes started compiling.
                  Starting compile for ClassLibrary2 Echoes 
~> Ignored exception of type System.IO.FileNotFoundException on thread 0001 ()
~> Message: Invalid Image
~> Ignored exception of type System.IO.FileNotFoundException on thread 0001 ()
~> Message: Invalid Image
                  RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
                  Version 10.0.0.2468 (develop) built on talax, 20191230-144955. Commit c7b94d3.
                  Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
                  Source file: /Users/mh/Downloads/TCElements 2/ClassLibrary2/Class1.pas
~> Ignored exception of type System.IO.FileNotFoundException on thread 0001 ()
~> Message: Invalid Image
~> Ignored exception of type System.IO.FileNotFoundException on thread 0001 ()
~> Message: Invalid Image
                  Reference: /Users/mh/Code/Fire Support/_NETFramework/v4.7/mscorlib.dll
                  Reference: /Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Core.dll
                  Reference: /Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Data.dll
                  Reference: /Users/mh/Code/Fire Support/_NETFramework/v4.7/System.dll
                  Reference: /Users/mh/Code/Fire Support/_NETFramework/v4.7/system.messaging.dll
                  Reference: /Users/mh/Code/Fire Support/_NETFramework/v4.7/System.Xml.dll
                  Reference: /Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll
                  Reference: /Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/gac/RemObjects.Elements.Cirrus/10.0.0.2468__3df3cad1b7aa5098/RemObjects.Elements.Cirrus.dll
                  -> Phase Resolving Bodies started.
                  <- Phase Resolving Bodies finished, took 0.5590s.
                  -> Phase Checking Members started.
                  <- Phase Checking Members finished, took 0.0357s.
                  -> Phase Generating Helper Types started.
~> Ignored exception of type System.IO.FileNotFoundException on thread 0001 ()
~> Message: Invalid Image
~> Ignored exception of type System.IO.FileNotFoundException on thread 0001 ()
~> Message: Invalid Image
H:                   Local variable "str" is assigned to but never read [/Users/mh/Downloads/TCElements 2/ClassLibrary2/Class1.pas (21)]
H:                   Local variable "x" is not used [/Users/mh/Downloads/TCElements 2/ClassLibrary2/Class1.pas (22)]
                  <- Phase Generating Helper Types finished, took 0.1483s.
                  -> Phase Inlining Code started.
                  <- Phase Inlining Code finished, took 0.0209s.
                  -> Phase Pre-Simplifying Code started.
                  <- Phase Pre-Simplifying Code finished, took 0.0002s.
                  -> Phase Simplifying Code started.
                  <- Phase Simplifying Code finished, took 0.0634s.
                  -> Phase Flow Analysis started.
                  <- Phase Flow Analysis finished, took 0.0272s.
                  -> Phase Generating Output started.
                  <- Phase Generating Output finished, took 0.3231s.
               <- Target Echoes finished compiling.
D:             CompilerOutput for Echoes
D:               - <CompilerOutput: /Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary2-3F1F39A201AD8D076D0C872288031F1F81390F62/Release/Echoes/ClassLibrary2.dll [Target: Echoes]>
            <- Task RemObjects.EBuild.Elements.ElementsCompile finished for ClassLibrary2, took 2.8425s (7.1321s).
            -> Task RemObjects.EBuild.Elements.ElementsPostCompile started for ClassLibrary2, Echoes.
               -> Task RemObjects.EBuild.Elements.ElementsPostCompileEchoes started for ClassLibrary2, Echoes.
                  -- Task NpmInstall skipped for ClassLibrary2, condition not met.
                  -- Task NpmBuild skipped for ClassLibrary2, condition not met.
                  -- Task RemObjects.EBuild.Elements.ElementsEchoesGenerateDepsJsonFile skipped for ClassLibrary2, Echoes, condition not met.
                  -- Task RemObjects.EBuild.Elements.ElementsEchoesGenerateRuntimeConfigJsonFile skipped for ClassLibrary2, Echoes, condition not met.
               <- Task RemObjects.EBuild.Elements.ElementsPostCompileEchoes finished for ClassLibrary2, Echoes, took 0.0000s (0.0116s).
               -- Task RemObjects.EBuild.Elements.ElementsPostCompileToffee skipped for ClassLibrary2, Echoes, condition not met.
               -- Task RemObjects.EBuild.Elements.ElementsPostCompileCooper skipped for ClassLibrary2, Echoes, condition not met.
               -- Task RemObjects.EBuild.Elements.ElementsPostCompileIsland skipped for ClassLibrary2, Echoes, condition not met.
            <- Task RemObjects.EBuild.Elements.ElementsPostCompile finished for ClassLibrary2, Echoes, took 0.0000s (0.0187s).
            -> Task RemObjects.EBuild.Elements.ElementsLink started for ClassLibrary2.
            <- Task RemObjects.EBuild.Elements.ElementsLink finished for ClassLibrary2, took 0.0009s (7.1568s).
            -> Task RemObjects.EBuild.Elements.ElementsDetermineFinalOutput started for ClassLibrary2.
               -- Task RemObjects.EBuild.Elements.ElementsResolveContent skipped for ClassLibrary2, Echoes, already ran.
               -> Task RemObjects.EBuild.Elements.ElementsDetermineFinalOutputEchoes started for ClassLibrary2, Echoes.
D:                Copying '/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll' to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary2-3F1F39A201AD8D076D0C872288031F1F81390F62/Release/Echoes/ClassLibrary1.dll'
               <- Task RemObjects.EBuild.Elements.ElementsDetermineFinalOutputEchoes finished for ClassLibrary2, Echoes, took 0.0282s (0.0298s).
               -- Task RemObjects.EBuild.Elements.ElementsEchoesNetCorePublish skipped for ClassLibrary2, Echoes, condition not met.
            <- Task RemObjects.EBuild.Elements.ElementsDetermineFinalOutput finished for ClassLibrary2, took 0.0344s (7.1939s).
            -> Task RemObjects.EBuild.Elements.ElementsCopyFinalOutput started for ClassLibrary2.
D:             Copying to /Users/mh/Downloads/TCElements 2/ClassLibrary2/bin/Release
D:             Generated Files for 'ClassLibrary2' target 'Echoes':
D:               ClassLibrary1.dll (/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll)
D:               ClassLibrary1.pdb (/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.pdb)
D:               ClassLibrary1.pdb (/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.pdb)
D:               ClassLibrary2.dll (/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary2-3F1F39A201AD8D076D0C872288031F1F81390F62/Release/Echoes/ClassLibrary2.dll)
               Final Output for 'ClassLibrary2':
                 ClassLibrary1.dll (/Users/mh/Downloads/TCElements 2/ClassLibrary2/bin/Release/ClassLibrary1.dll)
                 ClassLibrary1.pdb (/Users/mh/Downloads/TCElements 2/ClassLibrary2/bin/Release/ClassLibrary1.pdb)
                 ClassLibrary1.pdb (/Users/mh/Downloads/TCElements 2/ClassLibrary2/bin/Release/ClassLibrary1.pdb)
                 ClassLibrary2.dll (/Users/mh/Downloads/TCElements 2/ClassLibrary2/bin/Release/ClassLibrary2.dll)
               Final Output for Referencing:
                 ClassLibrary1 (/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll)
                 ClassLibrary2 (/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary2-3F1F39A201AD8D076D0C872288031F1F81390F62/Release/Echoes/ClassLibrary2.dll)
I:             FINALOUTPUT /Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary2-3F1F39A201AD8D076D0C872288031F1F81390F62/Release/FinalOutput.xml
            <- Task RemObjects.EBuild.Elements.ElementsCopyFinalOutput finished for ClassLibrary2, took 0.0226s (7.2639s).
         <- Task RemObjects.EBuild.Elements.ElementsBuildProject finished for ClassLibrary2, took 0.0000s (7.2704s).
         -- Task RemObjects.EBuild.Elements.ElementsProjectPostBuildTask skipped for ClassLibrary2, condition not met.
      <- Project ClassLibrary2 finished, took 7.2745s.
      Project 'ClassLibrary2' built successfully.
      Solution 'ClassLibrary2' built successfully.
   <- Task RemObjects.EBuild.BuildSolution finished for ClassLibrary2, took 7.2924s (7.2950s).


~> Process Builder terminated with exit code 0

the key lines here are

                     Project 'ClassLibrary1' referenced from 'ClassLibrary2' is not enabled and has no cached final output. Falling back to hint path.
D:                   Cache file '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/ClassLibrary1-2AD756A0DC82282EBE1AD3667AB0F0F05A975755/Unknown/FinalOutput.xml' does not exist.
D:                   Adjusting Hint Path of project reference from configuration 'Debug' to 'Release'.
                     Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' was resolved to '/Users/mh/Downloads/TCElements 2/ClassLibrary1/bin/Release/ClassLibrary1.dll' via 'HintPath' for target 'Echoes'.

M1 seems to be good:

 Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' was resolved to 'D:\TescoTools\OtherProjects\TCElements\TCElements\ClassLibrary1\bin\Debug\ClassLibrary1.dll' via 'HintPath' for target 'Echoes'. (TaskId:49)

M4 still doesnt have the full diagnostic debug output, just

   4:2>Target "Build" in file "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets" from project "D:\TescoTools\OtherProjects\TCElements\TCElements\ClassLibrary2Legacy\ClassLibrary2Legacy.elements" (entry point):
       Task "MSBuildTask"
            Reference 'mscorlib' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\mscorlib.dll' for target 'Echoes'.
            Reference 'System' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll' for target 'Echoes'.
            Reference 'System.Data' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Data.dll' for target 'Echoes'.
            Reference 'System.Xml' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Xml.dll' for target 'Echoes'.
            Reference 'system.messaging' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\system.messaging.dll' for target 'Echoes'.
            Reference 'System.Transactions' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Transactions.dll' for target 'Echoes'.
            Reference 'System.Configuration' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Configuration.dll' for target 'Echoes'.
            Reference 'System.Core' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Core.dll' for target 'Echoes'.
            Reference 'System.Drawing' was resolved to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.Drawing.dll' for target 'Echoes'.
   4:2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets(53,3): EBuild  error : Project Reference '..\ClassLibrary1\ClassLibrary1.csproj' could not be resolved for target 'Echoes' (Echoes .NET anycpu). [D:\TescoTools\OtherProjects\TCElements\TCElements\ClassLibrary2Legacy\ClassLibrary2Legacy.elements]
       Done executing task "MSBuildTask" -- FAILED.

but I. notice that this now fails in ClassLibrary2Legacy, as well!?

Hi, as anyone tried the MSBUILD ? I dont understand the questin in the last post.

Yes, we could not reproduce this problem here.

Thats bad, do you have any other suggestions,where to look at our side ?

Hello,
im digging this problem on and off, because it is crucial for us and i think I can provide some more information. And im pretty sure the problem is with echoes targets cascade on clean.
New is:

  1. Its obvious that even without the -m switch, the clean target doesnt work correctly and leads the proces to build of csprojects that are depending on elements projects. -m only makes the bug more visible as the process fails on missing files on corecompile target which shouldnt start at all in my opinion.
    2.this is just a guess but: in

“C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets”

is defined:

<Target Name="Clean" DependsOnTargets="BeforeBuild">`
... and in BeforeBuild target is defined:
        `<MSBuild
                Projects="@(_MSBuildProjectReferenceExistent)"
                Targets="%(_MSBuildProjectReferenceExistent.Targets)"
                BuildInParallel="$(BuildInParallel)"
                Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform)"
                Condition="'%(_MSBuildProjectReferenceExistent.BuildReference)' != 'false' and '@(_MSBuildProjectReferenceExistent)' != ''"
                RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)">
            </MSBuild>

where
Targets=%(_MSBuildProjectReferenceExistent.Targets)

is a strange (for me) expansion.
When i changed it to

    Targets=GetTargetPath

which was a guess with closed yes and googles, then all task appear to be running correctly.
As an attachments i send:

1.RemObjects.Elements.Echoes.targets with my modification on line 355
2. Diag log from build C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise>msbuild “D:\TescoTools\OtherProjects\TCElements\TCElements\TCElements2.sln” /t:clean /v:diag with my modification and without it.

Please, coud someone take a look at this problem again and check my experiment ?
RemObjects.Elements.Echoes - Copy.targets.txt (24.7 KB) original.txt (549.6 KB) withmodification.txt (345.5 KB)